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.

78 lines
1.3 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1991-1999 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. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. //
  22. // Function Prototypes
  23. //
  24. NET_API_STATUS NET_API_FUNCTION
  25. NetApiBufferAllocate(
  26. IN DWORD ByteCount,
  27. OUT LPVOID * Buffer
  28. );
  29. NET_API_STATUS NET_API_FUNCTION
  30. NetApiBufferFree (
  31. IN LPVOID Buffer
  32. );
  33. NET_API_STATUS NET_API_FUNCTION
  34. NetApiBufferReallocate(
  35. IN LPVOID OldBuffer OPTIONAL,
  36. IN DWORD NewByteCount,
  37. OUT LPVOID * NewBuffer
  38. );
  39. NET_API_STATUS NET_API_FUNCTION
  40. NetApiBufferSize(
  41. IN LPVOID Buffer,
  42. OUT LPDWORD ByteCount
  43. );
  44. //
  45. // The following private function will go away eventually.
  46. // Call NetApiBufferAllocate instead.
  47. //
  48. NET_API_STATUS NET_API_FUNCTION
  49. NetapipBufferAllocate ( // Internal Function
  50. IN DWORD ByteCount,
  51. OUT LPVOID * Buffer
  52. );
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56. #endif // _LMAPIBUF_