注意
從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止。
針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護和Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。
在 WIP 原則存在時,擷取使用所提供進程識別碼執行之進程的 WIP 內容。
語法
HRESULT
EdpGetContextForProcess(
_In_ DWORD processId,
_Outptr_ EDP_CONTEXT** context
);
參數
processId
擷取 WIP 內容的進程識別碼。
內容
接收代表內容的 [EDP_CONTEXT] 物件的指標。
傳回值
HRESULT 值。
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | Windows 10 |
| 最低支援的伺服器 | Windows 10 |
| 標頭 | 無 |
| DLL | edputil.dll |