共用方式為


ICustomActionResultCallback::ReportResult 方法

傳回 IPmCustomActions::RunCustomAction 方法所要求的Run-Time狀態和控制作業結果。

語法

virtual HRESULT ReportResult(  
   IN HRESULT hrStatus,  
   IN PBYTE pbResponse,  
   IN DWORD cbResponse  
) = 0;  

參數

hrStatus
HRESULT,其中包含Run-Time狀態和控制作業的狀態。

pbResponse
緩衝區的 BYTE 指標,接收Run-Time狀態和控制作業的結果。

cbResponse
緩衝區的 DWORD 指標,接收 所 pbResponse 指向的資料大小。

傳回值

HRESULT。 可能的值包括 (但不限於) 下表中的這些值。

描述
S_OK 表示作業成功。

規格需求

類型 描述
Client - Windows Vista 上的 IIS 7.0
- Windows 7 上的 IIS 7.5
- Windows 8 上的 IIS 8.0
- Windows 10上的 IIS 10.0
伺服器 - Windows Server 2008 上的 IIS 7.0
- Windows Server 2008 R2 上的 IIS 7.5
- Windows Server 2012 上的 IIS 8.0
- Windows Server 2012 R2 上的 IIS 8.5
- Windows Server 2016上的 IIS 10.0
產品 - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0
- IIS Express 7.5、IIS Express 8.0、IIS Express 10.0
標頭 Wpframework.h

另請參閱

ICustomActionResultCallback 介面
IPmCustomActions::RunCustomAction 方法