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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Ole32.dll", ExactSpelling := true>]
Public Shared Function OleInitialize (
<OptionalAttribute> reserved As IntPtr
) As HResult
Dim reserved As IntPtr
Dim returnValue As HResult
returnValue = Ole32.OleInitialize(reserved)
public:
[DllImportAttribute(L"Ole32.dll", ExactSpelling = true)]
static HResult OleInitialize(
[OptionalAttribute] IntPtr reserved
)
[<DllImportAttribute("Ole32.dll", ExactSpelling = true)>]
static member OleInitialize :
[<OptionalAttribute>] reserved : IntPtr -> HResult
No code example is currently available or this language may not be supported.
- reserved IntPtr (Optional)
-
This parameter is reserved and must be Zero.
HResult
Returns
S_OK on success, or other
HResult if an error occurs.