solved.............
Usage of SetUserObjectInformation() Win32
drjackool
956
Reputation points
Hi
In SetTimer() page wrotes:
Before using SetTimer or other timer-related functions, it is recommended to set the UOI_TIMERPROC_EXCEPTION_SUPPRESSION flag to false through the SetUserObjectInformationW function, otherwise the application could behave unpredictably and could be vulnerable to security exploits. For more info, see SetUserObjectInformationW.
But what is correct usage of this function?
Is this correct?
I place it in CApp::InitInstance()
BOOL bBool = FALSE;
SetUserObjectInformation(GetCurrentProcess(), UOI_TIMERPROC_EXCEPTION_SUPPRESSION, &bBool, sizeof(BOOL));
Thanks