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

  1. #ifndef _STRUCTS_H
  2. #define _STRUCTS_H
  3.  
  4. #ifndef Far
  5. #  define Far far
  6. #endif
  7.  
  8. /* Porting definations 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 __unzip_h
  28.    typedef unsigned short ush;
  29. #endif
  30. typedef int (WINAPI DLLPRNT) (char * far, unsigned long);
  31. typedef int (WINAPI DLLPASSWORD) (char *, int, const char *, const char *);
  32. #endif
  33. typedef void (WINAPI DLLSND) (void);
  34. typedef int (WINAPI DLLREPLACE)(char *);
  35. typedef void (WINAPI DLLMESSAGE)(unsigned long,unsigned long,
  36.    ush, ush, ush, ush, ush, ush, char, char *, char *, 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 Overwrite;
  54. int SpaceToUnderscore;
  55. int PromptToOverwrite;
  56. int ZipInfoVerbose;
  57. int fQuiet;
  58. int ncflag;
  59. int ntflag;
  60. int nvflag;
  61. int nUflag;
  62. int nzflag;
  63. int ndflag;
  64. int noflag;
  65. int naflag;
  66. int nZIflag;
  67. int fPrivilege;
  68. LPSTR lpszZipFN;
  69. } DCL, _far *LPDCL;
  70.  
  71. typedef struct {
  72. HINSTANCE hInstance;
  73. char print[80];
  74. char sound[80];
  75. char replace[80];
  76. char password[80];
  77. char SendApplicationMessage[80];
  78. WORD cchComment;
  79. unsigned long TotalSizeComp;
  80. unsigned long TotalSize;
  81. int CompFactor;
  82. unsigned int NumMembers;
  83. } VBUSERFUNCTIONS, far * LPVBUSERFUNCTIONS;
  84.  
  85. #endif /* _STRUCTS_H */
  86.