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

Search Results for "IPersist" in [All]

Constants

.

Guid IID_IPersistPropertyBag = new Guid("{37D84F60-42CB-11CE-8135-00AA004BB851}");

.

Guid IID_IPersistStorage = new Guid("{0000010A-0000-0000-C000-000000000046}");

.

Guid IID_IPersistStream = new Guid("{00000109-0000-0000-C000-000000000046}");

.

        /// Unable to marshal an interface that does not support IPersistStream

.

        public const int COMQC_E_NO_IPERSISTSTREAM = (int)(0x80110603 - 0x100000000);

Enums

.

    ///Unable to marshal an interface that does not support IPersistStream

.

    [Description("Unable to marshal an interface that does not support IPersistStream")]

.

    public const int COMQC_E_NO_IPERSISTSTREAM = unchecked((int)0x80110603);

.

    '''Unable to marshal an interface that does not support IPersistStream

.

    <Description("Unable to marshal an interface that does not support IPersistStream")> _

.

    Public Const COMQC_E_NO_IPERSISTSTREAM As Integer = CInt(&H80110603UI)

.

    /// If SLR_UPDATE is set, you do not need to call IPersistFile::IsDirty to determine

.

    ''' If SLR_UPDATE is set, you do not need to call IPersistFile::IsDirty to determine

Interfaces

.

Public Interface IPersist

.

Public Interface IPersistStream

.

Public Interface IPersist

.

Public Interface IPersistStream

.

  private const string _IID_IPersistStorage = "{0000010A-0000-0000-C000-000000000046}";

.

  private const string _IID_IPersistStream = "{00000109-0000-0000-C000-000000000046}";

.

  private const string _IID_IPersistPropertyBag = "{37D84F60-42CB-11CE-8135-00AA004BB851}";

.

      case _IID_IPersistStorage:

.

      case _IID_IPersistStream:

.

      case _IID_IPersistPropertyBag:

.

      case _IID_IPersistStorage:

.

      case _IID_IPersistStream:

.

      case _IID_IPersistPropertyBag:

.

//from http://msdn.microsoft.com/en-US/library/microsoft.visualstudio.ole.interop.ipersiststreaminit.save(v=vs.80).aspx

.

interface IPersistStreamInit {

.

Interface IPersistStreamInit

.
Documentation
[IPersistStreamInit] on MSDN
.
Summary
IPersistFile .

The IPersistFile interface provides methods that permit an object to be loaded from or saved to a disk file, rather than a storage object or stream. Because the information needed to open a file varies greatly from one application to another, the implementation of IPersistFile::Load on the object must also open its disk file.

.

The IPersistFile interface inherits its definition from IPersist, so all implementations must also include the GetClassID method of IPersist

.

public interface IPersistFile: IPersist

.

Public Interface IPersistFile

.

    Inherits IPersist

.

//from http://msdn.microsoft.com/en-US/library/microsoft.visualstudio.ole.interop.ipersiststreaminit.save(v=vs.80).aspx

.

interface IPersistStreamInit {

.

Interface IPersistStreamInit

.
Documentation
[IPersistStreamInit] on MSDN
.

//from http://msdn.microsoft.com/en-US/library/microsoft.visualstudio.ole.interop.ipersiststreaminit.save(v=vs.80).aspx

.

interface IPersistStreamInit {

.

Interface IPersistStreamInit

.
Documentation
[IPersistStreamInit] on MSDN
.

((IPersistFile)lnk).Save("c:\\thelink.LNK", true);

ole32

.

        Guid    IID_IPersistStreamInit = new Guid("7FD52380-4E07-101B-AE2D-08002B2EC713");

.

        {   // get a pointer to IPersistStreamInit interface

.

            iResult = Marshal.QueryInterface(pIUnk, ref IID_IPersistStreamInit, out pIPStream); // returns a pointer to a pointer for a specified Interface

.

            IPersistStreamInit pPersistStream = (IPersistStreamInit)Marshal.GetObjectForIUnknown(pIPStream);

.

     public bool CheckGUIDS(IPersistStreamInit pPersistStream, string strCtrlGUID)

.

    private static extern void OleSaveToStream(IPersistStreamInit pPStm, IStream pStm);

.

       public int ByteSizeOfIPStreamInit(IPersistStreamInit pPersistStream)

.

    private static extern void OleSaveToStream(IPersistStreamInit pPStm, IStream pStm);

.

       public int ByteSizeOfIPStreamInit(IPersistStreamInit pPersistStream)


 
Access PInvoke.net directly from VS: