ReactOS 0.4.16-dev-92-g0c2cdca
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  computer,
LPCSTR  ini,
ULONG_PTR  flags 
)

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}
#define ERROR_OUTOFMEMORY
Definition: deptool.c:13
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735
unsigned long DWORD
Definition: ntddk_ex.h:95
GLbitfield flags
Definition: glext.h:7161
DWORD WINAPI InstallPerfDllW(LPCWSTR computer, LPCWSTR ini, ULONG_PTR flags)
Definition: loadperf_main.c:88
static WCHAR * strdupAW(const char *str)
Definition: loadperf_main.c:50
TConfig ini
Definition: tnconfig.cpp:45
int ret
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ InstallPerfDllW()

DWORD WINAPI InstallPerfDllW ( LPCWSTR  computer,
LPCWSTR  ini,
ULONG_PTR  flags 
)

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 FIXME(fmt,...)
Definition: precomp.h:53
#define ERROR_SUCCESS
Definition: deptool.c:10
#define debugstr_w
Definition: kernel32.h:32

Referenced by InstallPerfDllA().

◆ LoadPerfCounterTextStringsA()

DWORD WINAPI LoadPerfCounterTextStringsA ( LPCSTR  cmdline,
BOOL  quiet 
)

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
108
109 HeapFree(GetProcessHeap(), 0, cmdlineW);
110
111 return ret;
112}
DWORD WINAPI LoadPerfCounterTextStringsW(LPCWSTR cmdline, BOOL quiet)
TCHAR * cmdline
Definition: stretchblt.cpp:32
static int quiet
Definition: xmllint.c:162

◆ LoadPerfCounterTextStringsW()

DWORD WINAPI LoadPerfCounterTextStringsW ( LPCWSTR  cmdline,
BOOL  quiet 
)

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}

Referenced by LoadPerfCounterTextStringsA(), and wmain().

◆ UnloadPerfCounterTextStringsA()

DWORD WINAPI UnloadPerfCounterTextStringsA ( LPCSTR  cmdline,
BOOL  quiet 
)

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
143
144 HeapFree(GetProcessHeap(), 0, cmdlineW);
145
146 return ret;
147}
DWORD WINAPI UnloadPerfCounterTextStringsW(LPCWSTR cmdline, BOOL quiet)

◆ UnloadPerfCounterTextStringsW()

DWORD WINAPI UnloadPerfCounterTextStringsW ( LPCWSTR  cmdline,
BOOL  quiet 
)

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}

Referenced by UnloadPerfCounterTextStringsA().