loadperf: Add LoadPerfCounterTextStrings stubs.

This commit is contained in:
Andrey Turkin 2009-01-12 03:35:01 +03:00 committed by Alexandre Julliard
parent 2322a06dd6
commit 86635b3c48
3 changed files with 47 additions and 2 deletions

View File

@ -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

View File

@ -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.@)
*

View File

@ -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)