LsaEnumerateLogonSessions error code
-
Hello! I have a Windows service which starts another application using CreateProcess. Thus, the application runs with SYSTEM privileges. This application calls LsaEnumerateLogonSessions, which returns the error code 8 (Not enough storage is available to process this command.). The service and the application are run under Windows 7 x64.
ULONG luLogonSessionCount = 0; LUID *pLogonSessionList = NULL; NTSTATUS lNtStatus = LsaEnumerateLogonSessions( &luLogonSessionCount, &pLogonSessionList );
LsaNtStatusToWinError( lNtStatus )
returns 8. Does anyone know the cause of this? Thanks in advance! -
Hello! I have a Windows service which starts another application using CreateProcess. Thus, the application runs with SYSTEM privileges. This application calls LsaEnumerateLogonSessions, which returns the error code 8 (Not enough storage is available to process this command.). The service and the application are run under Windows 7 x64.
ULONG luLogonSessionCount = 0; LUID *pLogonSessionList = NULL; NTSTATUS lNtStatus = LsaEnumerateLogonSessions( &luLogonSessionCount, &pLogonSessionList );
LsaNtStatusToWinError( lNtStatus )
returns 8. Does anyone know the cause of this? Thanks in advance!msdn Smple-> http://msdn.microsoft.com/en-us/library/aa378275(VS.85).aspx what if you run the service under an admin account?
Press F1 for help or google it. Greetings from Germany