ICOMAdminCatalog2::IsSafeToDelete method (comadmin.h)

Determines whether the specified DLL is in use by the COM+ catalog or the registry.

Syntax

HRESULT IsSafeToDelete(
  [in]          BSTR          bstrDllName,
  [out, retval] COMAdminInUse *pCOMAdminInUse
);

Parameters

[in] bstrDllName

The full path to the DLL to be tested.

[out, retval] pCOMAdminInUse

Indicates the DLL usage. This parameter can be one of the following values.

Value Meaning
COMAdminNotInUse
0
The DLL is not in use and may safely be deleted.
COMAdminInUseByCatalog
0x1
The DLL is in use by the COM+ catalog.
COMAdminInUseByRegistryUnknown
0x2
The DLL is in use by an unknown registry component.
COMAdminInUseByRegistryProxyStub
0x3
The DLL is in use by the proxy registry component.
COMAdminInUseByRegistryTypeLib
0x4
The DLL is in use by the TypeLib registry component.
COMAdminInUseByRegistryClsid
0x5
The DLL is in use by the CLSID registry component.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Requirements

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

See also

ICOMAdminCatalog2