CAtlServiceModuleT::ParseCommandLine

分析命令行,并根据需要进行注册。

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

参数

  • lpCmdLine
    命令行。

  • pnRetCode
    与注册对应的HRESULT (如果发生的)。

返回值

如果在命令行上提供的RGS文件无法注册,则返回true。在成功或错误。

备注

如果需要,分析命令行和注册或注销所提供的RGS文件。 此方法调用 CAtlExeModuleT::ParseCommandLine 检查 /RegServer/UnregServer。 添加参数 -/Service 请将注册服务。

要求

Header: atlbase.h

请参见

参考

CAtlServiceModuleT选件类

CAtlExeModuleT::ParseCommandLine