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.

86 lines
1.5 KiB

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