CLUSPROP_BINARY_DECLARE macro (clusapi.h)

Creates a CLUSPROP_BINARY structure with the rgb member set to a size determined by the caller.

Syntax

void CLUSPROP_BINARY_DECLARE(
   name,
   cb
);

Parameters

name

Name of the CLUSPROP_BINARY structure to be created.

cb

The size (count of bytes) of the rgb member array. This value must be a constant.

Return value

None

Remarks

ClusAPI.h defines CLUSPROP_BINARY_DECLARE as follows:

#define CLUSPROP_BINARY_DECLARE( name, cch ) \
    struct {                                 \
        CLUSPROP_SYNTAX Syntax;              \
        DWORD           cbLength;            \
        BYTE            rgb[(cch + 3) & ~3]; \
    } name

Examples

The following example shows how to use CLUSPROP_BINARY_DECLARE:

BYTE ByteData[] = { 'A', 1, 'B', 2, 'C' };
CLUSPROP_BINARY_DECLARE( ByteValue, sizeof( ByteData ) );
ByteValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
ByteValue.cbLength = sizeof( ByteData );
memcpy( ByteValue.rgb, ByteData, sizeof( ByteData ) );

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header clusapi.h

See also

CLUSPROP_BINARY