Opens an existing root asynchronous storage object on a byte array wrapper object provided by the caller.
WINOLEAPI StgOpenAsyncDocFileOnIFillLockBytes(
IFillLockBytes *pflb |
// Pointer to byte array wrapper object |
DWORD grfmode |
// Storage access mode |
DWORD asyncFlags |
// Asynchronous storage flags |
IStorage **ppstgOpen |
// Indirect pointer to asynchronous storage |
); |
Parameters
Return Values
This function supports the standard return values E_OUTOFMEMORY, E_UNEXPECTED, E_INVALIDARG, and E_FAIL, as well as the following:
Remarks
The root storage of the asynchronous storage object is opened according to the access mode in the grfMode parameter. A pointer to the IStorage interface on the opened storage object is supplied through the ppstgOpen parameter.
The byte array wrapper object must have been previously instantiated through a call to the StgGetIFillLockBytesOnFile function.
StgOpenAsyncDocFileOnIFillLockBytes does not support priority access mode or exclusions. Otherwise, it works in much the same way as the StgOpenStorageOnILockBytes function.
The returned storage object has a connection point for IProgressNotify.
See Also
IFillLockBytes, ILockBytes, StgGetIFillLockBytesOnFile, StgOpenStorageOnILockBytes.