Export (0) Print
Expand All

CoInstall function

[This function is not supported and may be altered or unavailable in the future.]

Installs the requested COM server application.

Syntax


HRESULT CoInstall(
  _In_  IBindCtx *pbc,
  _In_  DWORD dwFlags,
  _In_  uCLSSPEC *pClassSpec,
  _In_  QUERYCONTEXT *pQuery,
  _In_  LPWSTR pszCodeName
);

Parameters

pbc [in]

Reserved for future use; this value must be NULL.

dwFlags [in]

Reserved for future use; this value must be 0.

pClassSpec [in]

A pointer to a uCLSSPEC union. The tyspec member must be set to TYSPEC_CLSID and the clsid member must be set to the CLSID to be installed. For more information, see TYSPEC.

pQuery [in]

A pointer to a QUERYCONTEXT structure. The dwContext field must be set to the desired CLSCTX value. For more information, see QUERYCONTEXT.

pszCodeName [in]

Reserved for future use; this value must be NULL.

Return value

This function supports the standard return value E_INVALIDARG, as well as the following.

TermDescription

S_OK

Indicates success.

CS_E_PACKAGE_NOTFOUND

The tyspec field of pClassSpec was not set to TYSPEC_CLSID.

 

Requirements

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

QUERYCONTEXT
TYSPEC

 

 

Community Additions

ADD
Show:
© 2014 Microsoft