home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / INCLUDE / SHELLAPI.H_ / SHELLAPI.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  2.8 KB  |  89 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * shellapi.h -  SHELL.DLL functions, types, and definitions                   *
  4. *                                                                             *
  5. *               Copyright (c) 1992, Microsoft Corp.  All rights reserved      *
  6. *                                                                             *
  7. \*****************************************************************************/
  8.  
  9. #ifndef _INC_SHELLAPI
  10. #define _INC_SHELLAPI
  11.  
  12. #ifndef RC_INVOKED
  13. #pragma pack(1)         /* Assume byte packing throughout */
  14. #endif /* RC_INVOKED */
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {            /* Assume C declarations for C++ */
  18. #endif    /* __cplusplus */
  19.  
  20. /* If included with Windows 3.0 windows.h: define 3.1-compatible types */
  21.  
  22. #ifndef _INC_WINDOWS
  23.  
  24. #define HDROP   HANDLE
  25. #define WINAPI  FAR PASCAL
  26. #define LPCSTR  LPSTR
  27. #define UINT    WORD
  28.  
  29. #else
  30.  
  31. DECLARE_HANDLE(HDROP);
  32.  
  33. #endif
  34.  
  35. /* return codes from Registration functions */
  36. #define ERROR_SUCCESS           0L
  37. #define ERROR_BADDB             1L
  38. #define ERROR_BADKEY            2L
  39. #define ERROR_CANTOPEN          3L
  40. #define ERROR_CANTREAD          4L
  41. #define ERROR_CANTWRITE         5L
  42. #define ERROR_OUTOFMEMORY       6L
  43. #define ERROR_INVALID_PARAMETER 7L
  44. #define ERROR_ACCESS_DENIED     8L
  45.  
  46. #define REG_SZ            1        /* string type */
  47.  
  48. #define HKEY_CLASSES_ROOT    1
  49.  
  50. typedef DWORD HKEY;
  51. typedef HKEY FAR* PHKEY;
  52.  
  53. LONG WINAPI RegOpenKey(HKEY, LPCSTR, HKEY FAR*);
  54. LONG WINAPI RegCreateKey(HKEY, LPCSTR, HKEY FAR*);
  55. LONG WINAPI RegCloseKey(HKEY);
  56. LONG WINAPI RegDeleteKey(HKEY, LPCSTR);
  57. LONG WINAPI RegSetValue(HKEY, LPCSTR, DWORD, LPCSTR, DWORD);
  58. LONG WINAPI RegQueryValue(HKEY, LPCSTR, LPSTR, LONG FAR*);
  59. LONG WINAPI RegEnumKey(HKEY, DWORD, LPSTR, DWORD);
  60.  
  61. UINT WINAPI DragQueryFile(HDROP, UINT, LPSTR, UINT);
  62. BOOL WINAPI DragQueryPoint(HDROP, POINT FAR*);
  63. void WINAPI DragFinish(HDROP);
  64. void WINAPI DragAcceptFiles(HWND, BOOL);
  65.  
  66. HICON WINAPI ExtractIcon(HINSTANCE hInst, LPCSTR lpszExeFileName, UINT nIconIndex);
  67.  
  68. /* error values for ShellExecute() beyond the regular WinExec() codes */
  69. #define SE_ERR_SHARE            26
  70. #define SE_ERR_ASSOCINCOMPLETE  27
  71. #define SE_ERR_DDETIMEOUT       28
  72. #define SE_ERR_DDEFAIL          29
  73. #define SE_ERR_DDEBUSY          30
  74. #define SE_ERR_NOASSOC          31
  75.  
  76. HINSTANCE WINAPI ShellExecute(HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, int iShowCmd);
  77. HINSTANCE WINAPI FindExecutable(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResult);
  78.                  
  79.  
  80. #ifdef __cplusplus
  81. }
  82. #endif    /* __cplusplus */
  83.  
  84. #ifndef RC_INVOKED
  85. #pragma pack()
  86. #endif  /* RC_INVOKED */
  87.  
  88. #endif  /* _INC_SHELLAPI */
  89.