home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip532.zip / win32 / rsxntwin.h < prev    next >
C/C++ Source or Header  |  1997-10-12  |  1KB  |  55 lines

  1. /* rsxntwin.h
  2.  *
  3.  * fills some gaps in the rsxnt 1.3 win32 header files (<windows.h>) that are
  4.  * required for compiling Info-ZIP sources for Win NT / Win 95
  5.  */
  6.  
  7. #ifdef __RSXNT__
  8. #if !defined (_RSXNTWIN_H)
  9. #define _RSXNTWIN_H
  10.  
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14.  
  15. #define PASCAL __stdcall
  16.  
  17. #ifndef TIME_ZONE_ID_UNKNOWN
  18. #  define TIME_ZONE_ID_UNKNOWN  0
  19. #endif
  20.  
  21. #define FILE_ATTRIBUTE_HIDDEN   0x00000002
  22. #define FILE_ATTRIBUTE_SYSTEM   0x00000004
  23.  
  24. #define FILE_SHARE_DELETE       0x00000004
  25.  
  26. #define HFILE_ERROR        -1
  27.  
  28. #define _get_osfhandle(h) h
  29.  
  30.  
  31. BOOL WINAPI DosDateTimeToFileTime(WORD, WORD, LPFILETIME);
  32.  
  33.  
  34. #define SetVolumeLabel TFUNCT(SetVolumeLabel)
  35. BOOL WINAPI SetVolumeLabel(LPCTSTR, LPCTSTR);
  36.  
  37.  
  38. #define GetDriveType TFUNCT(GetDriveType)
  39. DWORD GetDriveType(LPCTSTR);
  40.  
  41. #define DRIVE_REMOVABLE   2
  42.  
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46.  
  47. #if (defined(ZIP) || defined(UNZIP_INTERNAL))
  48. #  ifndef NO_NTSD_WITH_RSXNT
  49. #    define NO_NTSD_WITH_RSXNT  /* RSXNT windows.h does not yet support NTSD */
  50. #  endif
  51. #endif
  52.  
  53. #endif /* !defined (_RSXNTWIN_H) */
  54. #endif /* __RSXNT__ */
  55.