HomeОбразованиеRelated VideosMore From: Programming LoL

Windows Kernel Programming Tutorial 3 - Writing a simple driver

82 ratings | 8442 views
In this tutorial,we will write a test driver which only prints some characters. And be sure to turn on closed captions for detailed explanation. NTSTATUS values: https://msdn.microsoft.com/en-us/library/cc704588.aspx



Html code for embedding videos on your blog
Text Comments (37)
TexHik ►► Play (1 day ago)
Error LNK2019 __CheckForDebuggerJustMyCode in function DriverEntry What to do? Help pls
DaGoofSta (5 days ago)
i cant even build, i get "Unresolved external symbol DriverEntry refrenced in function GsDriverEntry" edit: Adding Extern "C" to everything worked
Opreker Sejati (18 days ago)
I got this error, been googling didn't find any clue, can you help me? TRK0002 Failed to execute command: ""C:\Program Files (x86)\Windows Kits\10\bin\x86\stampinf.exe" -d * -a amd64 -v * -k 1.15 -x -f x64\Debug\helloword.inf". FileTracker error code: 0xd8
How do I get these Driver Templates in Visual Studio?
Timon Trinh (3 months ago)
Thank you very much for the playlist!! However, I faced an issue with VirtualKD; I didn't found anywhere the VBoxKD64.dll. Could you help please?
Randych (2 months ago)
https://github.com/sysprogs/VirtualKD/tree/master/BUNDLE it says where to find it.
TheFauCheuse (4 months ago)
This is extremely helpful, thank you
Programming LoL (4 months ago)
Thanks:)
krutoyinfo (5 months ago)
Nice. Did it over 12 years ago without having VM. Crashed 1000 times)
Programming LoL (5 months ago)
Thank you.
Ariüs (6 months ago)
Hello, when i try to load my driver windows block the driver and say it can be a virus. (startservice error 577). Can you help me ?
Programming LoL (5 months ago)
Did you solve the problem? You can send email or message to give me more details.
Iman Abdollahzadeh (8 months ago)
I tried to follow your tutorial on visual studio 2015. I get the error saying that:> TRACKER : error TRK0002: Failed to execute command: ""C:\Program Files (x86)\Windows Kits\10\bin\x86\inf2cat.exe" /os:7_x64 "/driver:C:\Users\...\Documents\Visual Studio 2015\Projects\MyDriver1\x64\Debug\MyDriver1\\"". The handle is invalid. My both host and target os are windows 7. This is why I set os:7_x64. By the way, changing it to windows 8.1 and windows 10 or higher options did not work out too.
Randych (2 months ago)
https://social.msdn.microsoft.com/Forums/vstudio/en-US/8d96a655-a2e9-45c3-800e-963d8c737c0b/compiling-with-toolset-v100-x64-in-vs2013-getting-trk0002-error-the-handle-is-invalid?forum=vcgeneral says it's something about env vars. And maybe use VS2017 no?
Programming LoL (8 months ago)
yes, you can do it simply using kmdf to deploy your driver to vm.
Iman Abdollahzadeh (8 months ago)
Is there a way to deploy unsigned drivers generated in this way, on another system for using?
Iman Abdollahzadeh (8 months ago)
Yes, this option indeed worked for me. I switched the Inf2Cat off and forced the OS not to only accepts signed drivers.
Programming LoL (8 months ago)
Hi, you can first try to disable inf2cat to see if it works. Open property dialogue of the solution, set Inf2Cat -> Run Inf2Cat to No and Driver Signing -> Sign Mode to Off.
blaze (8 months ago)
Why do you create a Virtual Environment?
Randych (2 months ago)
Does it BSoD? If yes, that's beyond good, way BEYONDER IMAGINABLE GOOD.
Programming LoL (8 months ago)
Hi, a small mistake can crash the whole system when you program in windows kernel mode. You can't program, test, debug your driver only in one system, I think. You need either two computers or one computer with virtual machine in it.
Jaka Simonič (8 months ago)
God bless you!
Programming LoL (8 months ago)
Thank you :D
Sur Sancho (9 months ago)
Thank you
Programming LoL (9 months ago)
Hi, thank you for liking my video.
Hadi Am (10 months ago)
I would like to thank you for your effort !
Programming LoL (10 months ago)
Hi, thank you for your support !
Melina Golez (10 months ago)
I think it would be better if you upload source to gist or pastebin and attach it under a video
Programming LoL (10 months ago)
Hi, I'm really sorry that I have write all codes in these videos in almost one project. I have lost most of code in this two series. I have showed the complete code in all videos. So it could take you some time to write your code as you watch my video. If possible, I might write all the code of these projects in my blog or website in the future. Sorry about that.
Melina Golez (10 months ago)
Wow, I start with driver programming series and it was little hard for me :) I did not knew about this playlist, thank you Langester
Programming LoL (10 months ago)
Hi, I really appreciate your suggestions. I think I should make some changes. I will make a video talking about this. I hope you guys give me more advice. Thank you!
stefan w (11 months ago)
Thank you showing the process of start debugging an own written driver.
Programming LoL (11 months ago)
Thank you :)
İsmail Kocacan (11 months ago)
Langester y Thanks for videos. You're great man.
Programming LoL (11 months ago)
Thank you so much for your support :-)
Why dont you need to write unreferencedparameter() for both driverobject and registerpath ?
Programming LoL (1 year ago)
Thank you for your question. I recommend people to include this macro in their code. Because I lower the warning level of the project in this video, I don't need to include it.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.