Article View: borland.public.cppbuilder.nativeapi
Article #11842Re: Registry reset or refresh
From: Marc
Date: Mon, 12 Jan 2004 22:27
Date: Mon, 12 Jan 2004 22:27
46 lines
2475 bytes
2475 bytes
Hey Sorry mis read the doc, this actually works fine. SystemParametersInfo(SPI_SETACTIVEWINDOWTRACKING, 0, PVOID(TRUE), SPIF_SENDCHANGE); SystemParametersInfo(SPI_SETACTIVEWNDTRKTIMEOUT, 0, PVOID(1000), SPIF_SENDCHANGE); PostMessage(HWND_BROADCAST, WM_SETTINGCHANGE, NULL, NULL); Thanks Marc "Marc" <remove_Bukwheat@axess.com> wrote: > >Hey > >Here is the code the way I think you mean > SystemParametersInfo(SPI_SETACTIVEWINDOWTRACKING | SPI_SETACTIVEWNDTRKTIMEOUT, 0, NULL, SPIF_SENDCHANGE); > PostMessage(HWND_BROADCAST, WM_SETTINGCHANGE, NULL, NULL); > >This doesn't seem to affect the system in anyway. > >Thanks, I'll keep on searching >Marc > >"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote: >> >>"Marc" <remove_bukwheat@axess.com> wrote in message >>news:400318a6$1@newsgroups.borland.com... >> >>> Here is the switch I am modifying >>> [HKEY_CURRENT_USER\Control Panel\Desktop] >>> "ActiveWndTrkTimeout"=dword:00000000 >> >>Try using SystemParametersInfo() with the SPI_SETACTIVEWINDOWTRACKING and >>SPI_SETACTIVEWNDTRKTIMEOUT flags instead. You can specify >>SPIF_UPDATEINIFILE for the fWinIni parameter to persist the new values into >>the user's profile, and also specify SPIF_SENDCHANGE to have the function >>broadcast a WM_SETTINGCHANGE message to the rest of the system. >> >> >>Gambit >> >> >
Technical Details
Message-ID:
<40032d5b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ffdcd22$1@newsgroups.borland.com> <3ffdd1ed@newsgroups.borland.com> <3fff2306$1@newsgroups.borland.com> <3fff251a$1@newsgroups.borland.com> <400318a6$1@newsgroups.borland.com> <40031afd$1@newsgroups.borland.com> <400326c1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8a0ecda5c9359deb X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-12 15:31:03 PST From: "Marc" <Remove_Buckwheat@axess.com> Sender: "Marc" <Remove_Buckwheat@axess.com> Reply-To: "Marc" <Remove_Buckwheat@axess.com> Subject: Re: Registry reset or refresh Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 138.11.254.204 X-Forwarded-For: unknown References: <3ffdcd22$1@newsgroups.borland.com> <3ffdd1ed@newsgroups.borland.com> <3fff2306$1@newsgroups.borland.com> <3fff251a$1@newsgroups.borland.com> <400318a6$1@newsgroups.borland.com> <40031afd$1@newsgroups.borland.com> <400326c1$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <40032d5b$1@newsgroups.borland.com> Date: 12 Jan 2004 15:27:23 -0700 X-Trace: newsgroups.borland.com 1073950043 207.105.83.66 (12 Jan 2004 15:27:23 -0700) Lines: 47 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail