@@ -103,12 +103,12 @@ protected override void WndProc(ref Message m)
103
103
104
104
if ( _oContextMenu != null &&
105
105
m . Msg == ( int ) WM . MENUSELECT &&
106
- ( ShellHelper . HiWord ( m . WParam ) & ( ulong ) MFT . SEPARATOR ) == 0 &&
107
- ( ShellHelper . HiWord ( m . WParam ) & ( ulong ) MFT . POPUP ) == 0 )
106
+ ( ShellHelper . HiWord ( m . WParam ) & ( nint ) MFT . SEPARATOR ) == 0 &&
107
+ ( ShellHelper . HiWord ( m . WParam ) & ( nint ) MFT . POPUP ) == 0 )
108
108
{
109
109
string info = string . Empty ;
110
110
111
- if ( ShellHelper . LoWord ( m . WParam ) == ( int ) CMD_CUSTOM . ExpandCollapse )
111
+ if ( ShellHelper . LoWord ( m . WParam ) == ( nint ) CMD_CUSTOM . ExpandCollapse )
112
112
info = "Expands or collapses the current selected item" ;
113
113
else
114
114
{
@@ -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 ulong HiWord ( IntPtr ptr )
1593
+ public static nint HiWord ( IntPtr ptr )
1594
1594
{
1595
- if ( ( ( ulong ) ptr & 0x80000000 ) == 0x80000000 )
1596
- return ( ( ulong ) ptr >> 16 ) ;
1595
+ if ( ( ( nint ) ptr & 0x80000000 ) == 0x80000000 )
1596
+ return ( ( nint ) ptr >> 16 ) ;
1597
1597
else
1598
- return ( ( ( ulong ) ptr >> 16 ) & 0xffff ) ;
1598
+ return ( ( ( nint ) 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 ulong LoWord ( IntPtr ptr )
1606
+ public static nint LoWord ( IntPtr ptr )
1607
1607
{
1608
- return ( ulong ) ptr & 0xffff ;
1608
+ return ( nint ) ptr & 0xffff ;
1609
1609
}
1610
1610
1611
1611
#endregion
0 commit comments