OpenThread

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am sure this has been covered before but I can't find any references to
it.

I need to suspend an active thread using SuspendThread and ResumeThread. My
problem is I need to use OpenThread to get the handle in order to pause it.
But when compiling my VC++ app cannot find it.

I get "error C2065: 'OpenThread' : undeclared identifier"

I have the latest W2K SDK installed and can see the definition in winbase.h,
but cannot understand why it doesn't want to compile. Am I missing aditional
libraries which I should include (apart from kernel32.lib)?

Any advice would be greatly appreciated.
DS


.



Relevant Pages

  • Re: pxa25x exception on resume (Windows CE5)
    ... I'm now compiling without the touch driver... ... driver that is not yet powered up and then creates a priority ... I could take out the touchdriver but then....how to go to suspend ... Terminating thread 83d92400 ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [ 00/23] [Suspend2] Freezer Upgrade Patches
    ... > Compiling a kernel, having updatedb and mandb run in the background ... > and then trying to suspend while the compile still runs might do as well. ...
    (Linux-Kernel)
  • Re: SuspendThread() problem
    ... The race condition happens when ResumeThread is called before ... Then you have an extra suspend count. ... debugger can use to suspend threads that are being debugged (and to resume ... The reason is related to a possible race condition with the suspend count. ...
    (microsoft.public.vc.mfc)
  • Re: [ 00/23] [Suspend2] Freezer Upgrade Patches
    ... Compiling a kernel, having updatedb and mandb run in the background ... and then trying to suspend while the compile still runs might do as well. ...
    (Linux-Kernel)
  • laptop suspend
    ... laptop suspend was working fine (either to suspend button, ... and have a 2.6.11 kernel. ... Where can I find the .config file that was used for compiling the ...
    (Fedora)