If you need low-level access to OLE through a C or C++ DLL that you call from PowerBuilder, you can use these functions:
GetNativePointer (for OLEControl and OLECustomControl)
GetAutomationNativePointer (for OLEObject)
When you have finished, you must use these functions to free the pointer:
ReleaseNativePointer (for OLEControl and OLECustomControl)
ReleaseAutomationNativePointer (for OLEObject)
For more information, see the PowerScript Reference.