NTSYSCALLAPI
NTSTATUS
NTAPI
NtTraceEvent(
  IN  HANDLE TraceHandle,
  IN  ULONG  Flags,
  IN  ULONG  FieldSize,
  IN  PVOID  Fields
  );
Routine Description:

    This routine is used by WMI data providers to trace events.
    It calls different tracing functions depending on the Flags.

Arguments:

    TraceHandle     LoggerId
    Flags           Flags that indicate the type of the data being passed
    FieldSize       Size of the Fields
    Fields          Pointer to actual data (events)

Return Value:

    STATUS_SUCCESS  if the event trace is recorded successfully