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.

193 lines
2.9 KiB

  1. #include "basepch.h"
  2. #pragma hdrstop
  3. #include <sfcapip.h>
  4. #include <winwlx.h>
  5. static
  6. BOOL
  7. WINAPI
  8. SfcIsFileProtected(
  9. IN HANDLE RpcHandle, // must be NULL
  10. IN LPCWSTR ProtFileName
  11. )
  12. {
  13. return FALSE;
  14. }
  15. static
  16. BOOL
  17. WINAPI
  18. SfcGetNextProtectedFile(
  19. IN HANDLE RpcHandle, // must be NULL
  20. IN PPROTECTED_FILE_DATA ProtFileData
  21. )
  22. {
  23. return FALSE;
  24. }
  25. static
  26. VOID
  27. SfcWLEventLogon(
  28. IN PWLX_NOTIFICATION_INFO pInfo
  29. )
  30. {
  31. NOTHING;
  32. }
  33. VOID
  34. SfcWLEventLogoff(
  35. IN PWLX_NOTIFICATION_INFO pInfo
  36. )
  37. {
  38. NOTHING;
  39. }
  40. static
  41. HANDLE
  42. WINAPI
  43. SfcConnectToServer(
  44. IN LPCWSTR ServerName
  45. )
  46. {
  47. return NULL;
  48. }
  49. static
  50. VOID
  51. SfcClose(
  52. IN HANDLE RpcHandle
  53. )
  54. {
  55. NOTHING;
  56. }
  57. static
  58. DWORD
  59. WINAPI
  60. SfcFileException(
  61. IN HANDLE RpcHandle,
  62. IN PCWSTR FileName,
  63. IN DWORD ExpectedChangeType
  64. )
  65. {
  66. return 0;
  67. }
  68. static
  69. DWORD
  70. WINAPI
  71. SfcInitiateScan(
  72. IN HANDLE RpcHandle,
  73. IN DWORD ScanWhen
  74. )
  75. {
  76. return 0;
  77. }
  78. static
  79. ULONG
  80. SfcInitProt(
  81. IN ULONG OverrideRegistry,
  82. IN ULONG ReqDisable,
  83. IN ULONG ReqScan,
  84. IN ULONG ReqQuota,
  85. IN HWND ProgressWindow, OPTIONAL
  86. IN PCWSTR SourcePath, OPTIONAL
  87. IN PCWSTR IgnoreFiles OPTIONAL
  88. )
  89. {
  90. return STATUS_UNSUCCESSFUL;
  91. }
  92. static
  93. VOID
  94. SfcTerminateWatcherThread(
  95. VOID
  96. )
  97. {
  98. return;
  99. }
  100. static
  101. BOOL
  102. WINAPI
  103. SfcInstallProtectedFiles(
  104. IN HANDLE RpcHandle,
  105. IN PCWSTR FileNames,
  106. IN BOOL AllowUI,
  107. IN PCWSTR ClassName,
  108. IN PCWSTR WindowName,
  109. IN PSFCNOTIFICATIONCALLBACK SfcNotificationCallback,
  110. IN DWORD_PTR Context
  111. )
  112. {
  113. return FALSE;
  114. }
  115. DWORD
  116. SfpInstallCatalog(
  117. IN LPCSTR pszCatName,
  118. IN LPCSTR pszCatDependency,
  119. IN PVOID Reserved
  120. )
  121. {
  122. return ERROR_CALL_NOT_IMPLEMENTED;
  123. }
  124. DWORD
  125. SfpDeleteCatalog(
  126. IN LPCSTR pszCatName,
  127. IN PVOID Reserved
  128. )
  129. {
  130. return ERROR_CALL_NOT_IMPLEMENTED;
  131. }
  132. BOOL
  133. SfpVerifyFile(
  134. IN LPCSTR pszFileName,
  135. IN LPSTR pszError,
  136. IN DWORD dwErrSize
  137. )
  138. {
  139. return FALSE;
  140. }
  141. //
  142. // !! WARNING !! The entries below must be in order by ORDINAL
  143. //
  144. DEFINE_ORDINAL_ENTRIES(sfc)
  145. {
  146. DLOENTRY(1, SfcInitProt)
  147. DLOENTRY(2, SfcTerminateWatcherThread)
  148. DLOENTRY(3, SfcConnectToServer)
  149. DLOENTRY(4, SfcClose)
  150. DLOENTRY(5, SfcFileException)
  151. DLOENTRY(6, SfcInitiateScan)
  152. DLOENTRY(7, SfcInstallProtectedFiles)
  153. DLOENTRY(8, SfpInstallCatalog)
  154. DLOENTRY(9, SfpDeleteCatalog)
  155. };
  156. DEFINE_ORDINAL_MAP(sfc)
  157. //
  158. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  159. //
  160. DEFINE_PROCNAME_ENTRIES(sfc)
  161. {
  162. DLPENTRY(SfcGetNextProtectedFile)
  163. DLPENTRY(SfcIsFileProtected)
  164. DLPENTRY(SfcWLEventLogoff)
  165. DLPENTRY(SfcWLEventLogon)
  166. DLPENTRY(SfpVerifyFile)
  167. };
  168. DEFINE_PROCNAME_MAP(sfc)