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

IQueryInfo (Interfaces)
 
.
Summary
The Shell uses the IQueryInfo interface to retrieve flags and info tip information for an item that resides in an IShellFolder implementation. Info tips are usually displayed inside of a ToolTip control.

    [ComImport(),
    Guid("00021500-0000-0000-C000-000000000046"),
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    interface IQueryInfo
    public interface IQueryInfo
    {
        [PreserveSig]
        int GetInfoTip(
            int dwFlags,
            [MarshalAs( UnmanagedType.LPWStr )] out string ppwszTip );

        [PreserveSig]
        int GetInfoFlags( out int pdwFlags );
    }
        int GetInfoTip(
            int dwFlags,
            out IntPtr ppwszTip );

    // ppwszTip will be freed by marshler using CoTaskMemFree()
        [PreserveSig]
        int GetInfoFlags( out int pdwFlags );
    }

    // free ppwszTip by CoTaskMemFree()
    //
    //     IntPtr p;
    //     if( 0 == qi.GetInfoTip( dwFlags, out p ) )
    //    {
    //        string strTip = Marshal.PtrToStringUni( p );
    //        Marshal.FreeCoTaskMem( p );
    //        ...
    //    }

Documentation
IQueryInfo on MSDN

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