[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Win32, C and SendMessageTimeout - Request for help

From: Jostein Chr. Andersen <jostein_at_josander.net>
Date: 2004-09-15 20:11:29 CEST

Hi!

For the Windows installer, I have used a small helper program for about
two years in order to update the Windows %PATH% environment variable.
This helper program adds/removes Subversion's binary path (path to
svn.exe) and are using SendMessageTimeout in order to make the Windows
system aware of the change in %PATH% for the NT-variations.

The problem is:
Sometimes, the Windows system is not aware of the change in path and must
be rebooted. This is probably a rare problem, but happends from time to
time on misc. 2k and XP systems.

Why does this problem come up. Is there something I've done wrong (see
below) or is it some kind of Windows problem?

You will find this program in Subersion's repository:
  packages/win32-innosetup/tools/svnpath/main.c

SendMessageTimeout if found in the lines 278 and 614.

----------------------------------------------------------------------
        /* Tell the system about the new path */
        SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0,
                           (LPARAM) "Environment", SMTO_ABORTIFHUNG,
                            5000, &lRet);
----------------------------------------------------------------------

Any help is welcome.

Thanks in advance.

Jostein

-- 
http://www.josander.net/en/contact/

  • application/pgp-signature attachment: stored
Received on Wed Sep 15 20:12:26 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.