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.

43 lines
1.5 KiB

  1. //--------------------------------------------------------------------
  2. // SetupUtil - header
  3. // Copyright (C) Microsoft Corporation, 1999
  4. //
  5. // Created by: Louis Thomas (louisth), 8-10-99
  6. //
  7. // Functions needed to set up CEP
  8. //
  9. #ifndef SETUP_UTIL_H
  10. #define SETUP_UTIL_H
  11. //--------------------------------------------------------------------
  12. // prototypes
  13. // Note: caller must call CoInitialize() first
  14. BOOL IsNT5(void);
  15. BOOL IsIISInstalled(void);
  16. BOOL IsGoodCaInstalled(void);
  17. BOOL IsCaRunning(void);
  18. BOOL IsServiceRunning(IN const WCHAR * wszServiceName);
  19. BOOL IsUserInAdminGroup(IN BOOL bEnterprise);
  20. HRESULT AddVDir(IN BOOL fDC,
  21. IN const WCHAR * wszDirectory,
  22. IN const WCHAR * wszApplicationPool,
  23. IN BOOL fLocalSystem,
  24. IN const WCHAR * wszUserName,
  25. IN const WCHAR * wszPassword);
  26. HRESULT CepStopService(IN DWORD dwServicePeriod, IN const WCHAR * wszServiceName, OUT BOOL * pbWasRunning);
  27. HRESULT CepStartService(IN const WCHAR * wszServiceName);
  28. HRESULT EnrollForRACertificates(
  29. IN const WCHAR * wszDistinguishedName,
  30. IN const WCHAR * wszSignCSPName,
  31. IN DWORD dwSignCSPType,
  32. IN DWORD dwSignKeySize,
  33. IN const WCHAR * wszEncryptCSPName,
  34. IN DWORD dwEncryptCSPType,
  35. IN DWORD dwEncryptKeySize,
  36. IN SID *psidAccount);
  37. HRESULT DoCertSrvRegChanges(IN BOOL bDisablePendingFirst);
  38. HRESULT GetCaType(OUT ENUM_CATYPES * pCAType);
  39. HRESULT DoCertSrvEnterpriseChanges(SID *psidAccount);
  40. #endif //SETUP_UTIL_H