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.

63 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. gbuf.hxx
  5. Abstract:
  6. IIS MetaBase declarations for global buffers.
  7. Author:
  8. Michael W. Thomas 12-July-96
  9. Revision History:
  10. --*/
  11. #ifndef _md_gbuf_
  12. #define _md_gbuf_
  13. #define DATA_BUFFER_LEN 26
  14. #define NUM_DATA_BUFFERS 400
  15. #define MAX_DATA_BUFFER_ENTRIES (DATA_BUFFER_LEN * DATA_BUFFER_LEN)
  16. typedef struct _BUFFER_CONTAINER {
  17. PVOID *ppvBuffer;
  18. struct _BUFFER_CONTAINER *NextPtr;
  19. } BUFFER_CONTAINER, *PBUFFER_CONTAINER;
  20. HRESULT
  21. InitBufferPool();
  22. VOID
  23. DeleteBufferPool();
  24. PVOID *
  25. GetDataBuffer();
  26. VOID
  27. FreeDataBuffer(PVOID *ppvBuffer);
  28. BOOL
  29. InsertItemIntoDataBuffer(
  30. PVOID pvItem,
  31. PVOID *ppvMainDataBuf,
  32. DWORD &dwNumBufferEntries);
  33. PVOID
  34. GetItemFromDataBuffer(
  35. PVOID *ppvMainDataBuf,
  36. DWORD dwItemNum);
  37. VOID
  38. FreeMainDataBuffer(
  39. PVOID *ppvMainDataBuf);
  40. PVOID *
  41. GetMainDataBuffer();
  42. #endif //_md_gbuf_