Compartir a través de


CAtlServiceModuleT::WinMain

This method implements the code required to start the service.

int WinMain( 
   int nShowCmd  
) throw( );

Parameters

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

Return Value

Returns the service's return value.

Remarks

This method processes the command line (with CAtlServiceModuleT::ParseCommandLine) and then starts the service (using CAtlServiceModuleT::Start).

Requirements

Header: atlbase.h

See Also

Reference

CAtlServiceModuleT Class