PyIStorage = StgCreateDocfile(name, mode , reserved )

Creates a new compound file storage object using the OLE-provided compound file implementation for the PyIStorage interface.


name : string

the path of the compound file to create. It is passed uninterpreted to the file system. This can be a relative name or None. If None, a temporary stream is created.

mode : int

Specifies the access mode used to open the storage.

reserved=0 : int

A reserved value