Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef _LOADPERF_H_
      7 #define _LOADPERF_H_
      8 
      9 #include <_mingw_unicode.h>
     10 
     11 #ifdef __cplusplus
     12 extern "C" {
     13 #endif
     14 
     15 #ifndef WINAPI
     16 #define WINAPI __stdcall
     17 #endif
     18 
     19 #define LOADPERF_FUNCTION __declspec(dllimport) DWORD WINAPI
     20 
     21 #define LOADPERF_FLAGS_DELETE_MOF_ON_EXIT ((ULONG_PTR) 1)
     22 #define LOADPERF_FLAGS_LOAD_REGISTRY_ONLY ((ULONG_PTR) 2)
     23 #define LOADPERF_FLAGS_CREATE_MOF_ONLY ((ULONG_PTR) 4)
     24 #define LOADPERF_FLAGS_DISPLAY_USER_MSGS ((ULONG_PTR) 8)
     25 
     26   LOADPERF_FUNCTION InstallPerfDllW(LPCWSTR szComputerName,LPCWSTR lpIniFile,ULONG_PTR dwFlags);
     27   LOADPERF_FUNCTION InstallPerfDllA(LPCSTR szComputerName,LPCSTR lpIniFile,ULONG_PTR dwFlags);
     28   LOADPERF_FUNCTION LoadPerfCounterTextStringsA(LPSTR lpCommandLine,WINBOOL bQuietModeArg);
     29   LOADPERF_FUNCTION LoadPerfCounterTextStringsW(LPWSTR lpCommandLine,WINBOOL bQuietModeArg);
     30   LOADPERF_FUNCTION UnloadPerfCounterTextStringsW(LPWSTR lpCommandLine,WINBOOL bQuietModeArg);
     31   LOADPERF_FUNCTION UnloadPerfCounterTextStringsA(LPSTR lpCommandLine,WINBOOL bQuietModeArg);
     32   LOADPERF_FUNCTION UpdatePerfNameFilesA(LPCSTR szNewCtrFilePath,LPCSTR szNewHlpFilePath,LPSTR szLanguageID,ULONG_PTR dwFlags);
     33   LOADPERF_FUNCTION UpdatePerfNameFilesW(LPCWSTR szNewCtrFilePath,LPCWSTR szNewHlpFilePath,LPWSTR szLanguageID,ULONG_PTR dwFlags);
     34   LOADPERF_FUNCTION SetServiceAsTrustedA(LPCSTR szReserved,LPCSTR szServiceName);
     35   LOADPERF_FUNCTION SetServiceAsTrustedW(LPCWSTR szReserved,LPCWSTR szServiceName);
     36   DWORD BackupPerfRegistryToFileW(LPCWSTR szFileName,LPCWSTR szCommentString);
     37   DWORD RestorePerfRegistryFromFileW(LPCWSTR szFileName,LPCWSTR szLangId);
     38 
     39 #define InstallPerfDll __MINGW_NAME_AW(InstallPerfDll)
     40 #define LoadPerfCounterTextStrings __MINGW_NAME_AW(LoadPerfCounterTextStrings)
     41 #define UnloadPerfCounterTextStrings __MINGW_NAME_AW(UnloadPerfCounterTextStrings)
     42 #define UpdatePerfNameFiles __MINGW_NAME_AW(UpdatePerfNameFiles)
     43 #define SetServiceAsTrusted __MINGW_NAME_AW(SetServiceAsTrusted)
     44 
     45 #ifdef __cplusplus
     46 }
     47 #endif
     48 #endif
     49