I am new to C# and need to convert a VB.NET library to C#. The library uses some API's and I haven't got a clue. Can anyone help? Below are the API's:
Code:Private Declare Function GetMenu Lib "user32" (ByVal hwnd As Integer) As Integer Declare Function GetMenuItemInfo Lib "user32" Alias "GetMenuItemInfoA" (ByVal hMenu As Integer, ByVal un As Integer, ByVal b As Integer, ByRef lpMenuItemInfo As MENUITEMINFO) As Integer Declare Function GetSubMenu Lib "user32" (ByVal hMenu As Integer, ByVal nPos As Integer) As Integer Private Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Integer) As Integer Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Integer, ByVal hWnd2 As Integer, ByVal lpsz1 As String, ByVal lpsz2 As String) As Integer Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer Private Declare Function SetFocusAPI Lib "user32" Alias "SetFocus" (ByVal hwnd As Integer) As Integer




Reply With Quote