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.

60 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. scope.h
  5. Abstract:
  6. Defines the structures used by the parser
  7. Author:
  8. Michael Tsang
  9. Stephane Plante
  10. Environment:
  11. Any
  12. Revision History:
  13. --*/
  14. #ifndef _SCOPE_H_
  15. #define _SCOPE_H_
  16. PUNASM_AMLTERM
  17. ScopeFindExtendedOpcode(
  18. IN PSTACK *Stack
  19. );
  20. #define ScopeFindLocalScope(Stack, LocalScope, RootScope, Status) \
  21. Status = StackTop( Stack, LocalScope ); \
  22. if (!NT_SUCCESS(Status)) { \
  23. \
  24. return Status; \
  25. \
  26. } \
  27. Status = StackRoot( Stack, RootScope ); \
  28. if (!NT_SUCCESS(Status)) { \
  29. \
  30. return Status; \
  31. \
  32. }
  33. NTSTATUS
  34. ScopeParser(
  35. IN PUCHAR Start,
  36. IN ULONG Length,
  37. IN ULONG BaseAddress,
  38. IN ULONG IndentLevel
  39. );
  40. NTSTATUS
  41. ScopePrint(
  42. IN PSTACK *Stack
  43. );
  44. #endif