Click here to Skip to main content
15,897,226 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: No Errors but wrong values on return? Pin
David Crow27-Jul-18 4:57
David Crow27-Jul-18 4:57 
GeneralRe: No Errors but wrong values on return? Pin
Richard MacCutchan27-Jul-18 5:10
mveRichard MacCutchan27-Jul-18 5:10 
GeneralRe: No Errors but wrong values on return? Pin
GESY28-Jul-18 8:43
GESY28-Jul-18 8:43 
GeneralRe: No Errors but wrong values on return? Pin
GESY28-Jul-18 8:45
GESY28-Jul-18 8:45 
GeneralRe: No Errors but wrong values on return? Pin
Richard MacCutchan28-Jul-18 9:01
mveRichard MacCutchan28-Jul-18 9:01 
GeneralRe: No Errors but wrong values on return? Pin
GESY28-Jul-18 11:13
GESY28-Jul-18 11:13 
GeneralRe: No Errors but wrong values on return? Pin
Richard MacCutchan28-Jul-18 22:08
mveRichard MacCutchan28-Jul-18 22:08 
GeneralRe: No Errors but wrong values on return? Pin
GESY29-Jul-18 6:00
GESY29-Jul-18 6:00 
QuestionCreateProcess lpApplicationName param Pin
ForNow23-Jul-18 16:16
ForNow23-Jul-18 16:16 
AnswerRe: CreateProcess lpApplicationName param Pin
Richard MacCutchan23-Jul-18 22:46
mveRichard MacCutchan23-Jul-18 22:46 
SuggestionRe: CreateProcess lpApplicationName param Pin
Jochen Arndt23-Jul-18 22:56
professionalJochen Arndt23-Jul-18 22:56 
GeneralRe: CreateProcess lpApplicationName param Pin
Richard MacCutchan23-Jul-18 23:09
mveRichard MacCutchan23-Jul-18 23:09 
AnswerRe: CreateProcess lpApplicationName param Pin
Jochen Arndt23-Jul-18 22:55
professionalJochen Arndt23-Jul-18 22:55 
GeneralRe: CreateProcess lpApplicationName param Pin
ForNow23-Jul-18 23:35
ForNow23-Jul-18 23:35 
GeneralRe: CreateProcess lpApplicationName param Pin
Jochen Arndt23-Jul-18 23:55
professionalJochen Arndt23-Jul-18 23:55 
GeneralRe: CreateProcess lpApplicationName param Pin
ForNow24-Jul-18 1:42
ForNow24-Jul-18 1:42 
QuestionTechnical Interview Preparation Pin
Member 1392070221-Jul-18 0:50
Member 1392070221-Jul-18 0:50 
AnswerRe: Technical Interview Preparation Pin
Richard MacCutchan21-Jul-18 1:12
mveRichard MacCutchan21-Jul-18 1:12 
AnswerRe: Technical Interview Preparation Pin
CPallini22-Jul-18 21:52
mveCPallini22-Jul-18 21:52 
QuestionAPI to change win10 touchpad 'Cursor speed' dynamically without restarting Pin
AroraSaurabh19-Jul-18 6:59
AroraSaurabh19-Jul-18 6:59 
GeneralRe: API to change win10 touchpad 'Cursor speed' dynamically without restarting Pin
Richard MacCutchan19-Jul-18 21:24
mveRichard MacCutchan19-Jul-18 21:24 
AnswerRe: API to change win10 touchpad 'Cursor speed' dynamically without restarting Pin
Randor 20-Jul-18 21:30
professional Randor 20-Jul-18 21:30 
Member 9453331 wrote:
I tried changing the below registry. But the problem with changing registry is that touchpad cursor speed gets updated only after system restart. I need an API to change touchpad cursor speed without restarting system (similar to how we can change mouse speed using SystemParametersInfo)

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\PrecisionTouchPad\CursorSpeed

Any suggestions in this regard will be really very helpful.


If you need to restart the touchpad driver then you could probably use the Setupapi. I believe that you will need to first call SetupDiSetClassInstallParams with the SP_CLASSINSTALL_HEADER.InstallFunction set to DIF_PROPERTYCHANGE followed by a call to the SetupDiCallClassInstaller function with the DI_FUNCTION also set to DIF_PROPERTYCHANGE.

Be aware that many touchpad drivers are written by third-party vendor (i.e. not Microsoft). I don't think all touchpad drivers support being restarted from the Setup API. It really depends on how the third-party vendor has implemented their driver co-installer.

The Windows operating system is 'aware' of the co-installer capabilities from when the co-installer was registered. If you want to check if your touchpad supports enable/disable then go into the device manager and right click... if you see 'Disable Device' then that means that the co-installer supports device restart.

Believe it or not the touchpad device driver itself probably supports start/stop so there is nothing preventing you from developing a co-installer and registering it as the handler for the third-party touchpad driver as long as the co-installer DLL is not part of a digitally-signed catalog.

Best Wishes,
-David Delaune
QuestionRegistering a IOT Device in C++ Pin
Member 1391379016-Jul-18 9:20
Member 1391379016-Jul-18 9:20 
GeneralRe: Registering a IOT Device in C++ Pin
Richard MacCutchan17-Jul-18 2:03
mveRichard MacCutchan17-Jul-18 2:03 
QuestionCChildFrame in separate thread Pin
_Flaviu15-Jul-18 22:06
_Flaviu15-Jul-18 22:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.