ReactOS  0.4.15-dev-1397-g19779b3
loadperf.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define InstallPerfDll   WINELIB_NAME_AW(InstallPerfDll);
 
#define LoadPerfCounterTextStrings   WINELIB_NAME_AW(LoadPerfCounterTextStrings)
 
#define UnloadPerfCounterTextStrings   WINELIB_NAME_AW(UnloadPerfCounterTextStrings)
 

Functions

DWORD WINAPI InstallPerfDllA (LPCSTR, LPCSTR, ULONG_PTR)
 
DWORD WINAPI InstallPerfDllW (LPCWSTR, LPCWSTR, ULONG_PTR)
 
DWORD WINAPI LoadPerfCounterTextStringsA (LPCSTR, BOOL)
 
DWORD WINAPI LoadPerfCounterTextStringsW (LPCWSTR, BOOL)
 
DWORD WINAPI UnloadPerfCounterTextStringsA (LPCSTR, BOOL)
 
DWORD WINAPI UnloadPerfCounterTextStringsW (LPCWSTR, BOOL)
 

Macro Definition Documentation

◆ InstallPerfDll

#define InstallPerfDll   WINELIB_NAME_AW(InstallPerfDll);

Definition at line 28 of file loadperf.h.

◆ LoadPerfCounterTextStrings

#define LoadPerfCounterTextStrings   WINELIB_NAME_AW(LoadPerfCounterTextStrings)

Definition at line 32 of file loadperf.h.

◆ UnloadPerfCounterTextStrings

#define UnloadPerfCounterTextStrings   WINELIB_NAME_AW(UnloadPerfCounterTextStrings)

Definition at line 36 of file loadperf.h.

Function Documentation

◆ InstallPerfDllA()

DWORD WINAPI InstallPerfDllA ( LPCSTR  ,
LPCSTR  ,
ULONG_PTR   
)

Definition at line 65 of file loadperf_main.c.

66 {
67  DWORD ret;
68  LPWSTR computerW = NULL, iniW = NULL;
69 
70  if (computer && !(computerW = strdupAW(computer))) return ERROR_OUTOFMEMORY;
71  if (ini && !(iniW = strdupAW(ini)))
72  {
73  HeapFree(GetProcessHeap(), 0, computerW);
74  return ERROR_OUTOFMEMORY;
75  }
76 
77  ret = InstallPerfDllW(computerW, iniW, flags);
78 
79  HeapFree(GetProcessHeap(), 0, computerW);
80  HeapFree(GetProcessHeap(), 0, iniW);
81 
82  return ret;
83 }
DWORD WINAPI InstallPerfDllW(LPCWSTR computer, LPCWSTR ini, ULONG_PTR flags)
Definition: loadperf_main.c:88
TConfig ini
Definition: tnconfig.cpp:45
#define GetProcessHeap()
Definition: compat.h:595
unsigned long DWORD
Definition: ntddk_ex.h:95
GLbitfield flags
Definition: glext.h:7161
int ret
static WCHAR * strdupAW(const char *str)
Definition: loadperf_main.c:50
#define NULL
Definition: types.h:112
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define HeapFree(x, y, z)
Definition: compat.h:594
#define ERROR_OUTOFMEMORY
Definition: deptool.c:13

◆ InstallPerfDllW()

DWORD WINAPI InstallPerfDllW ( LPCWSTR  ,
LPCWSTR  ,
ULONG_PTR   
)

Definition at line 88 of file loadperf_main.c.

89 {
90  FIXME("(%s, %s, %lx)\n", debugstr_w(computer), debugstr_w(ini), flags);
91  return ERROR_SUCCESS;
92 }
#define ERROR_SUCCESS
Definition: deptool.c:10
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111
TConfig ini
Definition: tnconfig.cpp:45
GLbitfield flags
Definition: glext.h:7161

Referenced by InstallPerfDllA().

◆ LoadPerfCounterTextStringsA()

DWORD WINAPI LoadPerfCounterTextStringsA ( LPCSTR  ,
BOOL   
)

Definition at line 100 of file loadperf_main.c.

101 {
102  DWORD ret;
103  LPWSTR cmdlineW = NULL;
104 
105  if (cmdline && !(cmdlineW = strdupAW(cmdline))) return ERROR_OUTOFMEMORY;
106 
107  ret = LoadPerfCounterTextStringsW(cmdlineW, quiet);
108 
109  HeapFree(GetProcessHeap(), 0, cmdlineW);
110 
111  return ret;
112 }
TCHAR * cmdline
Definition: stretchblt.cpp:32
#define GetProcessHeap()
Definition: compat.h:595
DWORD WINAPI LoadPerfCounterTextStringsW(LPCWSTR cmdline, BOOL quiet)
unsigned long DWORD
Definition: ntddk_ex.h:95
int ret
static WCHAR * strdupAW(const char *str)
Definition: loadperf_main.c:50
#define NULL
Definition: types.h:112
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define HeapFree(x, y, z)
Definition: compat.h:594
#define ERROR_OUTOFMEMORY
Definition: deptool.c:13

◆ LoadPerfCounterTextStringsW()

DWORD WINAPI LoadPerfCounterTextStringsW ( LPCWSTR  ,
BOOL   
)

Definition at line 122 of file loadperf_main.c.

123 {
124  FIXME("(%s, %d): stub\n", debugstr_w(cmdline), quiet);
125 
126  return ERROR_SUCCESS;
127 }
#define ERROR_SUCCESS
Definition: deptool.c:10
TCHAR * cmdline
Definition: stretchblt.cpp:32
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111

Referenced by LoadPerfCounterTextStringsA(), and wmain().

◆ UnloadPerfCounterTextStringsA()

DWORD WINAPI UnloadPerfCounterTextStringsA ( LPCSTR  ,
BOOL   
)

Definition at line 135 of file loadperf_main.c.

136 {
137  DWORD ret;
138  LPWSTR cmdlineW = NULL;
139 
140  if (cmdline && !(cmdlineW = strdupAW(cmdline))) return ERROR_OUTOFMEMORY;
141 
142  ret = UnloadPerfCounterTextStringsW(cmdlineW, quiet);
143 
144  HeapFree(GetProcessHeap(), 0, cmdlineW);
145 
146  return ret;
147 }
DWORD WINAPI UnloadPerfCounterTextStringsW(LPCWSTR cmdline, BOOL quiet)
TCHAR * cmdline
Definition: stretchblt.cpp:32
#define GetProcessHeap()
Definition: compat.h:595
unsigned long DWORD
Definition: ntddk_ex.h:95
int ret
static WCHAR * strdupAW(const char *str)
Definition: loadperf_main.c:50
#define NULL
Definition: types.h:112
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define HeapFree(x, y, z)
Definition: compat.h:594
#define ERROR_OUTOFMEMORY
Definition: deptool.c:13

◆ UnloadPerfCounterTextStringsW()

DWORD WINAPI UnloadPerfCounterTextStringsW ( LPCWSTR  ,
BOOL   
)

Definition at line 157 of file loadperf_main.c.

158 {
159  FIXME("(%s, %d): stub\n", debugstr_w(cmdline), quiet);
160 
161  return ERROR_SUCCESS;
162 }
#define ERROR_SUCCESS
Definition: deptool.c:10
TCHAR * cmdline
Definition: stretchblt.cpp:32
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111

Referenced by UnloadPerfCounterTextStringsA().