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.

87 lines
2.1 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // @doc
  4. //
  5. // @module consent.h | Functions for retrieving information from the
  6. // kids passport consent database.
  7. //
  8. // Author: Darren Anderson
  9. //
  10. // Date: 5/1/2000
  11. //
  12. // Copyright <cp> 1999-2000 Microsoft Corporation. All Rights Reserved.
  13. //
  14. // History:
  15. // 6/27/2000 t-ycphen Split DoParentConsent() to mimic
  16. // the ASP procedure
  17. //-----------------------------------------------------------------------------
  18. #pragma once
  19. #include "ppurl.h"
  20. typedef enum
  21. {
  22. NEED_PARENT = 1,
  23. NEED_CONSENT = 2
  24. }
  25. CONSENT_TYPE, *PCONSENT_TYPE;
  26. void MakeKPPVC(
  27. ULONG ulKidIdHigh,
  28. ULONG ulKidIdLow,
  29. ULONG ulParentIdHigh,
  30. ULONG ulParentIdLow,
  31. ULONG ulSiteId,
  32. LPCWSTR szMemberName,
  33. CStringW& strwKPPVC
  34. );
  35. HRESULT CrackKPPVC(
  36. LPCWSTR szKPPVC,
  37. ULONG ulSiteId,
  38. ULONG &ulKidIdHigh,
  39. ULONG &ulKidIdLow,
  40. ULONG &ulParentIdHigh,
  41. ULONG &ulParentIdLow,
  42. ULONG &ulChildAccountStatus,
  43. CStringW &szMemberName
  44. );
  45. HRESULT MakeConsentUrl(
  46. ULONG ulSiteId,
  47. ULONG ulMemberIdHigh,
  48. ULONG ulMemberIdLow,
  49. LPCWSTR szMemberName,
  50. CONSENT_TYPE type,
  51. CPPUrl &ppReturnUrl
  52. );
  53. HRESULT DoParentConsent(
  54. ULONG ulSiteId,
  55. ULONG ulMemberIdHigh,
  56. ULONG ulMemberIdLow,
  57. LPCWSTR szMemberName,
  58. CONSENT_TYPE type,
  59. bool fDoRedirect = true
  60. );
  61. HRESULT DBGetConsentForSite(
  62. ULONG ulMemberIdHigh,
  63. ULONG ulMemberIdLow,
  64. ULONG ulSiteId,
  65. PULONG pulConsent
  66. );
  67. HRESULT ValidateParentWithKppvc(
  68. ULONG ulMemberIdHigh,
  69. ULONG ulMemberIdLow,
  70. LPCWSTR szMemberName,
  71. LPCWSTR szKPPVC,
  72. ULONG ulSiteId
  73. );