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 //Address of output variable that receives
// the IStorage interface pointer
);
This function supports the standard return values E_OUTOFMEMORY, E_UNEXPECTED, E_INVALIDARG, and E_FAIL, as well as the following:
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.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objbase.h.
Import Library: Included as a resource in ole32.dll.
IFillLockBytes, ILockBytes, StgGetIFillLockBytesOnFile, StgOpenStorageOnILockBytes.