Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows the OLE functions with a description of the purpose of each.

Note:
 Windows Mobile may not support all of the programming elements in this section. For information about differences between the COM implementation available for Windows Mobile devices and that available for Windows Embedded CE devices, see COM and DCOM in Windows Mobile Devices.

Programming element Description

CreateOleAdviseHolder

This function instantiates an advise holder object for managing compound document notifications.

CreateStreamOnHGlobal

This function creates a stream object stored in global memory.

GetHGlobalFromStream

This function retrieves the global memory handle to a stream that was created through a call to the CreateStreamOnHGlobalfunction.

OleCreate

This function creates an embedded object identified by a CLSID.

OleDraw

This helper function provides a convenient way to draw objects by encapsulating the IViewObject::Drawmethod and other related maintenance functions for the drawing rectangle.

OleIsRunning

This function determines whether a compound document object is currently in the running state.

OleLoadFromStream

This function loads an object from the stream.

OleRun

This function puts an OLE compound document object into the running state.

OleSave

This function saves an object opened in transacted mode into the specified storage object.

OleSaveToStream

This function saves an object with the IPersistStreaminterface on it to the specified stream.

OleSetContainedObject

This function notifies an object embedded in an OLE container to ensure correct reference.

OleSetMenuDescriptor

This function installs or removes OLE dispatching code from the container's frame window.

ReleaseStgMedium

This function frees the specified storage medium.

VarBoolFromI1

This function converts variant data types to BOOL from char.

VarBoolFromUI2

This function converts variant data types to BOOL from unsigned short.

VarBoolFromUI4

This function converts variant data types to BOOL from unsigned long.

VarBstrFromI1

This function converts variant data types to BSTRfrom char.

VarBstrFromUI2

This function converts variant data types to BSTRfrom unsigned short.

VarBstrFromUI4

This function converts variant data types to BSTRfrom unsigned long.

VarCyFromI1

This function converts variant data types to CURRENCYfrom char.

VarCyFromUI2

This function converts variant data types to CURRENCYfrom unsigned short.

VarCyFromUI4

This function converts variant data types to CURRENCYfrom unsigned long.

VarDateFromI1

This function converts variant data types to DATE from char.

VarDateFromUI2

This function converts variant data types to DATE from unsigned short.

VarDateFromUI4

This function converts variant data types to DATE from unsigned long.

VarDecFromI1

This function converts variant data types to DECIMAL from char.

VarDecFromUI2

This function converts variant data types to DECIMAL from unsigned short.

VarDecFromUI4

This function converts variant data types to DECIMAL from unsigned long.

VarI1FromBool

This function converts variant data types to char from BOOL.

VarI1FromCy

This function converts variant data types to char from CURRENCY.

VarI1FromDate

This function converts variant data types to char from DATE.

VarI1FromDec

This function converts variant data types to char from DECIMAL.

VarI1FromDisp

This function converts variant data types to char from IDispatch.

VarI1FromI2

This function converts variant data types to char from short.

VarI1FromI4

This function converts variant data types to char from long.

VarI1FromR4

This function converts variant data types to char from float.

VarI1FromR8

This function converts variant data types to char from double.

VarI1FromStr

This function converts variant data types to char from BSTR.

VarI1FromUI1

This function converts variant data types to char from BYTE.

VarI1FromUI2

This function converts variant data types to char from unsigned short.

VarI1FromUI4

This function converts variant data types to char from unsigned long.

VarI2FromI1

This function converts variant data types to short from CHAR.

VarI2FromUI2

This function converts variant data types to short from unsigned short.

VarI2FromUI4

This function converts variant data types to short from unsigned long.

VarI4FromI1

This function converts variant data types to long from CHAR.

VarI4FromUI2

This function converts variant data types to long from unsigned short.

VarI4FromUI4

This function converts variant data types to long from unsigned long.

VarR4FromI1

This function converts variant data types to float from double.

VarR4FromUI2

This function converts variant data types to float from unsigned short.

VarR4FromUI4

This function converts variant data types to float from unsigned Long.

VarR8FromI1

This function converts variant data types to double from char.

VarR8FromUI2

This function converts variant data types to double from unsigned short.

VarR8FromUI4

This function converts variant data types to double from unsigned long.

VarUI1FromI1

This function converts variant data types to BYTE from char.

VarUI1FromUI2

This function converts variant data types to BYTE from unsigned short.

VarUI1FromUI4

This function converts variant data types to BYTE from unsigned long.

VarUI2FromBool

This function converts variant data types to unsigned short from BOOL.

VarUI2FromCy

This function converts variant data types to unsigned short from CURRENCY.

VarUI2FromDate

This function converts variant data types to unsigned short from DATE.

VarUI2FromDec

This function converts variant data types to unsigned short from DECIMAL.

VarUI2FromDisp

This function converts variant data types to unsigned short from IDispatch.

VarUI2FromI1

This function converts variant data types to unsigned short from char.

VarUI2FromI2

This function converts variant data types to unsigned short from short.

VarUI2FromI4

This function converts variant data types to unsigned short from long.

VarUI2FromR4

This function converts variant data types to unsigned short from float.

VarUI2FromR8

This function converts variant data types to unsigned short from double.

VarUI2FromStr

This function converts variant data types to unsigned short from BSTR.

VarUI2FromUI1

This function converts variant data types to unsigned short from BYTE.

VarUI2FromUI4

This function converts variant data types to unsigned short from unsigned long.

VarUI4FromBool

This function converts variant data types to unsigned long from BOOL.

VarUI4FromCy

This function converts variant data types to unsigned long from CURRENCY.

VarUI4FromDate

This function converts variant data types to unsigned long from DATE.

VarUI4FromDec

This function converts variant data types to unsigned long from DECIMAL.

VarUI4FromDisp

This function converts variant data types to unsigned long from IDispatch.

VarUI4FromI1

This function converts variant data types to unsigned long from char.

VarUI4FromI2

This function converts variant data types to unsigned long from short.

VarUI4FromI4

This function converts variant data types to unsigned long from long.

VarUI4FromR4

This function converts variant data types to unsigned long from float.

VarUI4FromR8

This function converts variant data types to unsigned long from double.

VarUI4FromStr

This function converts variant data types to unsigned long from BSTR.

VarUI4FromUI1

This function converts variant data types to unsigned long from BYTE.

VarUI4FromUI2

This function converts variant data types to unsigned long from unsigned short.

See Also

Reference

OLE Reference