Sync aclui, advapi32, atl, authz, kernel32, msi, oledlg, powrprof, qmgr, riched20...
[reactos.git] / reactos / dll / win32 / advapi32 / misc / trace.c
1 /*
2 * Advapi32.dll Event Tracing Functions
3 */
4
5 #include <advapi32.h>
6
7 #include <wine/debug.h>
8 #include <wine/unicode.h>
9
10 WINE_DEFAULT_DEBUG_CHANNEL(advapi);
11 /*
12 * @unimplemented
13 */
14 ULONG CDECL
15 TraceMessage(
16 TRACEHANDLE SessionHandle,
17 ULONG MessageFlags,
18 LPCGUID MessageGuid,
19 USHORT MessageNumber,
20 ...)
21 {
22 FIXME("TraceMessage()\n");
23 return ERROR_SUCCESS;
24 }
25
26 TRACEHANDLE
27 WMIAPI
28 GetTraceLoggerHandle(
29 PVOID Buffer
30 )
31 {
32 FIXME("GetTraceLoggerHandle stub()\n");
33 return (TRACEHANDLE)-1;
34 }
35
36
37 ULONG
38 WMIAPI
39 TraceEvent(
40 TRACEHANDLE SessionHandle,
41 PEVENT_TRACE_HEADER EventTrace
42 )
43 {
44 FIXME("TraceEvent stub()\n");
45
46 if (!SessionHandle || !EventTrace)
47 {
48 /* invalid parameters */
49 return ERROR_INVALID_PARAMETER;
50 }
51
52 if (EventTrace->Size != sizeof(EVENT_TRACE_HEADER))
53 {
54 /* invalid parameter */
55 return ERROR_INVALID_PARAMETER;
56 }
57
58 return ERROR_SUCCESS;
59 }
60
61 ULONG
62 WMIAPI
63 GetTraceEnableFlags(
64 TRACEHANDLE TraceHandle
65 )
66 {
67 FIXME("GetTraceEnableFlags stub()\n");
68 return 0xFF;
69 }
70
71 UCHAR
72 WMIAPI
73 GetTraceEnableLevel(
74 TRACEHANDLE TraceHandle
75 )
76 {
77 FIXME("GetTraceEnableLevel stub()\n");
78 return 0xFF;
79 }
80
81 ULONG
82 WMIAPI
83 UnregisterTraceGuids(
84 TRACEHANDLE RegistrationHandle
85 )
86 {
87 FIXME("UnregisterTraceGuids stub()\n");
88 return ERROR_SUCCESS;
89 }
90
91 ULONG
92 WMIAPI
93 RegisterTraceGuidsA(
94 WMIDPREQUEST RequestAddress,
95 PVOID RequestContext,
96 LPCGUID ControlGuid,
97 ULONG GuidCount,
98 PTRACE_GUID_REGISTRATION TraceGuidReg,
99 LPCSTR MofImagePath,
100 LPCSTR MofResourceName,
101 PTRACEHANDLE RegistrationHandle
102 )
103 {
104 FIXME("RegisterTraceGuidsA stub()\n");
105 return ERROR_SUCCESS;
106 }
107
108 ULONG
109 WMIAPI
110 RegisterTraceGuidsW(
111 WMIDPREQUEST RequestAddress,
112 PVOID RequestContext,
113 LPCGUID ControlGuid,
114 ULONG GuidCount,
115 PTRACE_GUID_REGISTRATION TraceGuidReg,
116 LPCWSTR MofImagePath,
117 LPCWSTR MofResourceName,
118 PTRACEHANDLE RegistrationHandle
119 )
120 {
121 FIXME("RegisterTraceGuidsW stub()\n");
122 return ERROR_SUCCESS;
123 }
124
125 ULONG WINAPI StartTraceW( PTRACEHANDLE pSessionHandle, LPCWSTR SessionName, PEVENT_TRACE_PROPERTIES Properties )
126 {
127 FIXME("(%p, %s, %p) stub\n", pSessionHandle, debugstr_w(SessionName), Properties);
128 if (pSessionHandle) *pSessionHandle = 0xcafe4242;
129 return ERROR_SUCCESS;
130 }
131
132 ULONG WINAPI StartTraceA( PTRACEHANDLE pSessionHandle, LPCSTR SessionName, PEVENT_TRACE_PROPERTIES Properties )
133 {
134 FIXME("(%p, %s, %p) stub\n", pSessionHandle, debugstr_a(SessionName), Properties);
135 if (pSessionHandle) *pSessionHandle = 0xcafe4242;
136 return ERROR_SUCCESS;
137 }
138 /* EOF */