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

View File

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

View File

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