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.

29 lines
1001 B

  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 administrator on remote machine
  19. DWORD // ret-OS return code, 0=User is admin
  20. IsAdminRemote(
  21. WCHAR const * pMachine // in -\\machine name
  22. );
  23. #endif // MCSINC_IsAdmin_hpp
  24. // IsAdmin.hpp - end of file