mirror of https://github.com/lianthony/NT4.0
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.
72 lines
827 B
72 lines
827 B
/*++
|
|
|
|
Copyright (c) 1992 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
list.h
|
|
|
|
Abstract:
|
|
|
|
This is the include file for the list management package
|
|
|
|
Author:
|
|
|
|
Dave Hastings (daveh) 04-Nov-1992
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
//
|
|
// Compare function declaration
|
|
//
|
|
|
|
typedef ULONG (*COMPAREFUNCTION)(
|
|
PVOID Data,
|
|
PVOID Key
|
|
);
|
|
//
|
|
// List Management routines
|
|
//
|
|
PVOID
|
|
CreateList(
|
|
ULONG DataSize,
|
|
COMPAREFUNCTION CompareFunction
|
|
);
|
|
|
|
PVOID
|
|
InsertDataInList(
|
|
PVOID List,
|
|
PVOID Data
|
|
);
|
|
|
|
BOOL
|
|
RemoveDataFromList(
|
|
PVOID List,
|
|
PVOID Data,
|
|
PVOID ListItem
|
|
);
|
|
|
|
PVOID
|
|
GetDataFromListItem(
|
|
PVOID List,
|
|
PVOID ListItem
|
|
);
|
|
|
|
PVOID
|
|
TraverseList(
|
|
PVOID List,
|
|
PVOID ListItem
|
|
);
|
|
|
|
PVOID
|
|
FindDataInList(
|
|
PVOID List,
|
|
PVOID Key
|
|
);
|
|
|
|
BOOL
|
|
DestroyList(
|
|
PVOID List
|
|
);
|