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.

28 lines
734 B

  1. //+--------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  5. //
  6. // File: cntxtid.hxx
  7. //
  8. // Contents: Context ID header file
  9. //
  10. // History: 04-Sep-92 DrewB Created
  11. //
  12. // Notes: A context ID encapsulates the concept of a
  13. // unique ID for the currently executing context.
  14. // Every OS should define an appropriate section.
  15. //
  16. //---------------------------------------------------------------
  17. #ifndef __CNTXTID_HXX__
  18. #define __CNTXTID_HXX__
  19. #define INVALID_CONTEXT_ID 0
  20. typedef unsigned long ContextId;
  21. inline ContextId GetCurrentContextId(void)
  22. {
  23. return GetCurrentProcessId();
  24. }
  25. #endif // #ifndef __CNTXTID_HXX__