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.
 
 
 
 
 
 

53 lines
844 B

/*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
BUFPOOL.H
Abstract:
Header for buffer pool manager
Author:
Aaron Ogus (aarono)
Environment:
Win32/COM
Revision History:
Date Author Description
======= ====== ============================================================
1/30/97 aarono Original
--*/
#ifndef _BUFPOOL_H_
#define _BUFPOOL_H_
#include <windows.h>
#include "buffer.h"
#define BUFFER_POOL_SIZE 16
//
// Buffer pools are allocated but only freed when the object is destroyed.
//
typedef struct _BUFFER_POOL {
struct _BUFFER_POOL *pNext;
BUFFER Buffers[BUFFER_POOL_SIZE];
} BUFFER_POOL, *PBUFFER_POOL;
PBUFFER GetBuffer(VOID);
VOID FreeBuffer(PBUFFER);
VOID InitBufferPool(VOID);
VOID FiniBufferPool(VOID);
#endif