Udostępnij za pośrednictwem


IStorage.OpenStorage Method

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

Syntax

'Declaration
Sub OpenStorage ( _
    pwcsName As String, _
    pstgPriority As IStorage, _
    grfMode As UInteger, _
    snbExclude As IntPtr, _
    reserved As UInteger, _
    <OutAttribute> ByRef ppstg As IStorage _
)
void OpenStorage(
    string pwcsName,
    IStorage pstgPriority,
    uint grfMode,
    IntPtr snbExclude,
    uint reserved,
    out IStorage ppstg
)
void OpenStorage(
    [InAttribute] String^ pwcsName, 
    [InAttribute] IStorage^ pstgPriority, 
    [InAttribute] unsigned int grfMode, 
    [InAttribute] IntPtr snbExclude, 
    [InAttribute] unsigned int reserved, 
    [OutAttribute] IStorage^% ppstg
)
abstract OpenStorage : 
        pwcsName:string * 
        pstgPriority:IStorage * 
        grfMode:uint32 * 
        snbExclude:IntPtr * 
        reserved:uint32 * 
        ppstg:IStorage byref -> unit 
function OpenStorage(
    pwcsName : String, 
    pstgPriority : IStorage, 
    grfMode : uint, 
    snbExclude : IntPtr, 
    reserved : uint, 
    ppstg : IStorage
)

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

.NET Framework Security

See Also

Reference

IStorage Interface

Microsoft.VisualStudio.OLE.Interop Namespace