Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.6 KiB

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