mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-16 00:32:46 -05:00
dll: FspEventLogRegister, FspEventLogUnregister
This commit is contained in:
@ -467,7 +467,11 @@ NTSTATUS FspFsctlUnregister(VOID)
|
||||
DWORD LastError;
|
||||
NTSTATUS Result;
|
||||
|
||||
ScmHandle = OpenSCManagerW(0, 0, 0);
|
||||
ScmHandle = OpenSCManagerW(0, 0, SC_MANAGER_CREATE_SERVICE);
|
||||
/*
|
||||
* The SC_MANAGER_CREATE_SERVICE access right is not strictly needed here,
|
||||
* but we use it to enforce admin rights.
|
||||
*/
|
||||
if (0 == ScmHandle)
|
||||
{
|
||||
Result = FspNtStatusFromWin32(GetLastError());
|
||||
|
Reference in New Issue
Block a user