NetApiBufferSize function (lmapibuf.h)
The NetApiBufferSize function returns the size, in bytes, of a buffer allocated by a call to the NetApiBufferAllocate function.
Syntax
NET_API_STATUS NET_API_FUNCTION NetApiBufferSize(
[in] LPVOID Buffer,
[out] LPDWORD ByteCount
);
Parameters
[in] Buffer
Pointer to a buffer returned by the NetApiBufferAllocate function.
[out] ByteCount
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
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | lmapibuf.h (include Lm.h) |
Library | Netapi32.lib |
DLL | Netapi32.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for