Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
86635b3c
Commit
86635b3c
authored
Jan 12, 2009
by
Andrey Turkin
Committed by
Alexandre Julliard
Jan 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loadperf: Add LoadPerfCounterTextStrings stubs.
parent
2322a06d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
2 deletions
+47
-2
loadperf.spec
dlls/loadperf/loadperf.spec
+2
-2
loadperf_main.c
dlls/loadperf/loadperf_main.c
+41
-0
loadperf.h
include/loadperf.h
+4
-0
No files found.
dlls/loadperf/loadperf.spec
View file @
86635b3c
...
...
@@ -3,8 +3,8 @@
@ stub InstallPerfDllW
@ stub LoadMofFromInstalledServiceA
@ stub LoadMofFromInstalledServiceW
@ st
ub LoadPerfCounterTextStringsA
@ st
ub LoadPerfCounterTextStringsW
@ st
dcall LoadPerfCounterTextStringsA(str long)
@ st
dcall LoadPerfCounterTextStringsW(wstr long)
@ stub RestorePerfRegistryFromFileW
@ stub SetServiceAsTrustedA
@ stub SetServiceAsTrustedW
...
...
dlls/loadperf/loadperf_main.c
View file @
86635b3c
...
...
@@ -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
...
...
include/loadperf.h
View file @
86635b3c
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment