home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Visual Basic.60 / COMMON / TOOLS / VB / UNSUPPRT / IHANDLER / IHANDLER.ODL < prev    next >
Encoding:
Text File  |  1997-01-16  |  2.8 KB  |  64 lines

  1. //==========================================================================
  2. // File:  generated on 11/11/96 10:48 AM:  By Brian Harris
  3. //==========================================================================
  4. [
  5.     uuid(78268EF0-F53D-11cf-BD9C-00AA00575603),
  6.     helpstring("VB 5 - IExtractIcon Interface"),
  7.     version(1.0)
  8. ]
  9.  
  10. //==========================================================================
  11. library IExtractIconA
  12. //==========================================================================
  13. {
  14.     importlib("stdole2.tlb");
  15.  
  16.     //==========================================================================
  17.     typedef    [ helpstring("GetIconLocation() return flags.") ]
  18.     //==========================================================================
  19.     enum Return_Flags
  20.     {
  21.         GIL_SIMULATEDOC  =0x0001,     // simulate this document icon for this
  22.         GIL_PERINSTANCE  =0x0002,     // icons from this class are per instance (each file has its own)
  23.         GIL_PERCLASS     =0x0004,     // icons from this class per class (shared for all files of this type)
  24.         GIL_NOTFILENAME  =0x0008,     // location is not a filename, must call ::ExtractIcon
  25.         GIL_DONTCACHE    =0x0010      // this icon should not be cached
  26.     } Return_Flags;
  27.  
  28.     //==========================================================================
  29.     typedef    [ helpstring("GetIconLocation() input flags.") ]
  30.     //==========================================================================
  31.     enum Input_Flags
  32.     {
  33.         GIL_OPENICON     =0x0001,     // allows containers to specify an "open" look
  34.         GIL_FORSHELL     =0x0002      // icon is to be displayed in a ShellFolder
  35.     } Input_Flags;
  36.  
  37.     //==========================================================================
  38.     [
  39.         uuid(000214EB-0000-0000-C000-000000000046),
  40.         helpstring("IExtractIcon Interface"),
  41.         odl
  42.     ]
  43.     //==========================================================================
  44.     interface IExtractIcon:IUnknown
  45.     //==========================================================================
  46.     {
  47.         [helpstring("GetIconLocation")]
  48.         HRESULT GetIconLocation(
  49.                         [in]     long   uFlags,
  50.                         [in]     long   szIconFile,
  51.                         [in]     long   cchMax,
  52.                         [in,out] long  *piIndex,
  53.                         [in,out] long  *pwFlags);
  54.  
  55.         [helpstring("Extract")]
  56.         HRESULT Extract(
  57.                         [in]     long   szIconFile,
  58.                         [in]     long   nIconIndex,
  59.                         [in,out] long  *phiconLarge,
  60.                         [in,out] long  *phiconSmall,
  61.                         [in]     long   nIconSize);
  62.     }
  63. }
  64.