NOTIFYING WINDOWS PROGRAMS OF REGISTRY CHANGE
Posted on 1999-01-08
I'm trying to change the default printer in Windows (9x) with vb6, I've managed to change the registry entry but I want windows to be aware of this. All I have been able to find is:
Private Const HWND_BROADCAST = &HFFFF
Private Const WM_WININICHANGE = &H1A
Private Declare Function SendMessage Lib "user32" _ Alias "SendMessageA" (ByVal hWnd As Integer, ByVal wMsg _ As Integer, ByVal wParam As Integer, lParam As Any) As Long
Call SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0, _ ByVal "Windows")
This doesn't seem to be working though.