The DIDFT_GETTYPE macro extracts the object type code from a data format type.
BYTE DIDFT_GETTYPE(
DWORD dwType
);
Parameters
dwType
The DirectInput data format type. The possible values for this parameter are identical to those found in the dwType member of the DIOBJECTDATAFORMAT structure.
QuickInfo
  Windows NT: Use version 5.0 or later.
  Windows: Use Windows 95 OSR2 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in dinput.h.