home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / lmapibuf.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  1KB  |  75 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright 1991-1998 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. #define _LMAPIBUF_
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. //
  32. // Function Prototypes
  33. //
  34.  
  35. NET_API_STATUS NET_API_FUNCTION
  36. NetApiBufferAllocate(
  37.     IN DWORD ByteCount,
  38.     OUT LPVOID * Buffer
  39.     );
  40.  
  41. NET_API_STATUS NET_API_FUNCTION
  42. NetApiBufferFree (
  43.     IN LPVOID Buffer
  44.     );
  45.  
  46. NET_API_STATUS NET_API_FUNCTION
  47. NetApiBufferReallocate(
  48.     IN LPVOID OldBuffer OPTIONAL,
  49.     IN DWORD NewByteCount,
  50.     OUT LPVOID * NewBuffer
  51.     );
  52.  
  53. NET_API_STATUS NET_API_FUNCTION
  54. NetApiBufferSize(
  55.     IN LPVOID Buffer,
  56.     OUT LPDWORD ByteCount
  57.     );
  58.  
  59.  
  60. //
  61. // The following private function will go away eventually.
  62. // Call NetApiBufferAllocate instead.
  63. //
  64. NET_API_STATUS NET_API_FUNCTION
  65. NetapipBufferAllocate (                 // Internal Function
  66.     IN DWORD ByteCount,
  67.     OUT LPVOID * Buffer
  68.     );
  69.  
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73.  
  74. #endif // _LMAPIBUF_
  75.