Ole32OleInitialize Method

Initializes the COM library on the current apartment, identifies the concurrency model as single-thread apartment (STA), and enables additional functionality.

Applications must initialize the COM library before they can call COM library functions other than CoGetMalloc and memory allocation functions.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Ole32.dll", ExactSpelling = true)]
public static HResult OleInitialize(
	[OptionalAttribute] IntPtr reserved
)

Parameters

reserved  IntPtr  (Optional)
This parameter is reserved and must be Zero.

Return Value

HResult
Returns S_OK on success, or other HResult if an error occurs.

Remarks

See Also