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.

155 lines
2.9 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #include <secedit.h>
  4. #include <scesetup.h>
  5. static
  6. DWORD
  7. WINAPI
  8. SceSetupMoveSecurityFile(
  9. IN PWSTR FileToSetSecurity,
  10. IN PWSTR FileToSaveInDB OPTIONAL,
  11. IN PWSTR SDText OPTIONAL
  12. )
  13. {
  14. return ERROR_PROC_NOT_FOUND;
  15. }
  16. static
  17. DWORD
  18. WINAPI
  19. SceSetupUnwindSecurityFile(
  20. IN PWSTR FileFullName,
  21. IN PSECURITY_DESCRIPTOR pSDBackup
  22. )
  23. {
  24. return ERROR_PROC_NOT_FOUND;
  25. }
  26. static
  27. DWORD
  28. WINAPI
  29. SceSetupUpdateSecurityFile(
  30. IN PWSTR FileFullName,
  31. IN UINT nFlag,
  32. IN PWSTR SDText
  33. )
  34. {
  35. return ERROR_PROC_NOT_FOUND;
  36. }
  37. static
  38. DWORD
  39. WINAPI
  40. SceSetupUpdateSecurityKey(
  41. IN HKEY hKeyRoot,
  42. IN PWSTR KeyPath,
  43. IN UINT nFlag,
  44. IN PWSTR SDText
  45. )
  46. {
  47. return ERROR_PROC_NOT_FOUND;
  48. }
  49. static
  50. DWORD
  51. WINAPI
  52. SceSetupUpdateSecurityService(
  53. IN PWSTR ServiceName,
  54. IN DWORD StartType,
  55. IN PWSTR SDText
  56. )
  57. {
  58. return ERROR_PROC_NOT_FOUND;
  59. }
  60. static
  61. SCESTATUS
  62. WINAPI
  63. SceSvcConvertSDToText(
  64. IN PSECURITY_DESCRIPTOR pSD,
  65. IN SECURITY_INFORMATION siSecurityInfo,
  66. OUT PWSTR *ppwszTextSD,
  67. OUT PULONG pulTextSize
  68. )
  69. {
  70. return SCESTATUS_MOD_NOT_FOUND;
  71. }
  72. static
  73. SCESTATUS
  74. WINAPI
  75. SceSvcConvertTextToSD (
  76. IN PWSTR pwszTextSD,
  77. OUT PSECURITY_DESCRIPTOR *ppSD,
  78. OUT PULONG pulSDSize,
  79. OUT PSECURITY_INFORMATION psiSeInfo
  80. )
  81. {
  82. return SCESTATUS_MOD_NOT_FOUND;
  83. }
  84. static
  85. SCESTATUS
  86. WINAPI
  87. SceGetSecurityProfileInfo (
  88. IN PVOID hProfile,
  89. IN SCETYPE ProfileType,
  90. IN AREA_INFORMATION Area,
  91. IN OUT PSCE_PROFILE_INFO *ppInfoBuffer,
  92. OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL
  93. )
  94. {
  95. return SCESTATUS_MOD_NOT_FOUND;
  96. }
  97. static
  98. SCESTATUS
  99. WINAPI
  100. SceFreeProfileMemory (
  101. PSCE_PROFILE_INFO pProfile
  102. )
  103. {
  104. return SCESTATUS_MOD_NOT_FOUND;
  105. }
  106. static
  107. SCESTATUS
  108. WINAPI
  109. SceCloseProfile (
  110. IN PVOID *hProfile
  111. )
  112. {
  113. return SCESTATUS_MOD_NOT_FOUND;
  114. }
  115. static
  116. SCESTATUS
  117. WINAPI
  118. SceOpenProfile (
  119. IN PCWSTR ProfileName,
  120. IN SCE_FORMAT_TYPE ProfileFormat,
  121. OUT PVOID *hProfile
  122. )
  123. {
  124. return SCESTATUS_MOD_NOT_FOUND;
  125. }
  126. //
  127. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  128. //
  129. DEFINE_PROCNAME_ENTRIES(scecli)
  130. {
  131. DLPENTRY(SceCloseProfile)
  132. DLPENTRY(SceFreeProfileMemory)
  133. DLPENTRY(SceGetSecurityProfileInfo)
  134. DLPENTRY(SceOpenProfile)
  135. DLPENTRY(SceSetupMoveSecurityFile)
  136. DLPENTRY(SceSetupUnwindSecurityFile)
  137. DLPENTRY(SceSetupUpdateSecurityFile)
  138. DLPENTRY(SceSetupUpdateSecurityKey)
  139. DLPENTRY(SceSetupUpdateSecurityService)
  140. DLPENTRY(SceSvcConvertSDToText)
  141. DLPENTRY(SceSvcConvertTextToSD)
  142. };
  143. DEFINE_PROCNAME_MAP(scecli)