home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 May / cica_0595_4.zip / cica_0595_4 / UTIL / XSPAWN10 / XEXECD.H < prev    next >
C/C++ Source or Header  |  1994-07-24  |  4KB  |  90 lines

  1. /******************************************************************************
  2. *                                   XExecD                                    *
  3. *                                                                             *
  4. * Interface unit to XEXEC.DLL.                                                *
  5. *                                                                             *
  6. * Written by Golan Yaniv (C) 1994                                             *
  7. *                                                                             *
  8. * This file is part of the XSpawn package.                                    *
  9. *                                                                             *
  10. ******************************************************************************/
  11. #if !defined (XEXECD_H)
  12. #define XEXECD_H
  13.  
  14. #include <windows.h>
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif /* _cplusplus */
  19.  
  20.     // options in WXSpawn's wOptions field. this values are also 
  21.     // returned by WXGetFileOS : 
  22. #define    WXO_OSTYPEMASK  0x000F    // bits mask dedicated to os type 
  23. #define    WXO_AUTO        0x0000    // auto-detect os type from file 
  24. #define    WXO_WIN         0x0001    // force type = windows 
  25. #define    WXO_DOS         0x0002    // force type = dos 
  26. #define    WXO_OS2         0x0003    // force type = os2 
  27. #define    WXO_NT          0x0004    // force type = nt 
  28. #define    WXO_USESHELL    0x0010    // use shell to execute 
  29.  
  30.     // error codes (in low word) 
  31.     // errors marked with (*) return additional info in high word 
  32. #define    WX_APPEXEC      0x0001    // application exec error (*) 
  33. #define    WX_AGENTEXEC    0x0002    // agent exec error (*) 
  34. #define    WX_OUTOFMEM     0x0003    // not enough memory 
  35. #define    WX_AGENTCOMM    0x0004    // unable to establish agent communication 
  36. #define    WX_PIFFILE      0x0005    // unable to create PIF file (*)
  37. #define    WX_NOAGENT      0x0006    // agent not installed (*)
  38. #define    WX_UNKNOWNOS    0x0007    // unknown os type 
  39. #define    WX_BADVER       0x00F1    // version mismatch (*) 
  40. #define    WX_AGENTKILLED  0x00F2    // agent was killed while waiting 
  41. #define    WX_INVALIDHEXEC 0x00F3    // invalid hExec handle 
  42.  
  43.     // for WX_APPEXEC, high word contains WinExec error or : 
  44. #define    WX_NOTFOUND     0x0101     // path or file not found 
  45. #define    WX_NOMEM        0x0102     // not enough memory 
  46. #define    WX_ARGLIST      0x0103     // args list too long 
  47. #define    WX_BADFORMAT    0x0104     // bad exec format 
  48. #define    WX_UNKNOWN      0x010F     // unknown error 
  49.  
  50.     // returned by WXGetHostOS() : }
  51. #define    WX_OS_WIN3X     0x0001     // Windows 3.X 
  52. #define    WX_OS_WINNT     0x0002     // Windows NT 
  53. #define    WX_OS_WINOS2    0x0003     // Win-OS/2 
  54. #define    WX_OS_UNKNOWN   0xFFFF     // Unknown Host OS 
  55.  
  56.  
  57. DWORD WINAPI    WXSpawn(LPCSTR lpszFileName,
  58.                         LPCSTR lpszArgs,
  59.                         LPCSTR lpszDirectory,
  60.                         WORD   nCmdShow,
  61.                         WORD   wOptions,
  62.                         DWORD *hExec);
  63.  
  64. BOOL  WINAPI    WXIsDone(DWORD hExec,
  65.                          DWORD *lpdwErrorCode,
  66.                          DWORD *lpdwExitCode);
  67.  
  68. VOID  WINAPI    WXStopTracking(DWORD hExec);
  69.  
  70. VOID  WINAPI    WXSetDebugMode(BOOL bDebugFlag);
  71.  
  72. WORD  WINAPI    WXGetVersion();
  73.  
  74. HINSTANCE WINAPI WXGetInstance(DWORD hExec);
  75.  
  76. WORD  WINAPI    WXGetFileOS(LPCSTR lpszFileName);
  77.  
  78. VOID  WINAPI    WXGetError(DWORD dwErrorCode,
  79.                            WORD *wError,
  80.                            WORD *eReason);
  81.  
  82. DWORD WINAPI    WXGetHostOS();
  83.  
  84. #ifdef __cplusplus
  85. }
  86. #endif   /* _cplusplus */
  87.  
  88. #endif   /* XEXECD_H */
  89.  
  90.