[Migrated content. Thread originally posted on 06 January 2012]
Hello,I am trying to translate the following API structure so I can call it in my cobol program.
LRESULT WINAPI SendMessageTimeout(
__in HWND hWnd,
__in UINT Msg,
__in WPARAM wParam,
__in LPARAM lParam,
__in UINT fuFlags,
__in UINT uTimeout,
__out_opt PDWORD_PTR lpdwResult
);
Basically, I'm trying to broadcast a WM_SETTINGCHANGE message with lParam set to the string "Environment" in order to process a registry change involving an environment variable. See this link for more info:
msdn.microsoft.com/.../ms682653(v=vs.85).aspx
I've got the portion completed that sets the variables, but can't seem to broadcast a message to update windows.
Any help here would be great.
Thanks
Dave
