loadperf: Add LoadPerfCounterTextStrings stubs.
This commit is contained in:
parent
2322a06dd6
commit
86635b3c48
|
@ -3,8 +3,8 @@
|
|||
@ stub InstallPerfDllW
|
||||
@ stub LoadMofFromInstalledServiceA
|
||||
@ stub LoadMofFromInstalledServiceW
|
||||
@ stub LoadPerfCounterTextStringsA
|
||||
@ stub LoadPerfCounterTextStringsW
|
||||
@ stdcall LoadPerfCounterTextStringsA(str long)
|
||||
@ stdcall LoadPerfCounterTextStringsW(wstr long)
|
||||
@ stub RestorePerfRegistryFromFileW
|
||||
@ stub SetServiceAsTrustedA
|
||||
@ stub SetServiceAsTrustedW
|
||||
|
|
|
@ -50,6 +50,47 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
* LoadPerfCounterTextStringsA (loadperf.@)
|
||||
*
|
||||
* NOTES
|
||||
* See LoadPerfCounterTextStringsW
|
||||
*/
|
||||
DWORD WINAPI LoadPerfCounterTextStringsA(LPCSTR cmdline, BOOL quiet)
|
||||
{
|
||||
DWORD ret;
|
||||
LPWSTR cmdlineW = NULL;
|
||||
|
||||
if (cmdline)
|
||||
{
|
||||
INT len = MultiByteToWideChar(CP_ACP, 0, cmdline, -1, NULL, 0);
|
||||
cmdlineW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||
if (!cmdlineW) return ERROR_NOT_ENOUGH_MEMORY;
|
||||
MultiByteToWideChar(CP_ACP, 0, cmdline, -1, cmdlineW, len);
|
||||
}
|
||||
|
||||
ret = LoadPerfCounterTextStringsW(cmdlineW, quiet);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, cmdlineW);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
* LoadPerfCounterTextStringsW (loadperf.@)
|
||||
*
|
||||
* PARAMS
|
||||
* cmdline [in] Last argument in command line - ini file to be used
|
||||
* quiet [in] FALSE - the function may write to stdout
|
||||
*
|
||||
*/
|
||||
DWORD WINAPI LoadPerfCounterTextStringsW(LPCWSTR cmdline, BOOL quiet)
|
||||
{
|
||||
FIXME("(%s, %d): stub\n", debugstr_w(cmdline), quiet);
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
* UnloadPerfCounterTextStringsA (loadperf.@)
|
||||
*
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
DWORD WINAPI LoadPerfCounterTextStringsA(LPCSTR, BOOL);
|
||||
DWORD WINAPI LoadPerfCounterTextStringsW(LPCWSTR, BOOL);
|
||||
#define LoadPerfCounterTextStrings WINELIB_NAME_AW(LoadPerfCounterTextStrings)
|
||||
|
||||
DWORD WINAPI UnloadPerfCounterTextStringsA(LPCSTR, BOOL);
|
||||
DWORD WINAPI UnloadPerfCounterTextStringsW(LPCWSTR, BOOL);
|
||||
#define UnloadPerfCounterTextStrings WINELIB_NAME_AW(UnloadPerfCounterTextStrings)
|
||||
|
|
Loading…
Reference in New Issue