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.

79 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: urls.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __CERTMMC_URLS_H__
  11. #define __CERTMMC_URLS_H__
  12. typedef struct _DISPLAYSTRING_EXPANSION
  13. {
  14. LPCWSTR szContractedToken;
  15. UINT uTokenID;
  16. UINT uTokenDescrID;
  17. CString* pcstrExpansionString;
  18. CString* pcstrExpansionStringDescr;
  19. } DISPLAYSTRING_EXPANSION, *PDISPLAYSTRING_EXPANSION;
  20. extern DISPLAYSTRING_EXPANSION g_displayStrings[11];
  21. #define DISPLAYSTRINGS_TOKEN_COUNT ARRAYSIZE(g_displayStrings)
  22. typedef enum
  23. {
  24. URL_TYPE_UNKNOWN = 0,
  25. URL_TYPE_HTTP,
  26. URL_TYPE_FILE,
  27. URL_TYPE_LDAP,
  28. URL_TYPE_FTP,
  29. URL_TYPE_LOCAL,
  30. URL_TYPE_UNC,
  31. } ENUM_URL_TYPE;
  32. typedef struct _CSURLTEMPLATENODE
  33. {
  34. CSURLTEMPLATE URLTemplate;
  35. DWORD EnableMask;
  36. struct _CSURLTEMPLATENODE *pNext;
  37. } CSURLTEMPLATENODE;
  38. typedef struct _ADDURL_DIALOGARGS
  39. {
  40. ENUM_URL_TYPE *rgAllowedURLs;
  41. DWORD cAllowedURLs;
  42. LPWSTR *ppszNewURL;
  43. CSURLTEMPLATENODE *pURLList;
  44. } ADDURL_DIALOGARGS, *PADDURL_DIALOGARGS;
  45. ENUM_URL_TYPE
  46. DetermineURLType(
  47. ENUM_URL_TYPE *pAllowedUrls,
  48. DWORD cAllowedUrls,
  49. WCHAR *pwszURL);
  50. HRESULT ValidateTokens(
  51. IN WCHAR const *pwszURL,
  52. OUT DWORD* pchBadBegin,
  53. OUT DWORD* pchBadEnd);
  54. DWORD
  55. DetermineURLEnableMask(
  56. IN ENUM_URL_TYPE UrlType);
  57. HRESULT
  58. ExpandDisplayString(
  59. IN LPCWSTR szContractedString,
  60. OUT LPWSTR* ppszDisplayString);
  61. HRESULT
  62. ContractDisplayString(
  63. IN LPCWSTR szDisplayString,
  64. OUT LPWSTR* ppContractedString);
  65. #endif //__CERTMMC_URLS_H__