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

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. // Utils.h
  8. #pragma once
  9. #define TOKEN_THREAD 0
  10. #define TOKEN_PROCESS 1
  11. HRESULT EnableAllPrivileges(DWORD dwTokenType = TOKEN_THREAD);
  12. BOOL GetFileVersion(LPCTSTR szFN, LPTSTR szVersion);
  13. void SetSecurityHelper(
  14. IUnknown *pUnk,
  15. BSTR pAuthority,
  16. BSTR pUser,
  17. BSTR pPassword,
  18. DWORD dwImpLevel,
  19. DWORD dwAuthLevel);