blob: ac174f06fa1451303e64f74d715eb006d5c4c35d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1993.
//
// File: task.h
//
// Contents: declarations for task-related functions and data structures
//
// Classes:
//
// Functions:
//
// History: dd-mmm-yy Author Comment
// 12-Jan-95 t-ScottH added RunTestOnThread
// 06-Feb-94 alexgo author
//
//--------------------------------------------------------------------------
#ifndef _TASK_H
#define _TASK_H
typedef struct TaskItem
{
LPSTR szName;
void (*fnCall)(void *);
void *pvArg;
} TaskItem;
// global list of all available tests
extern const TaskItem vrgTaskList[];
// global zero'ed task list
extern TaskItem vzTaskItem;
// generic callback function for test apps that register a window handle
void GenericRegCallback(void *);
// run the given api (which must be HRESULT api ( void ))
void RunApi(void *);
// runs the given app
void RunApp(void *);
// runs the app and inserts a callback function so the app can register
// its window handle for communication
void RunAppWithCallback(void *);
// runs the given test by sending a message to the currently running test
// app.
void RunTest(void *);
// runs all the tests currently built into the driver program
void RunAllTests(void *);
// run the given test function as a new thread
void RunTestOnThread(void *pvArg);
// handles the test completion message
void HandleTestEnd(void);
// handles the tests completed message
void HandleTestsCompleted(void);
#endif //!_TASK_H
|