Share via


IMSAdminBase3::GetChildPaths

The GetChildPaths method gets the paths of all the subkeys of the specified key.

HRESULT GetChildPaths(
      METADATA_HANDLE hMDHandle,
      LPCWSTR pszMDPath,
      DWORD cchMDBufferSize,
      WCHAR* pszBuffer,
      DWORD* pcchMDRequiredBufferSize
);

Parameters

  • hMDHandle
    [in] a handle to the metabase.

  • pszMDPath
    [in] Points to a string that contains the path of the key to be opened, relative to hMDHandle. For example, if the handle references the /LM key, you could specify the Web services subkey using the path /W3SVC.

  • cchMDBufferSize
    [in] Specifies the size, in wchars, of the buffer.

  • pszBuffer
    [in] [out] Points to a buffer that receives the data. If the method call is successful, the buffer will contain a double-null terminated multsz of all paths in the subtree that contain the specified identifier. The returned paths are relative to the handle specified. If the identifier exists on the key designated by the handle and path specified, this path will be the first entry in the list.

  • pcchMDRequiredBufferSize
    [in] [out] Points to a DWORD that contains the buffer length required, in wchars. This parameter is used only if the method returns HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER).

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

Header: Declared in iadmw.h; include iiscnfg.h.