Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.5 KiB

  1. /***************************************************************************
  2. Name : AWNSFINT.H
  3. Comment : INTERNAL-ONLY Definitions of BC and NSF related structs
  4. Copyright (c) 1993 Microsoft Corp.
  5. Revision Log
  6. Date Name Description
  7. -------- ----- ---------------------------------------------------------
  8. 08/28/93 arulm Modifying aftering adding encryption
  9. ***************************************************************************/
  10. #ifndef _AWNSFINT_H
  11. #define _AWNSFINT_H
  12. #include <awnsfcor.h>
  13. #include <fr.h>
  14. /***********************************************************************
  15. * *
  16. * NOTICE: This file has to be ANSI compilable, under GCC on UNIX *
  17. * and other ANSI compiles. Be sure to use no MS C specific features *
  18. * In particular, don't use // for comments!!!! *
  19. * *
  20. ***********************************************************************/
  21. #pragma pack(2) /* ensure portable packing (i.e. 2 or more) */
  22. typedef struct
  23. {
  24. ///////// This structure is not transmitted /////////
  25. WORD fPublicPoll;
  26. //2bytes
  27. DWORD AwRes; /* One or more of the AWRES_ #defines */
  28. WORD Encoding; /* One or more of MH_DATA/MR_DATA/MMR_DATA */
  29. WORD PageWidth; /* One of the WIDTH_ #defines (these are not bitflags!) */
  30. WORD PageLength; /* One of the LENGTH_ #defines (these are not bitflags!) */
  31. //12 bytes
  32. }
  33. BCFAX, far* LPBCFAX, near* NPBCFAX;
  34. typedef struct
  35. {
  36. BCTYPE bctype; // must always be set. One of the enum values above
  37. WORD wBCSize; // size of this (fixed size) BC struct, must be set
  38. WORD wTotalSize; // total size of header + associated var len strings
  39. BCFAX Fax; // for internal use _only_
  40. }
  41. BC, far* LPBC, near* NPBC;
  42. #define InitBC(lpbc, uSize, t) \
  43. { \
  44. _fmemset((lpbc), 0, (uSize)); \
  45. (lpbc)->bctype = (t); \
  46. (lpbc)->wBCSize = sizeof(BC); \
  47. (lpbc)->wTotalSize = sizeof(BC); \
  48. }
  49. #pragma pack()
  50. #endif /** _AWNSFINT_H **/