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.

57 lines
957 B

  1. #include "inetcorepch.h"
  2. #pragma hdrstop
  3. #include <advpub.h>
  4. static
  5. HRESULT
  6. WINAPI
  7. RunSetupCommand(
  8. HWND hWnd,
  9. LPCSTR szCmdName,
  10. LPCSTR szInfSection,
  11. LPCSTR szDir,
  12. LPCSTR lpszTitle,
  13. HANDLE *phEXE,
  14. DWORD dwFlags,
  15. LPVOID pvReserved
  16. )
  17. {
  18. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  19. }
  20. static
  21. HRESULT
  22. WINAPI
  23. RegInstall(
  24. HMODULE hm,
  25. LPCSTR pszSection,
  26. LPCSTRTABLE pstTable)
  27. {
  28. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  29. }
  30. static
  31. BOOL
  32. WINAPI
  33. IsNTAdmin(
  34. DWORD dwReserved,
  35. DWORD *lpdwReserved
  36. )
  37. {
  38. // default to being more secure
  39. return FALSE;
  40. }
  41. //
  42. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  43. //
  44. DEFINE_PROCNAME_ENTRIES(advpack)
  45. {
  46. DLPENTRY(IsNTAdmin)
  47. DLPENTRY(RegInstall)
  48. DLPENTRY(RunSetupCommand)
  49. };
  50. DEFINE_PROCNAME_MAP(advpack)