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 object.

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 "include/objbase.h". gitlab.winehq.org/wine/wine/blob/master/include/objbase.h

Implemented in "dlls/ole32/storage32.c". gitlab.winehq.org/wine/wine/blob/master/dlls/ole32/storage32.c

Debug channel "storage".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.