com.jniwrapper.win32.stg
Interface IStorage

All Superinterfaces:
AutoDeleteParameter, IUnknown
All Known Implementing Classes:
IStorageImpl

public interface IStorage
extends IUnknown

This interface is used for management of structured storage objects.

See Also:
Microsoft Structured Storage documentation

Field Summary
static java.lang.String INTERFACE_IDENTIFIER
           
 
Method Summary
 void commit(StgCommit grfCommitFlags)
           
 void copyTo(UInt32 ciidExclude, ComplexArray rgiidExclude, SNB snbExclude, IStorage pstgDest)
           
 IStorage createStorage(OleStr pwcsName, StgMode grfMode, UInt32 reserved1, UInt32 reserved2)
           
 IStream createStream(OleStr pwcsName, StgMode grfMode, UInt32 reserved1, UInt32 reserved2)
           
 void destroyElement(OleStr pwcsName)
           
 IEnumStatStg enumElements(UInt32 reserved1, Pointer.Void reserved2, UInt32 reserved3)
           
 void moveElementTo(OleStr pwcsName, IStorage pstgDest, OleStr pwcsNewName, StgMode grfFlags)
           
 IStorage openStorage(OleStr pwcsName, IStorage pStgPriority, StgMode grfMode, SNB snbExclude, UInt32 reserved)
           
 IStream openStream(OleStr pwcsName, Pointer.Void reserved1, StgMode grfMode, UInt32 reserved2)
           
 void renameElement(OleStr pwcsName, OleStr pwcsNewName)
           
 void revert()
           
 void setClass(CLSID clsid)
           
 void setElementTimes(OleStr pwcsName, FileTime pctime, FileTime patime, FileTime pmtime)
           
 void setStateBits(UInt32 grfStateBits, UInt32 grfMask)
           
 StatStg stat(StatFlag grfStatFlag)
           
 
Methods inherited from interface com.jniwrapper.win32.com.IUnknown
addRef, isNull, queryInterface, release, setNull
 
Methods inherited from interface com.jniwrapper.AutoDeleteParameter
isAutoDelete, setAutoDelete
 

Field Detail

INTERFACE_IDENTIFIER

public static final java.lang.String INTERFACE_IDENTIFIER
See Also:
Constant Field Values
Method Detail

createStream

public IStream createStream(OleStr pwcsName,
                            StgMode grfMode,
                            UInt32 reserved1,
                            UInt32 reserved2)
                     throws ComException
Parameters:
pwcsName - [in]
grfMode - [in]
reserved1 - [in]
reserved2 - [in]
Throws:
ComException

openStream

public IStream openStream(OleStr pwcsName,
                          Pointer.Void reserved1,
                          StgMode grfMode,
                          UInt32 reserved2)
                   throws ComException
Parameters:
pwcsName - [in]
reserved1 - [in]
grfMode - [in]
reserved2 - [in]
Throws:
ComException

createStorage

public IStorage createStorage(OleStr pwcsName,
                              StgMode grfMode,
                              UInt32 reserved1,
                              UInt32 reserved2)
                       throws ComException
Parameters:
pwcsName - [in]
grfMode - [in]
reserved1 - [in]
reserved2 - [in]
Throws:
ComException

openStorage

public IStorage openStorage(OleStr pwcsName,
                            IStorage pStgPriority,
                            StgMode grfMode,
                            SNB snbExclude,
                            UInt32 reserved)
                     throws ComException
Parameters:
pwcsName - [in]
pStgPriority - [in]
grfMode - [in]
snbExclude - [in]
reserved - [in]
Throws:
ComException

copyTo

public void copyTo(UInt32 ciidExclude,
                   ComplexArray rgiidExclude,
                   SNB snbExclude,
                   IStorage pstgDest)
            throws ComException
Parameters:
ciidExclude - [in]
rgiidExclude - [in]
snbExclude - [in]
pstgDest - [in]
Throws:
ComException

moveElementTo

public void moveElementTo(OleStr pwcsName,
                          IStorage pstgDest,
                          OleStr pwcsNewName,
                          StgMode grfFlags)
                   throws ComException
Parameters:
pwcsName - [in]
pstgDest - [in]
pwcsNewName - [in]
grfFlags - [in]
Throws:
ComException

commit

public void commit(StgCommit grfCommitFlags)
            throws ComException
Parameters:
grfCommitFlags - [in]
Throws:
ComException

revert

public void revert()
            throws ComException
Throws:
ComException

enumElements

public IEnumStatStg enumElements(UInt32 reserved1,
                                 Pointer.Void reserved2,
                                 UInt32 reserved3)
                          throws ComException
Parameters:
reserved1 - [in]
reserved2 - [in]
reserved3 - [in]
Throws:
ComException

destroyElement

public void destroyElement(OleStr pwcsName)
                    throws ComException
Parameters:
pwcsName - [in]
Throws:
ComException

renameElement

public void renameElement(OleStr pwcsName,
                          OleStr pwcsNewName)
                   throws ComException
Parameters:
pwcsName - [in]
pwcsNewName - [in]
Throws:
ComException

setElementTimes

public void setElementTimes(OleStr pwcsName,
                            FileTime pctime,
                            FileTime patime,
                            FileTime pmtime)
                     throws ComException
Parameters:
pwcsName - [in]
pctime - [in]
patime - [in]
pmtime - [in]
Throws:
ComException

setClass

public void setClass(CLSID clsid)
              throws ComException
Parameters:
clsid - [in]
Throws:
ComException

setStateBits

public void setStateBits(UInt32 grfStateBits,
                         UInt32 grfMask)
                  throws ComException
Parameters:
grfStateBits - [in]
grfMask - [in]
Throws:
ComException

stat

public StatStg stat(StatFlag grfStatFlag)
             throws ComException
Parameters:
grfStatFlag - [in]
Throws:
ComException