DIDFT_MAKEINSTANCE
Microsoft DirectX 9.0 SDK Update (October 2004)

DIDFT_MAKEINSTANCE Macro


The DIDFT_MAKEINSTANCE macro creates an instance identifier of a device object for packing in the dwType member of the DIOBJECTDATAFORMAT structure.

Syntax

#define DIDFT_MAKEINSTANCE(n) ((WORD)(n) << 8)

Parameters

n
Instance of the object; for example, 1 for button 1 of a mouse.

Macro Information

Headerdinput.h
Minimum operating systems Windows 98

See Also

DIDFT_GETINSTANCE


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.