Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than ole32, prefix the name with the module name and a period.
Shared Function CoInitialize(pvReserved As IntPtr) As Integer
Tips & Tricks:
Please add some!
Please add some!
Alternative Managed API:
Do you know one? Please contribute it!
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.
1/13/2008 11:00:13 AM - tsahi-22.214.171.124
CoInitializeEx initializes the COM library for use by the calling thread, sets the thread's concurrency model, and creates a new apartment for the thread if one is required. Values for the dwCoInit parameter are taken from the COINIT enumeration. However, since pinvoke is a dotNET construct you should be aware that dotNET already does a COM initialization and therefore calling a CoInitializeEx function most likely will not do what you expect. This problem occurs when trying to instantiate a COM object from within dotNET where the COM objects threading model is different from dotNETs. Search on Common Language Runtime or CLR and COINIT_APARTMENTTHREADED to find posts on this issue.
7/25/2015 11:25:25 PM - -126.96.36.199
Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA).
10/3/2008 12:49:52 PM - -188.8.131.52
The mechanism provided by the CLR that enables managed code to call static DLL exports.
3/15/2016 7:24:19 AM - 184.108.40.206
Please edit this page!
Do you have...