Opens a compound file on an ILockBytes implementation that that is capable of monitoring sector information.
WINOLEAPI StgOpenLayoutDocfile(
OLECHAR *pwcsName |
// Pointer to name of compound file to be opened |
DWORD grfMode |
// Access mode for the new storage object. |
DWORD reserved |
// Reserved for future use. |
IStorage **ppstgOpen |
// Indirect pointer to the new root storage object. |
); |
Parameters
Return Values
This function supports the standard return values E_OUTOFMEMORY, E_UNEXPECTED, E_INVALIDARG, and E_FAIL, as well as the following:
This function can also return any of the error values returned by the StgOpenStorageOnILockBytes function.
Remarks
The compound file implementation created by this function exposes the ILayoutStorage interface on its root storage. Applications use this interface to express the optimal layout of their compound files for the purpose of more rapidly downloading and rendering data over a slow link. StgOpenLayoutDocfile returns a pointer to the IStorage interface on the root storage of the newly created compound file. Using this pointer, applications call QueryInterface to obtain a pointer to ILayoutStorage.
See Also