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.

140 lines
2.4 KiB

  1. #include "shellpch.h"
  2. #pragma hdrstop
  3. #include <fci.h>
  4. #include <fdi.h>
  5. static
  6. HFCI
  7. DIAMONDAPI
  8. FCICreate(
  9. PERF perf,
  10. PFNFCIFILEPLACED pfnfcifp,
  11. PFNFCIALLOC pfna,
  12. PFNFCIFREE pfnf,
  13. PFNFCIOPEN pfnopen,
  14. PFNFCIREAD pfnread,
  15. PFNFCIWRITE pfnwrite,
  16. PFNFCICLOSE pfnclose,
  17. PFNFCISEEK pfnseek,
  18. PFNFCIDELETE pfndelete,
  19. PFNFCIGETTEMPFILE pfnfcigtf,
  20. PCCAB pccab,
  21. void FAR * pv
  22. )
  23. {
  24. return NULL;
  25. }
  26. static
  27. BOOL
  28. DIAMONDAPI
  29. FCIAddFile(
  30. HFCI hfci,
  31. char *pszSourceFile,
  32. char *pszFileName,
  33. BOOL fExecute,
  34. PFNFCIGETNEXTCABINET pfnfcignc,
  35. PFNFCISTATUS pfnfcis,
  36. PFNFCIGETOPENINFO pfnfcigoi,
  37. TCOMP typeCompress
  38. )
  39. {
  40. return FALSE;
  41. }
  42. static
  43. BOOL
  44. DIAMONDAPI
  45. FCIFlushCabinet(
  46. HFCI hfci,
  47. BOOL fGetNextCab,
  48. PFNFCIGETNEXTCABINET pfnfcignc,
  49. PFNFCISTATUS pfnfcis
  50. )
  51. {
  52. return FALSE;
  53. }
  54. static
  55. BOOL
  56. DIAMONDAPI
  57. FCIDestroy (HFCI hfci)
  58. {
  59. return FALSE;
  60. }
  61. static
  62. BOOL
  63. FAR DIAMONDAPI
  64. FDICopy (
  65. HFDI hfdi,
  66. char FAR *pszCabinet,
  67. char FAR *pszCabPath,
  68. int flags,
  69. PFNFDINOTIFY pfnfdin,
  70. PFNFDIDECRYPT pfnfdid,
  71. void FAR *pvUser
  72. )
  73. {
  74. return FALSE;
  75. }
  76. static
  77. HFDI
  78. FAR DIAMONDAPI
  79. FDICreate (
  80. PFNALLOC pfnalloc,
  81. PFNFREE pfnfree,
  82. PFNOPEN pfnopen,
  83. PFNREAD pfnread,
  84. PFNWRITE pfnwrite,
  85. PFNCLOSE pfnclose,
  86. PFNSEEK pfnseek,
  87. int cpuType,
  88. PERF perf
  89. )
  90. {
  91. return NULL;
  92. }
  93. static
  94. BOOL
  95. FAR DIAMONDAPI
  96. FDIDestroy (
  97. HFDI hfdi
  98. )
  99. {
  100. return FALSE;
  101. }
  102. static
  103. BOOL
  104. FAR DIAMONDAPI
  105. FDIIsCabinet (
  106. HFDI hfdi,
  107. INT_PTR hf,
  108. PFDICABINETINFO pfdici
  109. )
  110. {
  111. return FALSE;
  112. }
  113. //
  114. // !! WARNING !! The entries below must be in order by ORDINAL
  115. //
  116. DEFINE_ORDINAL_ENTRIES(cabinet)
  117. {
  118. DLOENTRY(10, FCICreate)
  119. DLOENTRY(11, FCIAddFile)
  120. DLOENTRY(13, FCIFlushCabinet)
  121. DLOENTRY(14, FCIDestroy)
  122. DLOENTRY(20, FDICreate)
  123. DLOENTRY(21, FDIIsCabinet)
  124. DLOENTRY(22, FDICopy)
  125. DLOENTRY(23, FDIDestroy)
  126. };
  127. DEFINE_ORDINAL_MAP(cabinet)