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.

50 lines
1014 B

  1. //
  2. // counter/accumulators
  3. //
  4. typedef struct {
  5. volatile ULONG CountStart;
  6. volatile ULONG CountEnd;
  7. volatile ULONGLONG Counters[MAX_EVENTS];
  8. volatile ULONGLONG TSC;
  9. volatile ULONG ThunkCounters[MAX_THUNK_COUNTERS];
  10. } ACCUMULATORS, *PACCUMULATORS;
  11. //
  12. // Per hook record
  13. //
  14. typedef struct ThunkHookInfo {
  15. LIST_ENTRY HookList;
  16. ULONG HookAddress;
  17. ULONG OriginalDispatch;
  18. ULONG TracerId;
  19. UCHAR HookCode[80];
  20. } HOOKEDTHUNK, *PHOOKEDTHUNK;
  21. //
  22. // Define the device extension
  23. //
  24. typedef struct _DEVICE_EXTENSION {
  25. ULONG na;
  26. } DEVICE_EXTENSION, *PDEVICE_EXTENSION;
  27. //
  28. // Define for counted events
  29. //
  30. typedef struct _COUNTED_EVENTS {
  31. ULONG Encoding;
  32. PUCHAR Token;
  33. ULONG SuggestedIntervalBase;
  34. PUCHAR Description;
  35. PUCHAR OfficialToken;
  36. PUCHAR OfficialDescription;
  37. } COUNTED_EVENTS, *PCOUNTED_EVENTS;