home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / msinc.pak / LMAPIBUF.H < prev    next >
C/C++ Source or Header  |  1997-07-23  |  2KB  |  94 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Module Name:
  4.  
  5.     lmapibuf.h
  6.  
  7. Abstract:
  8.  
  9.     This file contains information about NetApiBuffer APIs.
  10.  
  11. Author:
  12.  
  13.     Dan Lafferty (Danl) 15-Mar-1991
  14.  
  15. Environment:
  16.  
  17.     User Mode - Win32
  18.  
  19. Notes:
  20.  
  21.     You must include LMCONS.H before this file, since this file depends
  22.     on values defined in LMCONS.H.
  23.  
  24. Revision History:
  25.  
  26.     15-Mar-1991  Danl
  27.         Attached NT-style header
  28.     03-Dec-1991  JohnRo
  29.         Added public NetApiBufferAllocate, NetApiBufferReallocate, and
  30.         NetApiBufferSize APIs.
  31.  
  32. --*/
  33.  
  34. /*
  35.  *      C/C++ Run Time Library - Version 6.5
  36.  *
  37.  *      Copyright (c) 1994 by Borland International
  38.  *      All Rights Reserved.
  39.  *
  40.  */
  41.  
  42. #ifndef _LMAPIBUF_
  43. #define _LMAPIBUF_
  44. #define __LMAPIBUF_H
  45.  
  46. #ifdef __cplusplus
  47. extern "C" {
  48. #endif
  49.  
  50. //
  51. // Function Prototypes
  52. //
  53.  
  54. NET_API_STATUS NET_API_FUNCTION
  55. NetApiBufferAllocate(
  56.     IN DWORD ByteCount,
  57.     OUT LPVOID * Buffer
  58.     );
  59.  
  60. NET_API_STATUS NET_API_FUNCTION
  61. NetApiBufferFree (
  62.     IN LPVOID Buffer
  63.     );
  64.  
  65. NET_API_STATUS NET_API_FUNCTION
  66. NetApiBufferReallocate(
  67.     IN LPVOID OldBuffer OPTIONAL,
  68.     IN DWORD NewByteCount,
  69.     OUT LPVOID * NewBuffer
  70.     );
  71.  
  72. NET_API_STATUS NET_API_FUNCTION
  73. NetApiBufferSize(
  74.     IN LPVOID Buffer,
  75.     OUT LPDWORD ByteCount
  76.     );
  77.  
  78.  
  79. //
  80. // The following private function will go away eventually.
  81. // Call NetApiBufferAllocate instead.
  82. //
  83. NET_API_STATUS NET_API_FUNCTION
  84. NetapipBufferAllocate (                 // Internal Function
  85.     IN DWORD ByteCount,
  86.     OUT LPVOID * Buffer
  87.     );
  88.  
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92.  
  93. #endif // _LMAPIBUF_
  94.