Skip to content

Latest commit

 

History

History
86 lines (55 loc) · 2.02 KB

signed.md

File metadata and controls

86 lines (55 loc) · 2.02 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date
signed attribute
The signed keyword indicates the most significant bit of an integer variable represents a sign bit rather than a data bit.
6116089a-647e-485b-8f79-9c9267aa4810
signed attribute MIDL
apiref
signed
NA
reference
05/31/2018

signed attribute

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

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

Parameters

type-qualifier

Can be any of char, wchar_t, long, 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 keywords in the generated header file. To avoid confusion, specify the sign of the integer and character types.

See also

MIDL Base Types

/char

Interface Definition (IDL) File

int

long

short

small

unsigned

wchar_t