---
name: "RegisterTraceGuidsW"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/RegisterTraceGuidsW"
---

# RegisterTraceGuidsW(3w)

## NAME

**RegisterTraceGuidsW** (ADVAPI32.@)

## SYNOPSIS

ULONG RegisterTraceGuidsW\
  (\
   WMIDPREQUEST             *RequestAddress*,\
   PVOID                    *RequestContext*,\
   LPCGUID                  *ControlGuid*,\
   ULONG                    *GuidCount*,\
   PTRACE\_GUID\_REGISTRATION *TraceGuidReg*,\
   LPCWSTR                  *MofImagePath*,\
   LPCWSTR                  *MofResourceName*,\
   PTRACEHANDLE             *RegistrationHandle*\
  )

## DESCRIPTION

Register an event trace provider and the event trace classes that it uses to generate events.

## PARAMS

*RequestAddress* **\[In\]**  ControlCallback function.

*RequestContext* **\[In\]**  Optional provider-defined context.

*ControlGuid* **\[In\]**  **GUID** of the registering provider.

*GuidCount* **\[In\]**  Number of elements in the *TraceGuidReg* array.

*TraceGuidReg* **\[In/Out\]**  Array of **TRACE\_GUID\_REGISTRATION** structures.

*MofImagePath* **\[In\]**  not supported, set to **NULL**.

MofResourceNmae **\[In\]**  not supported, set to **NULL**.

*RegistrationHandle* **\[Out\]**  Provider's registration handle.

## RETURNS

**Success:** **ERROR\_SUCCESS**

**Failure:** System error code.

## FIXME

Stub.

## IMPLEMENTATION

Declared in **"evntrace.h"**.

Implemented in **"dlls/advapi32/eventlog.c"**.

Debug channel **"advapi"**.
