CoInitializeEx (ole32)
Last changed: -5.202.143.191

.
Summary

C# Signature:

[DllImport("ole32.dll")]
static extern int CoInitializeEx(IntPtr pvReserved, uint dwCoInit);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

// Note: PreserveSig=false allows .NET interop to handle processing the returned HRESULT and throw an exception on failure

[DllImport( "Ole32.dll", ExactSpelling=true, EntryPoint="CoInitializeEx", CallingConvention=CallingConvention.StdCall, SetLastError=false, PreserveSig=false ) ]

static extern void CoInitializeEx(IntPtr pvReserved, uint dwCoInit);

Alternative Managed API:

Do you know one? Please contribute it!

Documentation