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

/*++
Copyright (C) 1997-2001 Microsoft Corporation
Module Name:
Abstract:
History:
--*/
// Utils.h
#pragma once
#define TOKEN_THREAD 0
#define TOKEN_PROCESS 1
HRESULT EnableAllPrivileges(DWORD dwTokenType = TOKEN_THREAD);
BOOL GetFileVersion(LPCTSTR szFN, LPTSTR szVersion);
void SetSecurityHelper(
IUnknown *pUnk,
BSTR pAuthority,
BSTR pUser,
BSTR pPassword,
DWORD dwImpLevel,
DWORD dwAuthLevel);