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


CAtlServiceModuleT::ParseCommandLine

Parses the command line and performs registration if necessary.

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

Параметры

  • lpCmdLine
    The command line.

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

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

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

Заметки

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.

Требования

Header: atlbase.h

См. также

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

CAtlServiceModuleT Class

CAtlServiceModuleT Members

CAtlExeModuleT::ParseCommandLine