IProcessInitializer::Startup method (comsvcs.h)

Called when Dllhost.exe starts.

Syntax

HRESULT Startup(
  [in] IUnknown *punkProcessControl
);

Parameters

[in] punkProcessControl

A pointer to the IUnknown interface of the COM component starting up.

Windows XP/2000:  This parameter is always NULL.

Return value

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

Remarks

The IUnknown interface referenced by punkProcessControl must belong to a COM component that implements an IProcessInitControl interface; this interface supports the single method ResetInitializerTimeout. The initialization code in Startup can call the ResetInitializerTimeout method, with dwSecondsRemaining set equal to the number of seconds remaining before the startup of the component times out.

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 comsvcs.h

See also

IProcessInitializer