Source code of Windows XP (NT5)
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.

52 lines
1.3 KiB

  1. /************************************************************/
  2. /* Windows Write, Copyright 1985-1992 Microsoft Corporation */
  3. /************************************************************/
  4. #define ipcdNil -1 /* Error return from IpcdSplit */
  5. #define cpcdChunk 5
  6. #define cpcdInit 5
  7. #define cpcdMaxIncr 10
  8. #define dcpAvgWord 10
  9. #define dcpAvgSent 100
  10. #include "prmdefs.h"
  11. struct PCD
  12. {
  13. typeCP cpMin;
  14. unsigned fNoParaLast : 1;
  15. unsigned fn : 15;
  16. typeFC fc;
  17. struct PRM prm;
  18. };
  19. #define cwPCD (sizeof (struct PCD) / sizeof (int))
  20. #define cbPCD (sizeof (struct PCD))
  21. #define bcpPCD 0
  22. struct PCTB
  23. {
  24. unsigned ipcdMax;
  25. unsigned ipcdMac;
  26. struct PCD rgpcd[cpcdInit];
  27. };
  28. #define cwPCTBInit (sizeof (struct PCTB) / sizeof (int))
  29. #define cbPCTBInit (sizeof (struct PCTB))
  30. struct UAB
  31. { /* UNDO Action Block */
  32. int uac; /* UNDO Action Code (see cmddefs.h) */
  33. int doc;
  34. typeCP cp;
  35. typeCP dcp;
  36. int doc2;
  37. typeCP cp2;
  38. typeCP dcp2;
  39. short itxb;
  40. };
  41. struct PCD *PpcdFromCp();
  42.