public static int SignedHiWord(IntPtr hiWord) { return (short)(((int)(long)hiWord >> 0x10) & 0xffff); }