unsigned attribute

The unsigned keyword indicates that the most significant bit of an integer variable represents a data bit rather than a signed bit.

[[ unsigned ]] type-qualifier [[ int ]]identifier-name;

Parameters

type-qualifier

Can be any of char, wchar_t, long, int, short, and small.

identifier-name

Specifies a valid MIDL identifier. Valid MIDL identifiers consist of up to 31 alphanumeric and/or underscore characters and must start with an alphabetic or underscore character.

Remarks

This keyword is optional and can be used with any of the character and integer types char, wchar_t, long, short, and small. You can optionally include the keyword int after the type qualifiers long, short, and small.

When you use the MIDL compiler switch /char, character and integer types that appear in the IDL file without explicit sign keywords can appear with the signed or unsigned keyword in the generated header file. To avoid confusion, specify the sign of the integer and character types.

See also

MIDL Base Types

char

/char

Interface Definition (IDL) File

int

long

short

signed

small

wchar_t