简体   繁体   中英

How to use thread in windows kernel programming?

I need to create user timer and thread in windows kernel program. Anyone please give a clue that if the regular threading headers are applicable in this mode?

You need to look into KMDF or WDM if you are using some old drivers.

For timers see this:

http://msdn.microsoft.com/en-us/library/windows/hardware/ff550050(v=vs.85).aspx

And here are threads or work items:

http://msdn.microsoft.com/en-us/library/windows/hardware/ff551203(v=vs.85).aspx

If you are developing in kernel mode, then you need to take a look at the DDK, as the functions are quite different and more restrictive to use, than the user space versions.

So the short answer is, no, the regular libraries can not be used inside a driver.

You might take alook at PsCreateSystemThread for threading, as this is something you will need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM