home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip540.zip / windll / structs.h < prev    next >
C/C++ Source or Header  |  1998-09-27  |  1KB  |  73 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 260            /* max total file or directory name path */
  23. #endif
  24.  
  25. #ifndef DEFINED_ONCE
  26. #define DEFINED_ONCE
  27.  
  28. typedef int (WINAPI DLLPRNT) (LPSTR, unsigned long);
  29. typedef int (WINAPI DLLPASSWORD) (LPSTR, int, LPCSTR, LPCSTR);
  30. typedef int (WINAPI DLLSERVICE) (LPCSTR, unsigned long);
  31. #endif
  32. typedef void (WINAPI DLLSND) (void);
  33. typedef int (WINAPI DLLREPLACE)(LPSTR);
  34. typedef void (WINAPI DLLMESSAGE)(unsigned long, unsigned long, unsigned,
  35.    unsigned, unsigned, unsigned, unsigned, unsigned,
  36.    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. DLLSERVICE *ServCallBk;
  45. unsigned long TotalSizeComp;
  46. unsigned long TotalSize;
  47. int CompFactor;
  48. unsigned int NumMembers;
  49. WORD cchComment;
  50. } USERFUNCTIONS, far * LPUSERFUNCTIONS;
  51.  
  52. typedef struct {
  53. int ExtractOnlyNewer;
  54. int SpaceToUnderscore;
  55. int PromptToOverwrite;
  56. int fQuiet;
  57. int ncflag;
  58. int ntflag;
  59. int nvflag;
  60. int nUflag;
  61. int nzflag;
  62. int ndflag;
  63. int noflag;
  64. int naflag;
  65. int nZIflag;
  66. int C_flag;
  67. int fPrivilege;
  68. LPSTR lpszZipFN;
  69. LPSTR lpszExtractDir;
  70. } DCL, far * LPDCL;
  71.  
  72. #endif /* __structs_h */
  73.