Share via


NOTIFY_S2D_POOL_CHANGE_IN_VALIDATE_SIZE macro

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Validates the size of the InBuffer for the CLUSCTL_CLUSTER_NOTIFY_S2D_POOL_CHANGE control code.

Syntax

void NOTIFY_S2D_POOL_CHANGE_IN_VALIDATE_SIZE(
    InBuffer,
    InBufferSize
);

Parameters

Return value

This macro does not return a value.

Remarks

ClusAPI.h defines NOTIFY_S2D_POOL_CHANGE_IN_VALIDATE_SIZE as follows:

#define NOTIFY_S2D_POOL_CHANGE_IN_VALIDATE_SIZE(InBuffer,InBufferSize) \
    (((InBufferSize) >= sizeof(NOTIFY_S2D_POOL_CHANGE_IN)) \
    && (((PNOTIFY_S2D_POOL_CHANGE_IN)(InBuffer))->Size >= sizeof(NOTIFY_S2D_POOL_CHANGE_IN)) \
    && (((PNOTIFY_S2D_POOL_CHANGE_IN)(InBuffer))->Size <= InBufferSize))

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2016 Technical Preview

Header

ClusAPI.h

See also

NOTIFY_S2D_POOL_CHANGE_IN