home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 March / PCWorld_2001-03_cd.bin / Software / TemaCD / devc / _SETUP.5 / Group3 / intshcut.h < prev    next >
C/C++ Source or Header  |  1999-11-07  |  3KB  |  79 lines

  1. #ifndef _INTSHCUT_H
  2. #define _INTSHCUT_H
  3. #include <isguids.h>
  4. #ifdef __cplusplus
  5. extern "C" { 
  6. #endif 
  7. #define INTSHCUTAPI DECLSPEC_IMPORT
  8. #define E_FLAGS MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1000)
  9. #define IS_E_EXEC_FAILED MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x2002)
  10. #define URL_E_INVALID_SYNTAX MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1001)
  11. #define URL_E_UNREGISTERED_PROTOCOL MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1002)
  12. typedef enum iurl_seturl_flags {
  13.  IURL_SETURL_FL_GUESS_PROTOCOL=1,
  14.  IURL_SETURL_FL_USE_DEFAULT_PROTOCOL,
  15.  ALL_IURL_SETURL_FLAGS=(IURL_SETURL_FL_GUESS_PROTOCOL|IURL_SETURL_FL_USE_DEFAULT_PROTOCOL)
  16. } IURL_SETURL_FLAGS;
  17. typedef enum iurl_invokecommand_flags {
  18.  IURL_INVOKECOMMAND_FL_ALLOW_UI=1,
  19.  IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB,
  20.  ALL_IURL_INVOKECOMMAND_FLAGS=(IURL_INVOKECOMMAND_FL_ALLOW_UI|IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB)
  21. } IURL_INVOKECOMMAND_FLAGS;
  22. typedef enum translateurl_in_flags {
  23.  TRANSLATEURL_FL_GUESS_PROTOCOL=1,
  24.  TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL,
  25.  ALL_TRANSLATEURL_FLAGS=(TRANSLATEURL_FL_GUESS_PROTOCOL|TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL)
  26. } TRANSLATEURL_IN_FLAGS;
  27. typedef enum urlassociationdialog_in_flags {
  28.  URLASSOCDLG_FL_USE_DEFAULT_NAME=1,
  29.  URLASSOCDLG_FL_REGISTER_ASSOC,
  30.  ALL_URLASSOCDLG_FLAGS=(URLASSOCDLG_FL_USE_DEFAULT_NAME|URLASSOCDLG_FL_REGISTER_ASSOC)
  31. } URLASSOCIATIONDIALOG_IN_FLAGS;
  32. typedef enum mimeassociationdialog_in_flags {
  33.  MIMEASSOCDLG_FL_REGISTER_ASSOC=1,
  34.  ALL_MIMEASSOCDLG_FLAGS=MIMEASSOCDLG_FL_REGISTER_ASSOC
  35. } MIMEASSOCIATIONDIALOG_IN_FLAGS;
  36. typedef struct urlinvokecommandinfo {
  37.  DWORD dwcbSize;
  38.  DWORD dwFlags;
  39.  HWND hwndParent;
  40.  PCSTR pcszVerb;
  41. } URLINVOKECOMMANDINFO,*PURLINVOKECOMMANDINFO;
  42. typedef const URLINVOKECOMMANDINFO CURLINVOKECOMMANDINFO;
  43. typedef const URLINVOKECOMMANDINFO *PCURLINVOKECOMMANDINFO;
  44. #undef INTERFACE
  45. #define INTERFACE IUniformResourceLocator
  46. DECLARE_INTERFACE_(IUniformResourceLocator,IUnknown)
  47. {
  48.  STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
  49.  STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  50.  STDMETHOD_(ULONG,Release)(THIS) PURE;
  51.  STDMETHOD(SetURL)(THIS_ PCSTR,DWORD) PURE;
  52.  STDMETHOD(GetURL)(THIS_ PSTR*) PURE;
  53.  STDMETHOD(InvokeCommand)(THIS_ PURLINVOKECOMMANDINFO) PURE;
  54. };
  55. typedef IUniformResourceLocator *PIUniformResourceLocator;
  56. typedef const IUniformResourceLocator CIUniformResourceLocator;
  57. typedef const IUniformResourceLocator *PCIUniformResourceLocator;
  58.  
  59. BOOL WINAPI InetIsOffline(DWORD);
  60. HRESULT WINAPI MIMEAssociationDialogA(HWND,DWORD,PCSTR,PCSTR,PSTR,UINT);
  61. HRESULT WINAPI MIMEAssociationDialogW(HWND,DWORD,PCWSTR,PCWSTR,PWSTR,UINT);
  62. HRESULT WINAPI TranslateURLA(PCSTR,DWORD,PSTR*);
  63. HRESULT WINAPI TranslateURLW(PCWSTR,DWORD,PWSTR*);
  64. HRESULT WINAPI URLAssociationDialogA(HWND,DWORD,PCSTR,PCSTR,PSTR,UINT);
  65. HRESULT WINAPI URLAssociationDialogW(HWND,DWORD,PCWSTR,PCWSTR,PWSTR,UINT);
  66. #ifdef UNICODE
  67. #define TranslateURL TranslateURLW
  68. #define MIMEAssociationDialog MIMEAssociationDialogW
  69. #define URLAssociationDialog URLAssociationDialogW
  70. #else
  71. #define TranslateURL TranslateURLA
  72. #define MIMEAssociationDialog MIMEAssociationDialogA
  73. #define URLAssociationDialog URLAssociationDialogA
  74. #endif 
  75. #ifdef __cplusplus
  76. #endif 
  77. #endif 
  78.