Commit 86635b3c authored by Andrey Turkin's avatar Andrey Turkin Committed by Alexandre Julliard

loadperf: Add LoadPerfCounterTextStrings stubs.

parent 2322a06d
......@@ -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
......
......@@ -51,6 +51,47 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
/*************************************************************
* 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.@)
*
* NOTES
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment