#pragma once //------------------------------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are covered by the // Common Public License 1.0 (http://opensource.org/licenses/cpl.php) // which can be found in the file CPL.TXT at the root of this distribution. // By using this software in any fashion, you are agreeing to be bound by // the terms of this license. // // You must not remove this notice, or any other, from this software. // // // // IIS Metabase helper functions. // //------------------------------------------------------------------------------------------------- #include #include #include #include #ifdef __cplusplus extern "C" { #endif // structs // prototypes HRESULT DAPI MetaFindWebBase( __in IMSAdminBaseW* piMetabase, __in LPCWSTR wzIP, __in int iPort, __in LPCWSTR wzHeader, __in BOOL fSecure, __out_ecount(cchWebBase) LPWSTR wzWebBase, __in DWORD cchWebBase ); HRESULT DAPI MetaFindFreeWebBase( __in IMSAdminBaseW* piMetabase, __out_ecount(cchWebBase) LPWSTR wzWebBase, __in DWORD cchWebBase ); HRESULT DAPI MetaOpenKey( __in IMSAdminBaseW* piMetabase, __in METADATA_HANDLE mhKey, __in LPCWSTR wzKey, __in DWORD dwAccess, __in DWORD cRetries, __out METADATA_HANDLE* pmh ); HRESULT DAPI MetaGetValue( __in IMSAdminBaseW* piMetabase, __in METADATA_HANDLE mhKey, __in LPCWSTR wzKey, __inout METADATA_RECORD* pmr ); void DAPI MetaFreeValue( __in METADATA_RECORD* pmr ); #ifdef __cplusplus } #endif