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


CAtlServiceModuleT::Start

Called by CAtlServiceModuleT::WinMain when the service starts.

HRESULT Start(
   int nShowCmd 
) throw( );

Параметры

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

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

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

Заметки

The CAtlServiceModuleT::WinMain method handles both registration and installation, as well as tasks involved in removing registry entries and uninstalling the module. When the service is run, WinMain calls Start.

Требования

Header: atlbase.h

См. также

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

CAtlServiceModuleT Class

CAtlServiceModuleT Members