Condividi tramite


CAtlServiceModuleT::ParseCommandLine

Parses the command line and performs registration if necessary.

bool ParseCommandLine( 
   LPCTSTR lpCmdLine, 
   HRESULT* pnRetCode  
) throw( );

Parameters

  • lpCmdLine
    The command line.

  • pnRetCode
    The HRESULT corresponding to the registration (if it took place).

Return Value

Returns true on success, or false if the RGS file supplied in the command line could not be registered.

Remarks

Parses the command line and registers or unregisters the supplied RGS file if necessary. This method calls CAtlExeModuleT::ParseCommandLine to check for /RegServer and /UnregServer. Adding the argument -/Service will register the service.

Requirements

Header: atlbase.h

See Also

Reference

CAtlServiceModuleT Class

CAtlExeModuleT::ParseCommandLine