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.

20 lines
506 B

  1. #ifndef _SECURENT_INC
  2. #define _SECURENT_INC
  3. // all this seurity mumbo-jumbo is only necessary on NT
  4. #ifdef WINNT
  5. //
  6. // Shell helper functions for security
  7. //
  8. STDAPI_(PTOKEN_USER) GetUserToken(HANDLE hUser);
  9. STDAPI_(LPTSTR) GetUserSid(HANDLE hToken);
  10. STDAPI_(BOOL) GetUserProfileKey(HANDLE hToken, HKEY *phkey);
  11. STDAPI_(BOOL) IsUserAnAdmin();
  12. STDAPI_(BOOL) IsUserAGuest();
  13. #else
  14. // on win95 we just return FALSE here
  15. #define GetUserProfileKey(hToken, phkey) FALSE
  16. #endif // WINNT
  17. #endif // _SECURENT_INC