Compartilhar via


IVsUIShellDocumentWindowMgr.SaveDocumentWindowPositions Method

Saves the window positions and guidEditorType/pszPhysicalView for each open document window into a stream.

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

Syntax

'Declaration
Function SaveDocumentWindowPositions ( _
    dwReserved As UInteger, _
    pStream As IStream _
) As Integer
int SaveDocumentWindowPositions(
    uint dwReserved,
    IStream pStream
)
int SaveDocumentWindowPositions(
    [InAttribute] unsigned int dwReserved, 
    [InAttribute] IStream^ pStream
)
abstract SaveDocumentWindowPositions : 
        dwReserved:uint32 * 
        pStream:IStream -> int
function SaveDocumentWindowPositions(
    dwReserved : uint, 
    pStream : IStream
) : int

Parameters

  • dwReserved
    Type: UInt32

    [in] Reserved for future use.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIShellDocumentWindowMgr::SaveDocumentWindowPositions(
   [in] DWORD dwReserved, 
   [in] IStream * pStream
);

.NET Framework Security

See Also

Reference

IVsUIShellDocumentWindowMgr Interface

Microsoft.VisualStudio.Shell.Interop Namespace