@@ -103,8 +103,8 @@ protected override void WndProc(ref Message m)
103
103
104
104
if ( _oContextMenu != null &&
105
105
m . Msg == ( int ) WM . MENUSELECT &&
106
- ( ( int ) ShellHelper . HiWord ( m . WParam ) & ( int ) MFT . SEPARATOR ) == 0 &&
107
- ( ( int ) ShellHelper . HiWord ( m . WParam ) & ( int ) MFT . POPUP ) == 0 )
106
+ ( ShellHelper . HiWord ( m . WParam ) & ( ulong ) MFT . SEPARATOR ) == 0 &&
107
+ ( ShellHelper . HiWord ( m . WParam ) & ( ulong ) MFT . POPUP ) == 0 )
108
108
{
109
109
string info = string . Empty ;
110
110
@@ -1590,22 +1590,22 @@ internal static class ShellHelper
1590
1590
/// </summary>
1591
1591
/// <param name="ptr">The pointer to the WParam</param>
1592
1592
/// <returns>The unsigned integer for the High Word</returns>
1593
- public static uint HiWord ( IntPtr ptr )
1593
+ public static ulong HiWord ( IntPtr ptr )
1594
1594
{
1595
1595
if ( ( ( ulong ) ptr & 0x80000000 ) == 0x80000000 )
1596
- return ( uint ) ( ( ulong ) ptr >> 16 ) ;
1596
+ return ( ( ulong ) ptr >> 16 ) ;
1597
1597
else
1598
- return ( uint ) ( ( ( ulong ) ptr >> 16 ) & 0xffff ) ;
1598
+ return ( ( ( ulong ) ptr >> 16 ) & 0xffff ) ;
1599
1599
}
1600
1600
1601
1601
/// <summary>
1602
1602
/// Retrieves the Low Word of a WParam of a WindowMessage
1603
1603
/// </summary>
1604
1604
/// <param name="ptr">The pointer to the WParam</param>
1605
1605
/// <returns>The unsigned integer for the Low Word</returns>
1606
- public static uint LoWord ( IntPtr ptr )
1606
+ public static ulong LoWord ( IntPtr ptr )
1607
1607
{
1608
- return ( uint ) ptr & 0xffff ;
1608
+ return ( ulong ) ptr & 0xffff ;
1609
1609
}
1610
1610
1611
1611
#endregion
0 commit comments