Поделиться через


CAtlServiceModuleT::Run

Runs the service.

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

Параметры

  • 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.

Возвращаемое значение

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

Заметки

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

Требования

Header: atlbase.h

См. также

Основные понятия

CAtlServiceModuleT Class

CAtlServiceModuleT Members