Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
983 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2001.
  5. //
  6. // xx
  7. //
  8. // Prototypes of functions defined on service.cpp and used externally.
  9. //
  10. // 10/19/2001 annah Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #pragma once
  14. #include "pch.h"
  15. extern SESSION_STATUS gAdminSessions;
  16. extern const TCHAR AU_SERVICE_NAME[];
  17. BOOL AUGetUserToken(ULONG LogonId, PHANDLE pImpersonationToken);
  18. BOOL IsUserAUEnabledAdmin(DWORD dwSessionId);
  19. BOOL IsSession0Active();
  20. BOOL FSessionActive(DWORD dwAdminSession, WTS_CONNECTSTATE_CLASS *pWTSState = NULL);
  21. BOOL IsAUValidSession(DWORD dwSessionId);
  22. BOOL IsWin2K();
  23. VOID SetActiveAdminSessionEvent();
  24. void ResetEngine(void);
  25. void DisableAU(void);
  26. void ServiceFinishNotify(void);
  27. //Current AU Engine version
  28. const DWORD AUENGINE_VERSION = 1;
  29. //Supported Service versions
  30. const DWORD AUSRV_VERSION_1 = 1;