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
671 B

  1. // Security.h: interface for the CSecurity class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SECURITY_H__080169BB_C2D8_4472_AB5A_82BFA1640AA5__INCLUDED_)
  5. #define AFX_SECURITY_H__080169BB_C2D8_4472_AB5A_82BFA1640AA5__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CSecurity
  10. {
  11. public:
  12. static BOOL GetLoggedInUsername(LPTSTR szInBuffer, DWORD dwInBufferSize);
  13. static BOOL IsTokenUntrusted(HANDLE hToken);
  14. static BOOL IsUntrusted();
  15. static BOOL IsAdministrator();
  16. CSecurity();
  17. virtual ~CSecurity();
  18. };
  19. #endif // !defined(AFX_SECURITY_H__080169BB_C2D8_4472_AB5A_82BFA1640AA5__INCLUDED_)