TestOpen 函式

傳回使用 TestCreate建立的現有測試控制碼。

語法

HANDLE TestOpen(
    unsigned int testCaseId,               
    unsigned int options,   
    unsigned char storage,
    GUID* testId,            
    _Out_ TestInfo* result);

參數

testCaseId

測試識別碼。

選項

測試擷取選項。 此參數可以設定為下列值。

描述
0 預設選項。
1 使用鎖定優化擷取,例如後續呼叫 TestQueryData
2 已被取代,這與預設選項相同。
131072 指出傳回 的 TestInfo 結構中將包含其他 「properties」 欄位。

儲存

測試儲存體選項。 此參數可以設定為下列值。

描述
1 資料將會儲存在處理中。
2 資料將會儲存在進程外。

testId

測試實例的識別碼。

result [out]

TestInfo結構,其中包含測試的相關資訊。

傳回值

測試控制碼。

備註

此函式沒有相關聯的匯入程式庫或標頭檔;必須使用 LoadLibraryGetProcAddress 函式來叫用它。

規格需求

需求
最低支援的用戶端 Windows 組建 22000
最低支援的伺服器 Windows Server 2022
標頭
DLL kernelbase.dll