Returns the high WORD from a DWORD value.
using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.IO; namespace Vestris.ResourceLib { /// <summary> /// Resource utilities. /// </summary> public abstract class ResourceUtil { /// <summary> /// Returns the high WORD from a DWORD value. /// </summary> /// <param name="value">WORD value.</param> /// <returns>High WORD.</returns> internal static UInt16 LoWord(UInt32 value) { return (UInt16) (value & 0x0000FFFF); } } }