Leaked source code of windows server 2003
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.

32 lines
1.1 KiB

  1. //#pragma title( "IsAdmin.hpp - Determine if user is administrator" )
  2. /*
  3. Copyright (c) 1995-1998, Mission Critical Software, Inc. All rights reserved.
  4. ===============================================================================
  5. Module - IsAdmin.hpp
  6. System - Common
  7. Author - Rich Denham
  8. Created - 1996-06-04
  9. Description - Determine if user is administrator (local or remote)
  10. Updates -
  11. ===============================================================================
  12. */
  13. #ifndef MCSINC_IsAdmin_hpp
  14. #define MCSINC_IsAdmin_hpp
  15. // Determine if user is administrator on local machine
  16. DWORD // ret-OS return code, 0=User is admin
  17. IsAdminLocal();
  18. // Determine if user is a Domain Admin in target domain.
  19. DWORD __stdcall IsDomainAdmin(PSID psidDomain);
  20. // Determine if user is administrator on remote machine
  21. DWORD // ret-OS return code, 0=User is admin
  22. IsAdminRemote(
  23. WCHAR const * pMachine // in -\\machine name
  24. );
  25. #endif // MCSINC_IsAdmin_hpp
  26. // IsAdmin.hpp - end of file