IStorage::OpenStorage Method (String^, IStorage^, UInt32, IntPtr, UInt32, IStorage^)

 
Namespace:   Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

void OpenStorage(
	String^ pwcsName,
	IStorage^ pstgPriority,
	unsigned int grfMode,
	IntPtr snbExclude,
	unsigned int reserved,
	[OutAttribute] IStorage^% ppstg
)

Parameters

pwcsName
Type: System::String^

A pointer to a wide character null-terminated Unicode string that contains the name of the storage object to open. The 000 through 01f characters, serving as the first character of the stream/storage name, are reserved for use by OLE. This is a compound file restriction, not a structured storage restriction. It is ignored if pstgPriority is non-NULL.

pstgPriority
Type: Microsoft.VisualStudio.OLE.Interop::IStorage^

Must be NULL. A non-NULL value will return STG_E_INVALIDPARAMETER.

grfMode
Type: System::UInt32

Specifies the access mode to use when opening the storage object. For descriptions of the possible values, see STGM Constants. Other modes you choose must at least specify STGM_SHARE_EXCLUSIVE when calling this method.

snbExclude
Type: System::IntPtr

Must be NULL. A non-NULL value will return STG_E_INVALIDPARAMETER.

reserved
Type: System::UInt32

Reserved for future use; must be zero.

ppstg
Type: Microsoft.VisualStudio.OLE.Interop::IStorage^

When successful, pointer to the location of an IStorage pointer to the opened storage object. This parameter is set to NULL if an error occurs.

Return to top
Show: