Yes, the double negate is a little trick to give you either a 1 or a 0 instead of the value of the operation.
-----Original Message----- From: Ros-dev [mailto:[email protected]] On Behalf Of Pierre Schweitzer Sent: 16 June 2014 07:31 To: [email protected] Subject: Re: [ros-dev] [ros-diffs] [hbelusca] 63599: [TASKMGR]: Use the EndTask API to kill tasks. On 15/06/2014 19:47, [email protected] wrote: > + /* Trick: on Windows, pressing the CTRL key forces the task to be ended > */ > + BOOL ForceEndTask = !!(GetKeyState(VK_CONTROL) & 0x8000); > + Was it really meant to be '!!'? -- Pierre Schweitzer<pierre at reactos.org> System Administrator ReactOS Foundation _______________________________________________ Ros-dev mailing list [email protected] http://www.reactos.org/mailman/listinfo/ros-dev
