共用方式為


CAtlServiceModuleT::ParseCommandLine

剖析命令列,並視需要進行註冊。

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

參數

  • lpCmdLine
    命令列。

  • pnRetCode
    與登入對應的 HRESULT (如果其發生)。

傳回值

如果在命令列中提供的 RGS 檔無法註冊,才能順利傳回 true 或 false。

備註

如果需要,剖析命令列和註冊或移除註冊所提供的 RGS 檔。 呼叫這個方法 CAtlExeModuleT::ParseCommandLine 檢查 /RegServer/UnregServer。 將引數 -/Service 會註冊服務。

需求

Header: atlbase.h

請參閱

參考

CAtlServiceModuleT 類別

CAtlExeModuleT::ParseCommandLine