loadperf: Add LoadPerfCounterTextStrings stubs.
This commit is contained in:
parent
2322a06dd6
commit
86635b3c48
|
@ -3,8 +3,8 @@
|
||||||
@ stub InstallPerfDllW
|
@ stub InstallPerfDllW
|
||||||
@ stub LoadMofFromInstalledServiceA
|
@ stub LoadMofFromInstalledServiceA
|
||||||
@ stub LoadMofFromInstalledServiceW
|
@ stub LoadMofFromInstalledServiceW
|
||||||
@ stub LoadPerfCounterTextStringsA
|
@ stdcall LoadPerfCounterTextStringsA(str long)
|
||||||
@ stub LoadPerfCounterTextStringsW
|
@ stdcall LoadPerfCounterTextStringsW(wstr long)
|
||||||
@ stub RestorePerfRegistryFromFileW
|
@ stub RestorePerfRegistryFromFileW
|
||||||
@ stub SetServiceAsTrustedA
|
@ stub SetServiceAsTrustedA
|
||||||
@ stub SetServiceAsTrustedW
|
@ stub SetServiceAsTrustedW
|
||||||
|
|
|
@ -50,6 +50,47 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
return TRUE;
|
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.@)
|
* UnloadPerfCounterTextStringsA (loadperf.@)
|
||||||
*
|
*
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
DWORD WINAPI LoadPerfCounterTextStringsA(LPCSTR, BOOL);
|
||||||
|
DWORD WINAPI LoadPerfCounterTextStringsW(LPCWSTR, BOOL);
|
||||||
|
#define LoadPerfCounterTextStrings WINELIB_NAME_AW(LoadPerfCounterTextStrings)
|
||||||
|
|
||||||
DWORD WINAPI UnloadPerfCounterTextStringsA(LPCSTR, BOOL);
|
DWORD WINAPI UnloadPerfCounterTextStringsA(LPCSTR, BOOL);
|
||||||
DWORD WINAPI UnloadPerfCounterTextStringsW(LPCWSTR, BOOL);
|
DWORD WINAPI UnloadPerfCounterTextStringsW(LPCWSTR, BOOL);
|
||||||
#define UnloadPerfCounterTextStrings WINELIB_NAME_AW(UnloadPerfCounterTextStrings)
|
#define UnloadPerfCounterTextStrings WINELIB_NAME_AW(UnloadPerfCounterTextStrings)
|
||||||
|
|
Loading…
Reference in New Issue