Step 1: Initialize the COM Library

[This is preliminary documentation and subject to change.]

Before you can start using Active Accessibility's features, you must initialize the Component Object Model (COM) library by calling the OleInitialize(NULL) OLE function. Server calls this function before it can receive WM_GETOBJECT messages.

// Attempt to initialize OLE.
OleInitialize(NULL);