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.

159 lines
6.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: scripts.hxx
  7. //
  8. // History: 15-May-96 SusiA Created
  9. //
  10. //----------------------------------------------------------------------------
  11. #define NUMTESTS 7
  12. StorageLayout arrWord0[] =
  13. {
  14. // no repeat loop
  15. { STGTY_STREAM, L"WordDocument", {(LONGLONG) 0}, 2048 },
  16. { STGTY_STREAM, L"WordDocument", {(LONGLONG)12800}, 2048},
  17. { STGTY_STREAM, L"WordDocument", {(LONGLONG)14848}, 346},
  18. { STGTY_STREAM, L"WordDocument", {(LONGLONG)12288}, 2048},
  19. { STGTY_STREAM, L"WordDocument", {(LONGLONG)10752}, 2048},
  20. { STGTY_STREAM, L"WordDocument", {(LONGLONG)10240}, 2048},
  21. { STGTY_STREAM, L"WordDocument", {(LONGLONG)7680}, 2048},
  22. { STGTY_STREAM, L"WordDocument", {(LONGLONG)9728}, 512},
  23. { STGTY_STREAM, L"ObjectPool\\_823896884\\\x03PIC", {(LONGLONG) 0}, 76},
  24. { STGTY_STORAGE, L"ObjectPool\\_823896884\\.PRINT", {(LONGLONG) 0}, {(LONGLONG) 0}},
  25. { STGTY_STREAM, L"ObjectPool\\_823896884\\\x03META", {(LONGLONG) 0}, 101896},
  26. { STGTY_STREAM, L"WordDocument", {(LONGLONG)2048}, 7*512},
  27. { STGTY_STREAM, L"WordDocument", {(LONGLONG)7168}, 3*512},
  28. { STGTY_STREAM, L"ObjectPool\\_823617166\\\x03PIC", {(LONGLONG) 0}, 76},
  29. { STGTY_STORAGE, L"ObjectPool\\_823617166\\.PRINT", {(LONGLONG) 0}, {(LONGLONG) 0}},
  30. { STGTY_STREAM, L"ObjectPool\\_823620610\\\x03PIC", {(LONGLONG) 0}, 76},
  31. { STGTY_STORAGE, L"ObjectPool\\_823620610\\.PRINT", {(LONGLONG) 0}, {(LONGLONG) 0}},
  32. { STGTY_STREAM, L"WordDocument", {(LONGLONG)5632}, 2048}
  33. };
  34. StorageLayout arrWord1[] =
  35. {
  36. // type name offset bytes
  37. // one repeat loop
  38. { STGTY_STREAM, L"WordDocument", {(LONGLONG)0}, 2048},
  39. { STGTY_STREAM, L"WordDocument", {(LONGLONG)12800}, 2048},
  40. { STGTY_STREAM, L"WordDocument", {(LONGLONG)14848}, 346},
  41. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 4},
  42. { STGTY_STREAM, L"WordDocument", {(LONGLONG)12288}, 512},
  43. { STGTY_STREAM, L"WordDocument", {(LONGLONG)10752}, 512},
  44. { STGTY_STREAM, L"WordDocument", {(LONGLONG)10240}, 512},
  45. { STGTY_STREAM, L"WordDocument", {(LONGLONG)7680}, 512},
  46. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 0},
  47. { STGTY_STREAM, L"WordDocument", {(LONGLONG)9728}, 512}
  48. };
  49. StorageLayout arrWord2[] =
  50. {
  51. // type name offset bytes
  52. // nested repeat loop
  53. { STGTY_STREAM, L"WordDocument", {(LONGLONG)0}, 2048},
  54. { STGTY_STREAM, L"WordDocument", {(LONGLONG)12800}, 2048},
  55. { STGTY_STREAM, L"WordDocument", {(LONGLONG)14848}, 346},
  56. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 4},
  57. { STGTY_STREAM, L"WordDocument", {(LONGLONG)12288}, 512},
  58. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 2},
  59. { STGTY_STREAM, L"WordDocument", {(LONGLONG)10752}, 256},
  60. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 0},
  61. { STGTY_STREAM, L"WordDocument", {(LONGLONG)10240}, 512},
  62. { STGTY_STREAM, L"WordDocument", {(LONGLONG)7680}, 512},
  63. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 0},
  64. { STGTY_STREAM, L"WordDocument", {(LONGLONG)9728}, 512}
  65. };
  66. StorageLayout arrWord3[] =
  67. {
  68. // type name offset bytes
  69. // two repeat loops
  70. { STGTY_STREAM, L"WordDocument", {(LONGLONG)0}, 2048},
  71. { STGTY_STREAM, L"WordDocument", {(LONGLONG)12800}, 2048},
  72. { STGTY_STREAM, L"WordDocument", {(LONGLONG)14848}, 346},
  73. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 4},
  74. { STGTY_STREAM, L"WordDocument", {(LONGLONG)12288}, 512},
  75. { STGTY_STREAM, L"WordDocument", {(LONGLONG)10752}, 512},
  76. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 0},
  77. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 4},
  78. { STGTY_STREAM, L"WordDocument", {(LONGLONG)10240}, 512},
  79. { STGTY_STREAM, L"WordDocument", {(LONGLONG)7680}, 512},
  80. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 0},
  81. { STGTY_STREAM, L"WordDocument", {(LONGLONG)9728}, 512}
  82. };
  83. StorageLayout arrWord4[] =
  84. {
  85. // 1 limited repeat loop with streams 3/4 streams running out
  86. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 4},
  87. { STGTY_STREAM, L"\x05SummaryInformation", {(LONGLONG) 0}, 100 }, //496
  88. { STGTY_STREAM, L"\x01"L"CompObj", {(LONGLONG) 0}, 50}, // 106
  89. { STGTY_STREAM, L"ObjectPool\\_823896884\\\x03PIC", {(LONGLONG) 0}, 76}, //76
  90. { STGTY_STREAM, L"ObjectPool\\_823896884\\\x03META", {(LONGLONG) 0}, 101896}, //101896
  91. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 0},
  92. { STGTY_STREAM, L"WordDocument", {(LONGLONG)9728}, 512} //15177
  93. };
  94. StorageLayout arrWord5[] =
  95. {
  96. // 1 limited repeat loop with streams all streams running out
  97. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 4},
  98. { STGTY_STREAM, L"\x01"L"CompObj", {(LONGLONG) 0}, 50}, // 106
  99. { STGTY_STREAM, L"\x05SummaryInformation", {(LONGLONG) 0}, 200 }, //496
  100. { STGTY_STREAM, L"ObjectPool\\_823896884\\\x03PIC", {(LONGLONG) 0}, 76}, //76
  101. { STGTY_STREAM, L"ObjectPool\\_823896884\\\x03META", {(LONGLONG) 0}, 101896}, //101896
  102. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 0},
  103. { STGTY_STREAM, L"WordDocument", {(LONGLONG)9728}, 512} //15177
  104. };
  105. StorageLayout arrWord6[] =
  106. {
  107. // 1 unlimited repeat loop
  108. { STGTY_REPEAT, NULL, {(LONGLONG)0}, {STG_TOEND, 0} },
  109. { STGTY_STREAM, L"\x01"L"CompObj", {(LONGLONG) 0}, 50}, // 106
  110. { STGTY_STREAM, L"\x05SummaryInformation", {(LONGLONG) 0}, 100 }, //496
  111. { STGTY_STREAM, L"ObjectPool\\_823896884\\\x03PIC", {(LONGLONG) 0}, 76}, //76
  112. { STGTY_STREAM, L"ObjectPool\\_823896884\\\x03META", {(LONGLONG) 0}, 101896}, //101896
  113. { STGTY_REPEAT, NULL, {(LONGLONG)0}, 0},
  114. { STGTY_STREAM, L"WordDocument", {(LONGLONG)9728}, 512} //15177
  115. };
  116. typedef struct tagStorageLayoutArray
  117. {
  118. StorageLayout *LayoutArray;
  119. int nEntries;
  120. } STORAGELAYOUTARRAY;
  121. STORAGELAYOUTARRAY arrWord[] =
  122. {
  123. { arrWord0, sizeof(arrWord0)/sizeof(arrWord0[0]) },
  124. { arrWord1, sizeof(arrWord1)/sizeof(arrWord1[0]) },
  125. { arrWord2, sizeof(arrWord2)/sizeof(arrWord2[0]) },
  126. { arrWord3, sizeof(arrWord3)/sizeof(arrWord3[0]) },
  127. { arrWord4, sizeof(arrWord4)/sizeof(arrWord4[0]) },
  128. { arrWord5, sizeof(arrWord5)/sizeof(arrWord5[0]) },
  129. { arrWord6, sizeof(arrWord6)/sizeof(arrWord6[0]) }
  130. };