共用方式為


IAgentCommands::GetCommand

[Microsoft代理程式從 Windows 7 開始已被取代,而且可能無法在後續版本的 Windows 中使用。]

HRESULT GetCommand(
   long dwCommandID,         // Command ID
   IUnknown ** ppunkCommand  // address of IUnknown interface
);                    

Commands 集合擷取 Command 物件。

  • 傳回S_OK,表示作業成功。

dwCommandID

Commands 集合中 Command 物件的識別碼。

IUnknown

Command 物件的 IUnknown 介面位址。

另請參閱

IAgentCommand