Partager via


CAtlServiceModuleT::Run

Runs the service.

HRESULT Run( 
   int nShowCmd = SW_HIDE  
) throw( );

Parameters

  • nShowCmd
    Specifies how the window is to be shown. This parameter can be one of the values discussed in the WinMain section. The default value is SW_HIDE.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

After being called, Run calls CAtlServiceModuleT::PreMessageLoop, CAtlExeModuleT::RunMessageLoop, and CAtlExeModuleT::PostMessageLoop.

Requirements

Header: atlbase.h

See Also

Reference

CAtlServiceModuleT Class