ICOMAdminCatalog::ExportApplication method (comadmin.h)
Exports a COM+ application or application proxy to a file, ready for installation on different computers.
Syntax
HRESULT ExportApplication(
[in] BSTR bstrApplIDOrName,
[in] BSTR bstrApplicationFile,
[in] long lOptions
);
Parameters
[in] bstrApplIDOrName
The GUID or application name of the application to be exported.
[in] bstrApplicationFile
The name of the file to export the application to, including the file path. If this parameter is NULL or an empty string, the ExportApplication method returns E_INVALIDARG. If the path is not specified, the current directory is used. If a relative path is entered, the path is relative to the current directory.
[in] lOptions
Specifies the application export options. This parameter can be one of more of the following values from the COMAdminApplicationExportOptions enumeration type.
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 |
---|---|
|
The method completed successfully. |
|
The application does not exist. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | comadmin.h |