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.

74 lines
1.2 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1991-1995 Microsoft Corporation
  3. Module Name:
  4. lmapibuf.h
  5. Abstract:
  6. This file contains information about NetApiBuffer APIs.
  7. Environment:
  8. User Mode - Win32
  9. Notes:
  10. You must include LMCONS.H before this file, since this file depends
  11. on values defined in LMCONS.H.
  12. --*/
  13. #ifndef _LMAPIBUF_
  14. #define _LMAPIBUF_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. //
  19. // Function Prototypes
  20. //
  21. NET_API_STATUS NET_API_FUNCTION
  22. NetApiBufferAllocate(
  23. IN DWORD ByteCount,
  24. OUT LPVOID * Buffer
  25. );
  26. NET_API_STATUS NET_API_FUNCTION
  27. NetApiBufferFree (
  28. IN LPVOID Buffer
  29. );
  30. NET_API_STATUS NET_API_FUNCTION
  31. NetApiBufferReallocate(
  32. IN LPVOID OldBuffer OPTIONAL,
  33. IN DWORD NewByteCount,
  34. OUT LPVOID * NewBuffer
  35. );
  36. NET_API_STATUS NET_API_FUNCTION
  37. NetApiBufferSize(
  38. IN LPVOID Buffer,
  39. OUT LPDWORD ByteCount
  40. );
  41. //
  42. // The following private function will go away eventually.
  43. // Call NetApiBufferAllocate instead.
  44. //
  45. NET_API_STATUS NET_API_FUNCTION
  46. NetapipBufferAllocate ( // Internal Function
  47. IN DWORD ByteCount,
  48. OUT LPVOID * Buffer
  49. );
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif // _LMAPIBUF_