Hi,
Today I'd read an API-Statement in the MSDN, where I have some problems to implement this statement in VB. The statement is like all statements in C++.
Here is the API-Statement:
SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0,
(LPARAM) "Environment", SMTO_ABORTIFHUNG,
5000, &dwReturnValue);
Well, I've solved the problem of WM_SETTINGCHANGE. It is a problem because this windowmessage isn't in the WinApi32.txt textfile. So I use the message WM_WININICHANGE because it is of the same value. (I'd checked it in the header files of VC++)
Now my problem is the part (LPARAM) "Environment".
VB requires a long-value. You can't cast in VB like in VC++.
Now, any idea which value the 4th parameter should have?
I tried 0 but than the statement throws an error (dwReturnValue was 0)
In reguards and hope for help
Kostarsus
Today I'd read an API-Statement in the MSDN, where I have some problems to implement this statement in VB. The statement is like all statements in C++.
Here is the API-Statement:
SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0,
(LPARAM) "Environment", SMTO_ABORTIFHUNG,
5000, &dwReturnValue);
Well, I've solved the problem of WM_SETTINGCHANGE. It is a problem because this windowmessage isn't in the WinApi32.txt textfile. So I use the message WM_WININICHANGE because it is of the same value. (I'd checked it in the header files of VC++)
Now my problem is the part (LPARAM) "Environment".
VB requires a long-value. You can't cast in VB like in VC++.
Now, any idea which value the 4th parameter should have?
I tried 0 but than the statement throws an error (dwReturnValue was 0)
In reguards and hope for help
Kostarsus