Source code of Windows XP (NT5)
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.

44 lines
636 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. alloc.h
  6. Abstract:
  7. Generic realloc code for any api that can fail with
  8. ERROR_INSUFFICIENT_BUFFER.
  9. Author:
  10. Albert Ting (AlbertT) 25-Sept-1996
  11. Revision History:
  12. --*/
  13. #ifndef _ALLOC_H
  14. #define _ALLOC_H
  15. typedef struct _ALLOC_DATA ALLOC_DATA, *PALLOC_DATA;
  16. typedef BOOL (*ALLOC_FUNC)( PVOID pvUserData, PALLOC_DATA pAllocDatac);
  17. struct _ALLOC_DATA {
  18. PBYTE pBuffer;
  19. DWORD cbBuffer;
  20. };
  21. PBYTE
  22. pAllocRead(
  23. HANDLE hUserData,
  24. ALLOC_FUNC AllocFunc,
  25. DWORD dwLenHint,
  26. PDWORD pdwLen
  27. );
  28. #endif // ifdef _ALLOC_H