Source code of Windows XP (NT5)
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.

41 lines
1.2 KiB

  1. // DomainFunctions.h
  2. #ifndef __DomainFunctionsH__
  3. #define __DomainFunctionsH__
  4. enum DA_DOMAINID
  5. {
  6. DADOMAINID_NONE = 0,
  7. DADOMAINID_HOTMAIL = 1,
  8. DADOMAINID_MSN = 2,
  9. DADOMAINID_PASSPORT = 3
  10. };
  11. //todo -- deprecate this. use the one that takes wchar*
  12. bool DoesDomainExist(const char *szCheckDomain);
  13. // Check the domain if it is supported by the local database
  14. bool DoesDomainExist(LPCWSTR pwszCheckDomain, int *pDAID=NULL);
  15. HRESULT GetLocalDomainId(ULONG& ulDomainId);
  16. void GetLocalDomainName(CComBSTR & pbstrDomainName);
  17. HRESULT GetLocalDomainName(BSTR* pbstrDomainName);
  18. // Get the name of a given domain Id
  19. void GetDomainName(ULONG ulDomainId, CComBSTR &bstrDomain);
  20. // A thin wrapper of the previous function
  21. HRESULT GetDomainName(ULONG ulDomainId, BSTR* pbstrDA);
  22. // Get the DA domain Id
  23. void PassportDADomainId(ULONG &ulPPDADomainId);
  24. // Get the DA domain name
  25. void PassportDADomain(CComBSTR &bstrPPDADomain, bool bRaw = true);
  26. // Check the domain in partner.xml
  27. bool DoesDomainExist_PartnerXML(const BSTR &bstrDomain);
  28. // Allow name change? (bOldName indicates this is old name or new name)
  29. bool DomainAllowNameChange(CStringW& szSignInName, bool bOldName);
  30. bool IsDomainManaged(const CStringW& szwDomainName);
  31. #endif