DkmComponentManager.InitializeThread Method

Definition

Overloads

InitializeThread(Guid)

Initialize a thread with the component manager. This is necessary when a component creates one or more worker threads. InitializeThread should only be called once, and must have a matching call to UninitializeThread.

InitializeThread(Guid, Boolean)

Initialize a thread with the component manager. This is necessary when a component creates one or more worker threads. InitializeThread should only be called once, and must have a matching call to UninitializeThread.

InitializeThread(IntPtr, Boolean)

Initialize a thread with the component manager. InitializeThreadByHandle should only be called once, and must have a matching call to UninitializeThreadByHandle.

InitializeThread(Guid)

Initialize a thread with the component manager. This is necessary when a component creates one or more worker threads. InitializeThread should only be called once, and must have a matching call to UninitializeThread.

public:
 static void InitializeThread(Guid componentId);
public static void InitializeThread (Guid componentId);
static member InitializeThread : Guid -> unit
Public Shared Sub InitializeThread (componentId As Guid)

Parameters

componentId
Guid

Guid for the component initializing the thread. This Guid value is defined in the component's configuration file.

Exceptions

Exception with code E_XAPI_ALREADY_INITIALIZED is thrown if the thread has already been initialized by a different component.

Applies to

InitializeThread(Guid, Boolean)

Initialize a thread with the component manager. This is necessary when a component creates one or more worker threads. InitializeThread should only be called once, and must have a matching call to UninitializeThread.

public:
 static void InitializeThread(Guid componentId, [Runtime::InteropServices::Out] bool % alreadyInitialized);
public static void InitializeThread (Guid componentId, out bool alreadyInitialized);
static member InitializeThread : Guid * bool -> unit
Public Shared Sub InitializeThread (componentId As Guid, ByRef alreadyInitialized As Boolean)

Parameters

componentId
Guid

Guid for the component initializing the thread. This Guid value is defined in the component's configuration file.

alreadyInitialized
Boolean

Returns true if the thread was previously initialized by this component. Callers can use this as a hint that UninitializeThread should not be called.

Exceptions

Exception with code E_XAPI_ALREADY_INITIALIZED is thrown if the thread has already been initialized by a different component.

Applies to

InitializeThread(IntPtr, Boolean)

Initialize a thread with the component manager. InitializeThreadByHandle should only be called once, and must have a matching call to UninitializeThreadByHandle.

public:
 static void InitializeThread(IntPtr componentHandle, [Runtime::InteropServices::Out] bool % alreadyInitialized);
public static void InitializeThread (IntPtr componentHandle, out bool alreadyInitialized);
static member InitializeThread : nativeint * bool -> unit
Public Shared Sub InitializeThread (componentHandle As IntPtr, ByRef alreadyInitialized As Boolean)

Parameters

componentHandle
IntPtr

nativeint

Handle for the component, obtained by FindComponentHandle

alreadyInitialized
Boolean

Returns true if the thread was previously initialized by this component. Callers can use this as a hint that UninitializeThreadByHandle should not be called.

Exceptions

Exception with code E_XAPI_ALREADY_INITIALIZED is thrown if the thread has already been initialized by a different component.

Applies to