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.

133 lines
3.4 KiB

  1. /*++
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. ReadSchema.h
  5. Abstract:
  6. Header for the helper functions that are used to read
  7. schema information from the config stuctures into the metabase.
  8. Author:
  9. Varsha Jayasimha (varshaj) 30-Nov-1999
  10. Revision History:
  11. --*/
  12. extern HRESULT
  13. ReadMetaObject(IN CMDBaseObject*& cboRead,
  14. IN LPWSTR wszPath,
  15. IN FILETIME* pFileTime,
  16. IN BOOL bUnicode);
  17. extern HRESULT
  18. ReadDataObject(IN CMDBaseObject* cboAssociated,
  19. IN LPVOID* a_pv,
  20. IN ULONG* a_Size,
  21. IN IIS_CRYPTO_STORAGE* pCryptoStorage,
  22. IN BOOL bUnicode);
  23. extern HRESULT
  24. ReadSchema(IIS_CRYPTO_STORAGE* i_pStorage,
  25. FILETIME* pFileTime);
  26. extern HRESULT
  27. ReadSchemaProperties(CMDBaseObject* i_pboRead,
  28. IIS_CRYPTO_STORAGE* i_pStorage);
  29. extern HRESULT
  30. ReadAdminACL(CMDBaseObject* i_pboRead,
  31. IIS_CRYPTO_STORAGE* i_pStorage);
  32. extern DWORD
  33. GetPrincipalSID (LPWSTR Principal,
  34. PSID* Sid,
  35. BOOL* pbWellKnownSID);
  36. extern HRESULT
  37. ReadLargestMetaID(CMDBaseObject* i_pboRead,
  38. IIS_CRYPTO_STORAGE* i_pStorage);
  39. extern HRESULT
  40. ReadProperties(IIS_CRYPTO_STORAGE* i_pStorage,
  41. FILETIME* i_pFileTime);
  42. extern HRESULT
  43. ReadPropertyNames(CMDBaseObject* i_pboRead,
  44. LPVOID* i_apv,
  45. ULONG* i_aSize,
  46. IIS_CRYPTO_STORAGE* i_pStorage);
  47. extern HRESULT
  48. ReadFlagNames(CMDBaseObject* i_pboRead,
  49. LPVOID* i_apv,
  50. ULONG* i_aSize,
  51. IIS_CRYPTO_STORAGE* i_pStorage);
  52. extern HRESULT
  53. ReadPropertyTypes(CMDBaseObject* i_pboRead,
  54. LPVOID* i_apv,
  55. ULONG* i_aSize,
  56. IIS_CRYPTO_STORAGE* i_pStorage);
  57. extern HRESULT
  58. ReadAllFlags(IIS_CRYPTO_STORAGE* i_pStorage,
  59. CMDBaseObject* i_pboReadType,
  60. CMDBaseObject* i_pboReadName,
  61. CMDBaseObject* i_pboReadDefault,
  62. DWORD i_dwColumnIndex,
  63. DWORD i_dwMetaID,
  64. DWORD i_dwFlags,
  65. DWORD i_dwAttributes,
  66. DWORD i_dwUserType,
  67. DWORD i_dwMultivalued);
  68. extern HRESULT
  69. ReadFlagTypes(CMDBaseObject* i_pboRead,
  70. IIS_CRYPTO_STORAGE* i_pStorage,
  71. DWORD i_dwMetaID,
  72. DWORD i_dwFlags,
  73. DWORD i_dwAttributes,
  74. DWORD i_dwUserType,
  75. DWORD i_dwMultivalued,
  76. LPVOID* i_apv,
  77. ULONG* i_aSize);
  78. extern HRESULT
  79. ReadFlagDefaults(CMDBaseObject* i_pboRead,
  80. LPVOID* i_apv,
  81. ULONG* i_aSize,
  82. IIS_CRYPTO_STORAGE* i_pStorage);
  83. extern HRESULT
  84. ReadPropertyDefaults(CMDBaseObject* i_pboRead,
  85. LPVOID* i_apv,
  86. ULONG* i_aSize,
  87. IIS_CRYPTO_STORAGE* i_pStorage);
  88. extern HRESULT
  89. ReadClasses(IIS_CRYPTO_STORAGE* i_pStorage,
  90. FILETIME* i_pFileTime);
  91. extern HRESULT
  92. ReadClass(LPVOID* i_apv,
  93. ULONG* i_aSize,
  94. IIS_CRYPTO_STORAGE* i_pStorage,
  95. FILETIME* i_pFileTime);
  96. extern HRESULT
  97. GetProperties(LPCWSTR i_wszTable,
  98. LPWSTR* o_pwszOptional,
  99. LPWSTR* o_pManditory);
  100. extern HRESULT
  101. AddFlagValuesToPropertyList(LPWSTR i_wszTable,
  102. ULONG i_dwIndex,
  103. ULONG* io_pcCh,
  104. LPWSTR* io_pwszPropertyList);