Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

IPersist (Interfaces)
 
.
Summary
IPersist

The IPersist interface defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. A call to this method can allow the object to specify which object handler to use in the client process, as it is used in the OLE default implementation of marshaling.

Summary
TODO - a short description

C# Definition:

[ComImport, Guid("0000010c-0000-0000-c000-000000000046"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IPersist
{
    [PreserveSig]
    void GetClassID(out Guid pClassID);
//from http://msdn.microsoft.com/en-US/library/microsoft.visualstudio.ole.interop.ipersiststreaminit.save(v=vs.80).aspx
[ComImport]
[Guid("7FD52380-4E07-101B-AE2D-08002B2EC713")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
interface IPersistStreamInit {
    int GetClassID (out Guid pClassID);
    int IsDirty ();    
    void Load ([InAttribute] IStream pstm);
    void Save ([InAttribute] IStream pstm, [InAttribute] int fClearDirty);
    void GetSizeMax ([OutAttribute] ulong[] pcbSize);    
    void InitNew ();
}

VB Definition:

#Region "IPersist Interface Definition"
<ComImport(), Guid("0000010c-0000-0000-c000-000000000046"), _
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IPersist

    <PreserveSig()> Sub GetClassID(ByRef pClassID As Guid)

<ComImport> _
<Guid("7FD52380-4E07-101B-AE2D-08002B2EC713")> _
'TODO: Insert <InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _ if this doesn't derive from IDispatch
Interface IPersistStreamInit
   TODO
End Interface
#End Region

User-Defined Field Types:

User-Defined Types:

None.

Notes:

None.

Documentation
IPersist on MSDN
Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions