The DIEFT_GETTYPE macro extracts the effect type code from an effect format type.
DIEFT_GETTYPE(n)  LOBYTE(n)
   Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dinput.h.