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