IPixFactory::OpenDxDumpFileDocument 方法

開啟 DirectX 傾印檔案。

語法

HRESULT OpenDxDumpFileDocument(
    LPCWSTR filename,
    IPixLogging * logger,
    IPixProgressNotifications * openDumpNotifications,
    IPixCancellationToken * cancellationToken,
    REFIID riid,
    void ** document);

參數

filename [在]

要開啟的檔案名稱。

logger [在]

記錄與傾印檔案相關的所有記錄回呼 (選用) 。

openDumpNotifications [在]

開啟傾印檔案時的進度更新通知回呼 (選用) 。

cancellationToken [在]

取消權杖,以取消開啟傾印 (選用) 。

riid [在]

要傳回文件的介面 IID。 預期: IPixDxDumpFileDocument。

document [出]

傳回介面的指標。

傳回

S_OK文件是否已順利開啟,否則為錯誤碼。

另請參閱