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.

54 lines
1.3 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. rtltheemptyactivationcontextdata.c
  5. Abstract:
  6. Side-by-side activation support for Windows/NT
  7. Implementation of the application context object.
  8. Author:
  9. Jay Krell (JayKrell) November 2001
  10. Revision History:
  11. --*/
  12. #pragma warning(disable:4214) // bit field types other than int
  13. #pragma warning(disable:4201) // nameless struct/union
  14. #pragma warning(disable:4115) // named type definition in parentheses
  15. #pragma warning(disable:4127) // condition expression is constant
  16. #include <ntos.h>
  17. #include <ntrtl.h>
  18. #include <nturtl.h>
  19. #include <sxstypes.h>
  20. #include <limits.h>
  21. #include "sxsp.h"
  22. extern const ACTIVATION_CONTEXT_DATA RtlpTheEmptyActivationContextData =
  23. {
  24. ACTIVATION_CONTEXT_DATA_MAGIC,
  25. sizeof(ACTIVATION_CONTEXT_DATA), // header size
  26. ACTIVATION_CONTEXT_DATA_FORMAT_WHISTLER,
  27. sizeof(ACTIVATION_CONTEXT_DATA), // total size
  28. 0, // default toc offset
  29. 0, // extended toc offset
  30. 0 // assembly roster index
  31. };
  32. extern const ACTIVATION_CONTEXT_WRAPPED RtlpTheEmptyActivationContextWrapped =
  33. {
  34. ACTCTX_MAGIC_MARKER,
  35. {
  36. LONG_MAX, // ref count, pinned
  37. ACTIVATION_CONTEXT_NOT_HEAP_ALLOCATED, // flags
  38. (PVOID)&RtlpTheEmptyActivationContextData
  39. // the rest zeros and NULLs
  40. }
  41. };