NetApiBufferSize function (Windows)

Switch View :
ScriptFree
NetApiBufferSize function

Applies to: desktop apps only

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

Minimum supported server

Windows 2000 Server

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

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012