Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4727bec5
Commit
4727bec5
authored
Jun 25, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdh: Implement PdhCollectQueryData.
parent
0718c11e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
pdh.spec
dlls/pdh/pdh.spec
+1
-1
pdh_main.c
dlls/pdh/pdh_main.c
+25
-0
No files found.
dlls/pdh/pdh.spec
View file @
4727bec5
...
...
@@ -12,7 +12,7 @@
@ stub PdhCalculateCounterFromRawValue
@ stub PdhCloseLog
@ stdcall PdhCloseQuery(ptr)
@ st
ub PdhCollectQueryData
@ st
dcall PdhCollectQueryData(ptr)
@ stub PdhCollectQueryDataEx
@ stub PdhComputeCounterStatistics
@ stub PdhConnectMachineA
...
...
dlls/pdh/pdh_main.c
View file @
4727bec5
...
...
@@ -246,6 +246,31 @@ PDH_STATUS WINAPI PdhCloseQuery( PDH_HQUERY handle )
}
/***********************************************************************
* PdhCollectQueryData (PDH.@)
*/
PDH_STATUS
WINAPI
PdhCollectQueryData
(
PDH_HQUERY
handle
)
{
struct
query
*
query
=
handle
;
struct
list
*
item
;
TRACE
(
"%p
\n
"
,
handle
);
if
(
!
query
||
(
query
->
magic
!=
PDH_MAGIC_QUERY
))
return
PDH_INVALID_HANDLE
;
LIST_FOR_EACH
(
item
,
&
query
->
counters
)
{
SYSTEMTIME
time
;
struct
counter
*
counter
=
LIST_ENTRY
(
item
,
struct
counter
,
entry
);
counter
->
collect
(
counter
);
GetLocalTime
(
&
time
);
SystemTimeToFileTime
(
&
time
,
&
counter
->
stamp
);
}
return
ERROR_SUCCESS
;
}
/***********************************************************************
* PdhOpenQueryA (PDH.@)
*/
PDH_STATUS
WINAPI
PdhOpenQueryA
(
LPCSTR
source
,
DWORD_PTR
userdata
,
PDH_HQUERY
*
query
)
...
...
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