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.

48 lines
802 B

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. Thread.h
  5. Abstract:
  6. This module defines private types and macros for use in implementing
  7. a portable thread ID interface.
  8. Author:
  9. John Rogers (JohnRo) 14-Jan-1992
  10. Environment:
  11. User Mode - Win32
  12. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  13. Requires ANSI C extensions: slash-slash comments, long external names.
  14. Revision History:
  15. 14-Jan-1992 JohnRo
  16. Moved thread ID stuff into its own header file (for repl and
  17. netlock use).
  18. --*/
  19. #ifndef _THREAD_
  20. #define _THREAD_
  21. typedef DWORD_PTR NET_THREAD_ID;
  22. #define FORMAT_NET_THREAD_ID "0x%p"
  23. NET_THREAD_ID
  24. NetpCurrentThread(
  25. VOID
  26. );
  27. #endif // ndef _THREAD_