StgCreateDocfile(3w)

StgCreateDocfile3w

Usage

HRESULT StgCreateDocfile
(
LPCOLESTR pwcsName,
DWORD grfMode,
DWORD reserved,
IStorage** ppstgOpen
)

Overview

Creates a new compound file storage object.

Params

pwcsName [ I] Unicode string with filename (can be relative or NULL)

grfMode [ I] Access mode for opening the new storage object (see STGM_ constants)

reserved [ ?] unused?, usually 0

ppstgOpen [IO] A pointer to IStorage pointer to the new onject.

Returns

S_OK if the file was successfully created some STG_E_ value if error.

Notes

if pwcsName is NULL, create file with new unique name the function can returns STG_S_CONVERTED if the specified file was successfully converted to storage format (unrealized now)

Implementation

Declared in "objbase.h".

Implemented in "dlls/ole32/storage32.c".

Debug channel "storage".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.