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.
 
 
 
 
 
 

67 lines
1.0 KiB

/*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
stack.c
Abstract:
This provides a generic stack handler to push/pop things onto it
Author:
Stephane Plante (splante)
Environment:
User, Kernel
--*/
#ifndef _STACK_H_
#define _STACK_H_
NTSTATUS
StackAllocate(
OUT PSTACK *Stack,
IN ULONG StackElementSize
);
NTSTATUS
StackFree(
IN OUT PSTACK *Stack
);
NTSTATUS
StackParent(
IN OUT PSTACK *Stack,
IN PVOID Child,
OUT PVOID Parent
);
NTSTATUS
StackPop(
IN OUT PSTACK *Stack
);
NTSTATUS
StackPush(
IN OUT PSTACK *Stack,
OUT PVOID StackElement
);
NTSTATUS
StackRoot(
IN OUT PSTACK *Stack,
OUT PVOID RootElement
);
NTSTATUS
StackTop(
IN OUT PSTACK *Stack,
OUT PVOID TopElement
);
#endif