home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 6.ddi / WINCLUDE.ZIP / SHELLAPI.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  2.9 KB  |  87 lines

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