Source code of Windows XP (NT5)
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.

67 lines
996 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. stack.c
  5. Abstract:
  6. This provides a generic stack handler to push/pop things onto it
  7. Author:
  8. Stephane Plante (splante)
  9. Environment:
  10. User, Kernel
  11. --*/
  12. #ifndef _STACK_H_
  13. #define _STACK_H_
  14. NTSTATUS
  15. StackAllocate(
  16. OUT PSTACK *Stack,
  17. IN ULONG StackElementSize
  18. );
  19. NTSTATUS
  20. StackFree(
  21. IN OUT PSTACK *Stack
  22. );
  23. NTSTATUS
  24. StackParent(
  25. IN OUT PSTACK *Stack,
  26. IN PVOID Child,
  27. OUT PVOID Parent
  28. );
  29. NTSTATUS
  30. StackPop(
  31. IN OUT PSTACK *Stack
  32. );
  33. NTSTATUS
  34. StackPush(
  35. IN OUT PSTACK *Stack,
  36. OUT PVOID StackElement
  37. );
  38. NTSTATUS
  39. StackRoot(
  40. IN OUT PSTACK *Stack,
  41. OUT PVOID RootElement
  42. );
  43. NTSTATUS
  44. StackTop(
  45. IN OUT PSTACK *Stack,
  46. OUT PVOID TopElement
  47. );
  48. #endif