CleanupTestThread (Windows Embedded CE 6.0)
1/6/2010
This function is called once before each test thread exits. The function is not required to complete an action; it is provided for test cleanup purposes only.
Syntax
UINT CleanupTestThread(
HANDLE hThread,
DWORD dwThreadId,
int index
);
Parameters
- hThread
[in] Pseudohandle to the current thread. A pseudohandle is a special constant that is interpreted as the handle to the current thread. The calling thread can use this handle to specify itself whenever a thread handle is required.
- dwThreadId
[in] Identifier for the thread.
- index
[in] Zero-based index of the calling thread. You can use this value to index an array that contains per-thread data.
Return Value
This function must return one of the following values:
- CESTRESS_PASS
- CESTRESS_FAIL
- CESTRESS_WARN1
- CESTRESS_WARN2
- CESTRESS_ABORT
Use the CESTRESS_ABORT return value carefully because the harness terminates a test that returns this value immediately. If you return a value other than CESTRESS_PASS, the value counts toward the total test results as a final iteration of your test thread. For more information about these return values, see CESTRESS Return Value.
Requirements
Header | Developer Implemented |
Library | Developer Implemented |
Windows Embedded CE | Windows CE .NET 4.2 and later |