Opens a container or mail user object and returns a pointer to the object.
HRESULT OpenEntry( ULONG cbEntryID, ENTRYID *lpEntryID, CIID *lpInterface, ULONG ulFlags, ULONG *lpulObjType, LPUNKNOWN *lppUnk );
Value of type ULONG that specifies the size of the entry identifier to open.
Pointer to a variable of type ENTRYID that specifies the entry identifier of the object to open (NULL for the root WAB container).
Pointer to an interface identifier (IID) for the object to open. Pass NULL to specify the standard interface for the object.
Value of type ULONG that specifies the bitmask containing object access flags.
Default. Read access only.
Opens with the best available access rights.
Requests read/write access.
Pointer to a variable of type ULONG that receives the returned object type.
Address of a pointer to a variable of type IUnknown that receives the returned object.
The method can return one of the following values.
The entry was successfully opened.
An attempt was made to open an entry for which the user has insufficient permissions.
The entry represented by lpEntryID does not exist.
The entry identifier specified in lpEntryID is not recognized. This value is typically returned if the address book provider responsible for the corresponding entry is not open.
Minimum supported client
|Windows 2000 Professional|
Minimum supported server
|Windows 2000 Server|
|Internet Explorer 4.0|
Build date: 6/30/2010