IPersistFileIPersistFile
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
7/22/2009 1:43:03 AM - Richard Petheram-62.255.32.15
.
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.
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
7/22/2009 1:43:03 AM - Richard Petheram-62.255.32.15
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
7/22/2009 1:43:03 AM - Richard Petheram-62.255.32.15
.
The IPersistFile interface inherits its definition from IPersist, so all implementations must also include the GetClassID method of IPersist
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
7/22/2009 1:43:03 AM - Richard Petheram-62.255.32.15
TODO - a short description
2/23/2017 3:51:23 AM - -216.231.36.102
TODO - a short description
12/26/2015 5:59:47 PM - anonymous
TODO - a short description
2/23/2017 3:51:23 AM - -216.231.36.102
.
public interface IPersistFile: IPersist
.
Public Interface IPersistFile
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
7/22/2009 1:43:03 AM - Richard Petheram-62.255.32.15
.
Inherits IPersist
.
//from http://msdn.microsoft.com/en-US/library/microsoft.visualstudio.ole.interop.ipersiststreaminit.save(v=vs.80).aspx
.
interface IPersistStreamInit {
.
Interface IPersistStreamInit
.
.
//from http://msdn.microsoft.com/en-US/library/microsoft.visualstudio.ole.interop.ipersiststreaminit.save(v=vs.80).aspx
.
interface IPersistStreamInit {
.
Interface IPersistStreamInit
.
.
((IPersistFile)lnk).Save("c:\\thelink.LNK", true);
.
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)
.
///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
.
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);