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.
|
|
/*++
Copyright (C) Microsoft Corporation, 1993 - 1998
Module Name:
queue.h
Abstract:
Creates a simple Queue that works in Kernel Mode.
Author:
Robbie Harris (Hewlett-Packard) 22-May-1998
Environment:
Kernel mode
Revision History :
--*/ #ifndef _QUEUE_
#define _QUEUE_
typedef struct _Queue { int head; int max; int tail; UCHAR *theArray; } Queue, *PQueue;
void Queue_Create(Queue *pQueue, int size); BOOLEAN Queue_Delete(Queue *pQueue); BOOLEAN Queue_Dequeue(Queue *pQueue, PUCHAR data); BOOLEAN Queue_Enqueue(Queue *pQueue, UCHAR data); BOOLEAN Queue_GarbageCollect(Queue *pQueue); BOOLEAN Queue_IsEmpty(Queue *pQueue); BOOLEAN Queue_IsFull(Queue *pQueue);
#endif
|