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

IEnumSTATSTG (Interfaces)
 
.
Summary
TODO - This interface is used to enumerate through an array of STATSTG structures that contains statistical information about an open storage, stream, or byte array object. This interface has the same methods as all enumerator interfaces: Next, Skip, Reset, and Clone.

C# Definition:

[ComImport]
[Guid("0000000d-0000-0000-C000-000000000046")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IEnumSTATSTG
{
    // The user needs to allocate an STATSTG array whose size is celt.
    [PreserveSig]
    uint
    Next(
    uint celt,
    [MarshalAs(UnmanagedType.LPArray), Out]
    STATSTG[] rgelt,
    out uint pceltFetched
    );

    void Skip(uint celt);
    void Skip(uint celt ;

    void Reset();

    [return:MarshalAs(UnmanagedType.Interface)]
    IEnumSTATSTG Clone();
}

Sample Code

IEnumSTATSTG enumerator = ... ;

STATSTG s = new STATSTG[1];
uint r;

while( e.Next(1, s, out r) == 0 )
{
     // Maniputlate s[0];
     // Maniputlate s[1];
}

Notes:

This is a good example on how to marshal IEnumXXX interfaces.

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