Export (0) Print
Expand All
Expand Minimize

NetApiBufferSize function

The NetApiBufferSize function returns the size, in bytes, of a buffer allocated by a call to the NetApiBufferAllocate function.

Syntax


NET_API_STATUS NetApiBufferSize(
  _In_   LPVOID Buffer,
  _Out_  LPDWORD ByteCount
);

Parameters

Buffer [in]

Pointer to a buffer returned by the NetApiBufferAllocate function.

ByteCount [out]

Receives the size of the buffer, in bytes.

Return value

If the function succeeds, the return value is NERR_Success.

If the function fails, the return value is a system error code. For a list of error codes, see System Error Codes.

Remarks

No special group membership is required to successfully execute the ApiBuffer functions.

For a code sample that demonstrates how to use the network management ApiBuffer functions, see NetApiBufferAllocate.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Lmapibuf.h (include Lm.h)

Library

Netapi32.lib

DLL

Netapi32.dll

See also

Network Management Overview
Network Management Functions
Api Buffer Functions
NetApiBufferAllocate
NetApiBufferFree

 

 

Community Additions

ADD
Show:
© 2014 Microsoft