I am having trouble converting this part of the code (originally in VB) to C #. In particular, how to apply negativity to int.
Private Declare Function GetWindowLong Lib "user32" Alias _ "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Const GWL_STYLE = (-16) Private Const WS_MAXIMIZEBOX = &H10000 dim lStyle as long lStyle = GetWindowLong(Lhwnd, GWL_STYLE) lStyle = lStyle And Not WS_MAXIMIZEBOX
source share