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.

24 lines
629 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: security.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _INC_CSCUI_SECURITY_H
  11. #define _INC_CSCUI_SECURITY_H
  12. DWORD
  13. Security_SetPrivilegeAttrib(
  14. LPCTSTR PrivilegeName,
  15. DWORD NewPrivilegeAttribute,
  16. DWORD *OldPrivilegeAttribute);
  17. BOOL IsSidCurrentUser(PSID psid);
  18. inline BOOL IsCurrentUserAnAdminMember(VOID) { return IsUserAnAdmin(); } // shlobjp.h, shell32p.lib
  19. #endif _INC_CSCUI_SECURITY_H