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
d2d40b1d
Commit
d2d40b1d
authored
Feb 24, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Moved RegisterTraceGuids[AW] implementation to ntdll.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f35c1b2d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
66 deletions
+62
-66
advapi32.spec
dlls/advapi32/advapi32.spec
+2
-2
eventlog.c
dlls/advapi32/eventlog.c
+0
-64
misc.c
dlls/ntdll/misc.c
+58
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-0
No files found.
dlls/advapi32/advapi32.spec
View file @
d2d40b1d
...
...
@@ -661,8 +661,8 @@
@ stdcall RegisterServiceCtrlHandlerExA(str ptr ptr)
@ stdcall RegisterServiceCtrlHandlerExW(wstr ptr ptr)
@ stdcall RegisterServiceCtrlHandlerW(wstr ptr)
@ stdcall RegisterTraceGuidsA(ptr ptr ptr long ptr str str ptr)
@ stdcall RegisterTraceGuidsW(ptr ptr ptr long ptr wstr wstr ptr)
@ stdcall RegisterTraceGuidsA(ptr ptr ptr long ptr str str ptr)
ntdll.EtwRegisterTraceGuidsA
@ stdcall RegisterTraceGuidsW(ptr ptr ptr long ptr wstr wstr ptr)
ntdll.EtwRegisterTraceGuidsW
# @ stub RemoveTraceCallback
# @ stub RemoveUsersFromEncryptedFile
@ stdcall ReportEventA(long long long long ptr long long ptr ptr)
...
...
dlls/advapi32/eventlog.c
View file @
d2d40b1d
...
...
@@ -742,70 +742,6 @@ BOOL WINAPI ReportEventW( HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dw
}
/******************************************************************************
* RegisterTraceGuidsW [ADVAPI32.@]
*
* Register an event trace provider and the event trace classes that it uses
* to generate events.
*
* PARAMS
* RequestAddress [I] ControlCallback function
* RequestContext [I] Optional provider-defined context
* ControlGuid [I] GUID of the registering provider
* GuidCount [I] Number of elements in the TraceGuidReg array
* TraceGuidReg [I/O] Array of TRACE_GUID_REGISTRATION structures
* MofImagePath [I] not supported, set to NULL
* MofResourceName [I] not supported, set to NULL
* RegistrationHandle [O] Provider's registration handle
*
* RETURNS
* Success: ERROR_SUCCESS
* Failure: System error code
*
* FIXME
* Stub.
*/
ULONG
WINAPI
RegisterTraceGuidsW
(
WMIDPREQUEST
RequestAddress
,
PVOID
RequestContext
,
LPCGUID
ControlGuid
,
ULONG
GuidCount
,
PTRACE_GUID_REGISTRATION
TraceGuidReg
,
LPCWSTR
MofImagePath
,
LPCWSTR
MofResourceName
,
PTRACEHANDLE
RegistrationHandle
)
{
FIXME
(
"(%p, %p, %s, %u, %p, %s, %s, %p): stub
\n
"
,
RequestAddress
,
RequestContext
,
debugstr_guid
(
ControlGuid
),
GuidCount
,
TraceGuidReg
,
debugstr_w
(
MofImagePath
),
debugstr_w
(
MofResourceName
),
RegistrationHandle
);
if
(
TraceGuidReg
)
{
ULONG
i
;
for
(
i
=
0
;
i
<
GuidCount
;
i
++
)
{
FIXME
(
" register trace class %s
\n
"
,
debugstr_guid
(
TraceGuidReg
[
i
].
Guid
));
TraceGuidReg
[
i
].
RegHandle
=
(
HANDLE
)
0xdeadbeef
;
}
}
*
RegistrationHandle
=
(
TRACEHANDLE
)
0xdeadbeef
;
return
ERROR_SUCCESS
;
}
/******************************************************************************
* RegisterTraceGuidsA [ADVAPI32.@]
*
* See RegisterTraceGuidsW.
*
* FIXME
* Stub.
*/
ULONG
WINAPI
RegisterTraceGuidsA
(
WMIDPREQUEST
RequestAddress
,
PVOID
RequestContext
,
LPCGUID
ControlGuid
,
ULONG
GuidCount
,
PTRACE_GUID_REGISTRATION
TraceGuidReg
,
LPCSTR
MofImagePath
,
LPCSTR
MofResourceName
,
PTRACEHANDLE
RegistrationHandle
)
{
FIXME
(
"(%p, %p, %s, %u, %p, %s, %s, %p): stub
\n
"
,
RequestAddress
,
RequestContext
,
debugstr_guid
(
ControlGuid
),
GuidCount
,
TraceGuidReg
,
debugstr_a
(
MofImagePath
),
debugstr_a
(
MofResourceName
),
RegistrationHandle
);
return
ERROR_SUCCESS
;
}
/******************************************************************************
* StartTraceW [ADVAPI32.@]
*
* Register and start an event trace session
...
...
dlls/ntdll/misc.c
View file @
d2d40b1d
...
...
@@ -30,6 +30,8 @@
#include "wine/library.h"
#include "wine/debug.h"
#include "ntdll_misc.h"
#include "wmistr.h"
#include "evntrace.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ntdll
);
...
...
@@ -335,3 +337,59 @@ BOOL WINAPI WinSqmIsOptedIn(void)
FIXME
(
"() stub
\n
"
);
return
FALSE
;
}
/******************************************************************************
* EtwRegisterTraceGuidsW (NTDLL.@)
*
* Register an event trace provider and the event trace classes that it uses
* to generate events.
*
* PARAMS
* RequestAddress [I] ControlCallback function
* RequestContext [I] Optional provider-defined context
* ControlGuid [I] GUID of the registering provider
* GuidCount [I] Number of elements in the TraceGuidReg array
* TraceGuidReg [I/O] Array of TRACE_GUID_REGISTRATION structures
* MofImagePath [I] not supported, set to NULL
* MofResourceName [I] not supported, set to NULL
* RegistrationHandle [O] Provider's registration handle
*
* RETURNS
* Success: ERROR_SUCCESS
* Failure: System error code
*/
ULONG
WINAPI
EtwRegisterTraceGuidsW
(
WMIDPREQUEST
RequestAddress
,
void
*
RequestContext
,
const
GUID
*
ControlGuid
,
ULONG
GuidCount
,
TRACE_GUID_REGISTRATION
*
TraceGuidReg
,
const
WCHAR
*
MofImagePath
,
const
WCHAR
*
MofResourceName
,
TRACEHANDLE
*
RegistrationHandle
)
{
FIXME
(
"(%p, %p, %s, %u, %p, %s, %s, %p): stub
\n
"
,
RequestAddress
,
RequestContext
,
debugstr_guid
(
ControlGuid
),
GuidCount
,
TraceGuidReg
,
debugstr_w
(
MofImagePath
),
debugstr_w
(
MofResourceName
),
RegistrationHandle
);
if
(
TraceGuidReg
)
{
ULONG
i
;
for
(
i
=
0
;
i
<
GuidCount
;
i
++
)
{
FIXME
(
" register trace class %s
\n
"
,
debugstr_guid
(
TraceGuidReg
[
i
].
Guid
));
TraceGuidReg
[
i
].
RegHandle
=
(
HANDLE
)
0xdeadbeef
;
}
}
*
RegistrationHandle
=
(
TRACEHANDLE
)
0xdeadbeef
;
return
ERROR_SUCCESS
;
}
/******************************************************************************
* EtwRegisterTraceGuidsA (NTDLL.@)
*/
ULONG
WINAPI
EtwRegisterTraceGuidsA
(
WMIDPREQUEST
RequestAddress
,
void
*
RequestContext
,
const
GUID
*
ControlGuid
,
ULONG
GuidCount
,
TRACE_GUID_REGISTRATION
*
TraceGuidReg
,
const
char
*
MofImagePath
,
const
char
*
MofResourceName
,
TRACEHANDLE
*
RegistrationHandle
)
{
FIXME
(
"(%p, %p, %s, %u, %p, %s, %s, %p): stub
\n
"
,
RequestAddress
,
RequestContext
,
debugstr_guid
(
ControlGuid
),
GuidCount
,
TraceGuidReg
,
debugstr_a
(
MofImagePath
),
debugstr_a
(
MofResourceName
),
RegistrationHandle
);
return
ERROR_SUCCESS
;
}
dlls/ntdll/ntdll.spec
View file @
d2d40b1d
...
...
@@ -41,6 +41,8 @@
# @ stub DbgUiStopDebugging
@ stub DbgUiWaitStateChange
@ stdcall DbgUserBreakPoint()
@ stdcall EtwRegisterTraceGuidsA(ptr ptr ptr long ptr str str ptr)
@ stdcall EtwRegisterTraceGuidsW(ptr ptr ptr long ptr wstr wstr ptr)
# @ stub KiFastSystemCall
# @ stub KiFastSystemCallRet
# @ stub KiIntSystemCall
...
...
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