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.

40 lines
804 B

  1. typedef VOID (*BUFFER_FREE_ROUTINE)(
  2. struct _IRCOMM_BUFFER *Buffer
  3. );
  4. typedef struct _IRCOMM_BUFFER {
  5. SLIST_ENTRY ListEntry;
  6. PVOID BufferPool;
  7. BUFFER_FREE_ROUTINE FreeBuffer;
  8. PVOID Context;
  9. PVOID Context2;
  10. PMDL Mdl;
  11. PIRP Irp;
  12. ULONG BufferLength;
  13. UCHAR Data[1];
  14. } IRCOMM_BUFFER, *PIRCOMM_BUFFER;
  15. typedef PVOID BUFFER_POOL_HANDLE;
  16. BUFFER_POOL_HANDLE
  17. CreateBufferPool(
  18. ULONG StackDepth,
  19. ULONG BufferSize,
  20. ULONG BufferCount
  21. );
  22. VOID
  23. FreeBufferPool(
  24. BUFFER_POOL_HANDLE Handle
  25. );
  26. PIRCOMM_BUFFER
  27. GetBuffer(
  28. BUFFER_POOL_HANDLE Handle
  29. );