home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / lmapibuf.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  1.4 KB  |  81 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1991-1999  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     lmapibuf.h
  8.  
  9. Abstract:
  10.  
  11.     This file contains information about NetApiBuffer APIs.
  12.  
  13. Environment:
  14.  
  15.     User Mode - Win32
  16.  
  17. Notes:
  18.  
  19.     You must include LMCONS.H before this file, since this file depends
  20.     on values defined in LMCONS.H.
  21.  
  22. --*/
  23.  
  24. #ifndef _LMAPIBUF_
  25. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  26. #define _LMAPIBUF_
  27.  
  28. #if _MSC_VER > 1000
  29. #pragma once
  30. #endif
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35.  
  36. //
  37. // Function Prototypes
  38. //
  39.  
  40. NET_API_STATUS NET_API_FUNCTION
  41. NetApiBufferAllocate(
  42.     IN DWORD ByteCount,
  43.     OUT LPVOID * Buffer
  44.     );
  45.  
  46. NET_API_STATUS NET_API_FUNCTION
  47. NetApiBufferFree (
  48.     IN LPVOID Buffer
  49.     );
  50.  
  51. NET_API_STATUS NET_API_FUNCTION
  52. NetApiBufferReallocate(
  53.     IN LPVOID OldBuffer OPTIONAL,
  54.     IN DWORD NewByteCount,
  55.     OUT LPVOID * NewBuffer
  56.     );
  57.  
  58. NET_API_STATUS NET_API_FUNCTION
  59. NetApiBufferSize(
  60.     IN LPVOID Buffer,
  61.     OUT LPDWORD ByteCount
  62.     );
  63.  
  64.  
  65. //
  66. // The following private function will go away eventually.
  67. // Call NetApiBufferAllocate instead.
  68. //
  69. NET_API_STATUS NET_API_FUNCTION
  70. NetapipBufferAllocate (                 // Internal Function
  71.     IN DWORD ByteCount,
  72.     OUT LPVOID * Buffer
  73.     );
  74.  
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78.  
  79. #pragma option pop /*P_O_Pop*/
  80. #endif // _LMAPIBUF_
  81.