I have been able to add a declaration like this:
Expand|Select|Wrap|Line Numbers
- <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)>
- Public Shared Function SetWindowText(hWnd As IntPtr, lpString As String) As Boolean
- End Function
Expand|Select|Wrap|Line Numbers
- BOOL NEAR GoModal( HINSTANCE hInstance, LPCSTR lpszTemplate,HWND hWnd, DLGPROC lpDlgProc, LPARAM lParam )
As I go to the definition of each type (i.e: NEAR , HINSTANCE, LPCSTR, etc...) I try to find an equivalent call in VB but ... its useless. For instance, I've seen a lot of questions on google asking on how to get the HINSTANCE such as:
Expand|Select|Wrap|Line Numbers
- System.Runtime.InteropServices.Marshal.GetHINSTANCE _(System.Reflection.Assembly.GetExecutingAssembly.GetModules() _(0)).ToInt32()
Expand|Select|Wrap|Line Numbers
- Dim hinst as HINSTANCE
Ultimately, my question is, would such call exist in vb.net / even be useful with the more modern framework and such?