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.

46 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: etask.hxx
  7. //
  8. // Contents: extern definitions from etask.hxx
  9. //
  10. // History: 08-Mar-94 BobDay Taken from OLE2INT.H & OLECOLL.H
  11. //
  12. //----------------------------------------------------------------------------
  13. #define GetCurrentThread() GetCurrentTask()
  14. #define GetCurrentProcess() GetCurrentTask()
  15. #define GetWindowThread(h) GetWindowTask(h)
  16. /*
  17. * MACROS for Mac/PC core code
  18. *
  19. * The following macros reduce the proliferation of #ifdefs. They
  20. * allow tagging a fragment of code as Mac only, PC only, or with
  21. * variants which differ on the PC and the Mac.
  22. *
  23. * Usage:
  24. *
  25. *
  26. * h = GetHandle();
  27. * Mac(DisposeHandle(h));
  28. *
  29. *
  30. * h = GetHandle();
  31. * MacWin(h2 = h, CopyHandle(h, h2));
  32. *
  33. */
  34. extern CMapHandleEtask NEAR v_mapToEtask;
  35. STDAPI_(BOOL) LookupEtask(HTASK FAR& hTask, Etask FAR& etask);
  36. STDAPI_(BOOL) SetEtask(HTASK hTask, Etask FAR& etask);
  37. void ReleaseEtask(HTASK htask, Etask FAR& etask);
  38. #define ETASK_FAKE_INIT 0
  39. #define ETASK_NO_INIT 0xffffffff
  40. #define IsEtaskInit(htask, etask) LookupEtask( htask, etask )