ICOMAdminCatalog2::GetPartitionName method (comadmin.h)

Retrieves the name of the specified COM+ application.

Syntax

HRESULT GetPartitionName(
  [in]          BSTR bstrApplicationIDOrName,
  [out, retval] BSTR *pbstrPartitionName
);

Parameters

[in] bstrApplicationIDOrName

The application ID or name of a COM+ application.

[out, retval] pbstrPartitionName

The partition name associated with the specified application.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.

Return code Description
S_OK
The method completed successfully.
COMADMIN_E_AMBIGUOUS_APPLICATION_NAME
The named application exists in multiple partitions. To avoid this error, use an application ID instead of a name.

Requirements

   
Minimum supported client None supported
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header comadmin.h

See also

ICOMAdminCatalog2