When I include `evntrace.h` gcc shows these errors:

```
In file included from TraceEvent.h:10:0,
                 from main.h:4,
                 from main.c:1:
e:\mingw64\x86_64-w64-mingw32\include\evntrace.h:513:3: error: unknown
type name 'WNODE_HEADER'
   WNODE_HEADER Wnode;
   ^
e:\mingw64\x86_64-w64-mingw32\include\evntrace.h:608:38: error:
unknown type name 'WMIDPREQUESTCODE'
 typedef ULONG (WINAPI *WMIDPREQUEST)(WMIDPREQUESTCODE
RequestCode,PVOID RequestContext,ULONG *BufferSize,PVOID Buffer);
                                      ^
In file included from TraceEvent.h:10:0,
                 from main.h:4,
                 from main.c:1:
e:\mingw64\x86_64-w64-mingw32\include\evntrace.h:767:43: error:
unknown type name 'WMIDPREQUEST'
 EXTERN_C ULONG WMIAPI RegisterTraceGuidsW(WMIDPREQUEST
RequestAddress,PVOID RequestContext,LPCGUID ControlGuid,ULONG
GuidCount,PTRACE_GUID_REGISTRATION TraceGuidReg,LPCWSTR
MofImagePath,LPCWSTR MofResourceName,PTRACEHANDLE RegistrationHandle);
                                           ^
e:\mingw64\x86_64-w64-mingw32\include\evntrace.h:768:43: error:
unknown type name 'WMIDPREQUEST'
 EXTERN_C ULONG WMIAPI RegisterTraceGuidsA(WMIDPREQUEST
RequestAddress,PVOID RequestContext,LPCGUID ControlGuid,ULONG
GuidCount,PTRACE_GUID_REGISTRATION TraceGuidReg,LPCSTR
MofImagePath,LPCSTR MofResourceName,PTRACEHANDLE RegistrationHandle);
                                           ^
```

May be there are some errors in the evntrace.h file. Or am I doing
anything wrong?

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to