A
active
This is what need to do
Win32.User.SendMessage(Win32.User.HWND_BROADCAST,
Win32.User.WM_WININICHANGE, 0, "windows")
Tried both of these in Win32.User. (one at a time)
[DllImport("user32")] public static extern int SendMessage(int hwnd, int
wMsg, int wParam, String s);
[DllImport("user32")] public static extern int SendMessage(int hwnd, int
wMsg, int wParam, [MarshalAs(UnmanagedType.LPStr)]String s);
Are these really different or does the first do the same as the second?
The compile error I get is
'Public Shared Function SendMessage(hwnd As Integer, wMsg As Integer,
wParam As Integer, s As String) As Integer': Reference to a non-shared
member requires an object reference.
Any idea how to do it correctly?
Cal
Win32.User.SendMessage(Win32.User.HWND_BROADCAST,
Win32.User.WM_WININICHANGE, 0, "windows")
Tried both of these in Win32.User. (one at a time)
[DllImport("user32")] public static extern int SendMessage(int hwnd, int
wMsg, int wParam, String s);
[DllImport("user32")] public static extern int SendMessage(int hwnd, int
wMsg, int wParam, [MarshalAs(UnmanagedType.LPStr)]String s);
Are these really different or does the first do the same as the second?
The compile error I get is
'Public Shared Function SendMessage(hwnd As Integer, wMsg As Integer,
wParam As Integer, s As String) As Integer': Reference to a non-shared
member requires an object reference.
Any idea how to do it correctly?
Cal