* Protect our process
*/
{
- char *error = NULL;
-
- if (! setprocessacl(error)) {
- /* FIXME: prepare to stuff this into event log somehow */
- MessageBox(NULL, "Process protection",
- error, MB_OK | MB_ICONEXCLAMATION);
- }
- sfree(error);
-
+#ifndef UNPROTECT
+ char *error = NULL;
+ if (! setprocessacl(error)) {
+ char *message = dupprintf("Could not restrict process ACL: %s",
+ error);
+ logevent(NULL, message);
+ sfree(message);
+ sfree(error);
+ }
+#endif
}
/*
* Process the command line.