StgCreateDocfile.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

StgCreateDocfile (OLE32.@)

SYNOPSIS

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

DESCRIPTION

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

Defined in "objbase.h".

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

Debug channel "storage".