home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip532.zip / windll / structs.h < prev    next >
C/C++ Source or Header  |  1997-11-02  |  1KB  |  72 lines

  1. #ifndef _STRUCTS_H
  2. #define _STRUCTS_H
  3.  
  4. #ifndef Far
  5. #  define Far far
  6. #endif
  7.  
  8. /* Porting definitions between Win 3.1x and Win32 */
  9. #ifdef WIN32
  10. #  define far
  11. #  define _far
  12. #  define __far
  13. #  define near
  14. #  define _near
  15. #  define __near
  16. #  ifndef FAR
  17. #    define FAR
  18. #  endif
  19. #endif
  20.  
  21. #ifndef PATH_MAX
  22. #  define PATH_MAX 128            /* max total file or directory name path */
  23. #endif
  24.  
  25. #ifndef DEFINED_ONCE
  26. #define DEFINED_ONCE
  27. #ifndef ush
  28. typedef unsigned short  ush;
  29. #endif
  30. typedef int (WINAPI DLLPRNT) (LPSTR, unsigned long);
  31. typedef int (WINAPI DLLPASSWORD) (LPSTR, int, const LPSTR, const LPSTR);
  32. #endif
  33. typedef void (WINAPI DLLSND) (void);
  34. typedef int (WINAPI DLLREPLACE)(LPSTR);
  35. typedef void (WINAPI DLLMESSAGE)(unsigned long,unsigned long,
  36.    ush, ush, ush, ush, ush, ush, char, LPSTR, LPSTR, unsigned long, char);
  37.  
  38. typedef struct {
  39. DLLPRNT *print;
  40. DLLSND *sound;
  41. DLLREPLACE *replace;
  42. DLLPASSWORD *password;
  43. DLLMESSAGE *SendApplicationMessage;
  44. WORD cchComment;
  45. unsigned long TotalSizeComp;
  46. unsigned long TotalSize;
  47. int CompFactor;
  48. unsigned int NumMembers;
  49. } USERFUNCTIONS, far * LPUSERFUNCTIONS;
  50.  
  51. typedef struct {
  52. int ExtractOnlyNewer;
  53. int SpaceToUnderscore;
  54. int PromptToOverwrite;
  55. int fQuiet;
  56. int ncflag;
  57. int ntflag;
  58. int nvflag;
  59. int nUflag;
  60. int nzflag;
  61. int ndflag;
  62. int noflag;
  63. int naflag;
  64. int nZIflag;
  65. int C_flag;
  66. int fPrivilege;
  67. LPSTR lpszZipFN;
  68. LPSTR lpszExtractDir;
  69. } DCL, _far *LPDCL;
  70.  
  71. #endif /* _STRUCTS_H */
  72.