StgOpenLayoutDocfile
Opens a
compound file on an ILockBytes
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
pwcsName
[in] Pointer
to the name of the compound file to be
opened.
grfMode
[in] Access
mode to use when opening the newly created storage object. Values are taken
from the STGM
ppstgOpen
[out]
Indirect pointer to the IStorage
Return Values
This function
supports the standard return values E_OUTOFMEMORY, E_UNEXPECTED, E_INVALIDARG,
and E_FAIL, as well as the following:
STG_E_INVALIDPARAMETER
One of the
parameters is invalid
STG_E_INVALIDNAME
The name
passed to this function is not a valid filename
STG_E_INSUFFICIENTMEMORY
There is
insufficient memory to complete this operation.
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
See Also