Click here to Skip to main content
15,891,905 members
Everything / Driver

Driver

driver

Great Reads

by Nagaraj Krishnamurthy
This article goes into the details of how to write a Linux Device Driver for a pseudo Ethernet device simulated on a Qemu platform.
by Alexander Eremeev
The Windows kernel-hacking library and development framework written on C++17
by udhaya2code
While using Microsoft Text Driver to read CSV data to DataSet in C# in your 64 bit machine
by grilialex
COFILOS SD Card Driver

Latest Articles

by honey the codewitch
Explore the inner workings of a highly capable IoT display driver for the ESP32
by Apriorit Inc, Artem K.
A clear overview on how you can establish communication between a device and its driver
by Apriorit Inc, Sergii Kusii
And its modules during runtime
by Apriorit Inc, ruksovdev
A detailed description of an FPGA-specific framework called ISE Design Suite, and the main steps you need to take in order to create a VGA driver using FPGA

All Articles

Sort by Updated

Driver 

24 Feb 2020 by abbasshaikh
Hi, I am new to windows driver development. My requirement is as user click on print file (pdf etc) option a another popup should displayed with some input textboxes. As user click submit button on popup. It prepend the popup textbox (user...
2 Jun 2011 by adrian_134
Hello!I read a Rootkits: Subverting the Windows Kerneland and i have one question how can i create function in driver who be similar to the function in c++ system? I want have result this function in buffer. Sample:char reslut[256];command("dir c:\", result);In reslut i want have...
2 Jan 2015 by Afzaal Ahmad Zeeshan
This is a Question and Answer section. So, most specially there won't be anyone interested in giving you advises. What you should do, is to ask your fellow developers in your group (if any) and ask them for their reviews on these classes. Furthermore you should also read the Remarks section...
27 Mar 2011 by ahmed 88
hi all.first sorry for my bad English .second i am new in driver programming and i want to ask about can i start exe program [user mode application ] from kernel mode and it will run in user mode ?all i want just to do some thing from kernel mode just like that when i press double click...
30 Mar 2011 by ahmed 88
Please, i need help.My graduation project is an antivirus & my part is related to File System Filter Driver.We decided that to scan the file as soon as doubled click on it or single click on it.My question is when i doubled click on the file or just make refresh in the directory contains...
3 Apr 2011 by ahmed 88
Hi all,i used File System Filter driver example which belong's to "Sergey Podobry"and i want to send some data from driver to my application using "DeviceIoControl".Actually i got handle to the device object in right way ,but when i call "DeviceIoControl" i got blue screen .Here what i...
12 May 2011 by Albert Holguin
The DDK expects some environment variables to be set, see this:http://mcdermottcybersecurity.com/articles/64-bit-device-driver-development[^]Now, you can use the building tools that the DDK uses which already set these variables for you or you can just set them yourself by whatever means...
19 May 2011 by Albert Holguin
Check your environment variables and see if there's anything there pointing to that old directory. Doesn't make sense that GetSystemDirectory() would give you Windows.Old.
1 Jul 2012 by Albert Holguin
If you're working at a driver level, why not do a C-style fopen() and see if the file exists in that manner? If it doesn't, the fopen() will fail and return NULL.
1 Nov 2018 by Alexander Eremeev
The Windows kernel-hacking library and development framework written on C++17
17 Sep 2013 by Ali kianinejad
hi alli want to write a file system filter driver to manage and change behavior of some file but i don't know how can i change file attribute and file permissionwhich function can set file attribute?please help me
21 Sep 2013 by Ali kianinejad
hi allhow can i set File Permission with my mini filter driverand how can i set ACE and SIDi want to change file attribute and permission with itbut i can't found any exampleplease give me an example
10 Nov 2013 by Ali kianinejad
Hi AllI want to write a driver that it can hide processbut i can't use sstd hooki cant' find any thing in googleplease give me an exampleRegards
8 Feb 2014 by Ali kianinejad
I have Made a Process Unkillable by SSDT Hooking, But Now I need To implement it by IRP. Is there any One tell me how can i implement it with IRP? Thanks so Much
22 Apr 2014 by Ali kianinejad
hi i want to write a function in kernel mode driver that get a process and print which function call by that processplease give some link or sample code i can't find any useful thing in goolge
31 Mar 2011 by alinanstoica
Hy! Class for direct print commands:Public Class DATECS Const strANS As String = "______,_,__;" Private LDN As Short 'Logical Device Number Private strLine As String Private BillCtr As Integer Dim noNbDec As New System.Globalization.NumberFormatInfo ...
31 Mar 2011 by alinanstoica
Hi!We're welcome! I really had a hard time to work this out also..I figured out why discount wasn't working. So the Discount function works like this (I've tested it): 'adding products'S,1,______,_,__;ProductName;18.00;1;1;4;1;0;0;'subtotal 'T,1,______,_,__,4;;;;;'Discount...
11 Oct 2021 by alsecc
Hi, I'm developing a kernel driver for Windows and recently MS deprecated the procedure to sign drivers, see...
29 Jan 2012 by amertarekt
to know the mean of DesiredAccess values go there http://www.osronline.com/ddkx/kmarch/k111_9dte.htm[^]share access:is means what to shared between threads on the programFILE_SHARE_READ : all threads can read this fileFILE_SHARE_WRITE : all threads can write on this...
20 Dec 2014 by AminMhmdi
create PsSetCreateProcessNotifyRoutine in DriverEntry and use ZwQueryInformationProcess to get information about process
29 Dec 2014 by AminMhmdi
did you try this?HANDLE fileHandle, sectionHandle, processHandle;fileHandle = CreateFile(L"C:\\Windows\\notepad.exe", ...);NtCreateSection(&sectionHandle, SECTION_ALL_ACCESS, ...);NtCreateProcess(&processHandle, PROCESS_ALL_ACCESS, NULL,...
13 Jun 2013 by Amit KD
HelloI'm using VS 2012 and VM on same machine.Host Win7_x64 and VM on same machine is again Win7_x64Debug using VS 2012, i.e using VS and pipe serial connection on VM.Everything is proper. I'm able to load driver on VM using VS's in built process to attach.I've build, link and...
14 Jun 2013 by Amit KD
Hello,I'm debugging KmdfSmall driver installed on target VM by using VS2012 which is on Host.But, 'Debugger Immediate Window' in VS 2012 on host not printing any msg. Here I'm using KdPrintEx((DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "\n KmdfSmallEvtDeviceAdd has been called\n")) as it is...
14 Jun 2013 by Amit KD
Hello,Host Win7_x64, target VM Win7_x64 both on same physical machine.Driver debugging using VS 2012 (Visual Studio Integrated Windows Debugger.)Able to provisioning between Host and target using VS 2012 and WDK 8.0.KmdfSmall driver given on msdn is properly able to install on...
15 Jun 2013 by Amit KD
Hey Solved!,changed the value of Component Filter Mask on target machine where driver has been installed to debug.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter. Under this key, created a value with the name "IHVDRIVER" and Set the value of this...
15 Jun 2013 by Amit KD
Hello,On target, disable the driver meanwhile keep the VS into running debug mode onto host.Then restart the target, enable the driver as soon as enable the driver onto target it will jump to VS running into debug mode onto host at the already settled breakpoint. then after just press...
15 Jun 2013 by Amit KD
Hey Solved! changed the value of Component Filter Mask on target machine where driver has been installed to debug.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter. Under this key, created a value with the name "IHVDRIVER" and Set the value of this...
30 May 2016 by amitrkcian
AS my development machine & my test machine are 64bit windows system with Windows 7 operating System So to give myself a head start I compiled the ComPort project under Windows-driver-samples-master/serial/VirtualSerial2 sample code provided by Microsoft, initial it flashed an error that said as...
19 May 2023 by Andre Oosthuizen
Not my field of expertise at all, some Googling I found the following - The error is related to compiler security checks for Spectre variant 1 vulnerabilities Spectre (security vulnerability)[^]. Try the following steps(again, not my field) -...
19 Jun 2013 by Ansh David
#include #include #include #include //#include //===========================================================================struct FBDI { ULONG NextEntryOffset; ULONG FileIndex; LARGE_INTEGER CreationTime; LARGE_INTEGER...
19 Jun 2013 by Ansh David
EDIT: Errors moved to original post.
2 Sep 2012 by Apriorit Inc, Semyon Boyko
Simple driver for Linux OS that performs hiding of the selected files from the system
18 Feb 2019 by Apriorit Inc, ruksovdev
A detailed description of an FPGA-specific framework called ISE Design Suite, and the main steps you need to take in order to create a VGA driver using FPGA
1 Mar 2019 by Apriorit Inc, Sergii Kusii
4 Mar 2019 by Apriorit Inc, Artem K.
A clear overview on how you can establish communication between a device and its driver
18 Jan 2019 by Apriorit Inc
This article allows you to save valuable time
24 May 2013 by Ashok26
I have a .NET application using DB2 provider(refers to IBM.Data.DB2.dll).What do I need to install for DB2 in order to run this application.I do not want to install complete DB2 client which will for sure install data provider for .NET.
12 Jan 2013 by BaldevS
HelloI have a project and i want to know that how to add upper filter driver or lower filter driver with the help of inf file.What are the values to change in the inf file to work that driver as upper filter driver.And i want to add that driver only for USB Storage Devices.
5 Nov 2012 by Barakat S.
You should start learning how to debug your driver and do driver crashes analysis. A good place to start with: http://www.dedoimedo.com/computers/windows-bsod.html[^]. You will find many articles, technics and tools there on the Internet regarding this topic.
5 May 2011 by barneyman
The fundamental difference is the compiler used, and the size of an int - 32bits vs 64bits64bit operating systems (win7, xp64) need 64bit drivers to access devices, similarly a 32bit OS needs 32bit drivers - they generally operate in kernel space, which is why they need to be native to the...
28 Jul 2012 by bbirajdar
Google is your friend to get you started to learn the basics. Learn the basics and create toy applications to learn each of the tools, classes, structures ...or whatever the technology provides...Next step is to mimic the existing drivers ...Once you are capable of it, then you are...
24 Oct 2012 by bhasinsatish123
Ther driver model describes that there are 2 modes...user and kernel mode the kernel mode being mode privilidged from the user mode and documentattion describes the kernel mode independent form the user mode ie the two modes are independent of each other.but when us make a click or access...
4 Jun 2013 by birajendu
HI,Though TDI framework is deprecated in current version of windows, still it works pretty well till Windows 7 and in windows 8 also.In our product we have a legacy TDI filter driver. I am trying to port Ipv6 compatibility to it. I am facing the error "Error 0xC0000141: The address...
17 Jan 2014 by bling
Solution 1 works as long as the child process doesn't manipulate the console API directly.
4 Apr 2016 by bling
It looks like you are mixing access flags with other types of flags. Also, you omit FILE_SHARE_WRITE in the second ZwCreateFile.Try this:ntstatus =...
17 Nov 2015 by Boudi AlSayed
Hello, I'm trying to make a Virtual instrument in VB.NET, what I realized that playing a midi note using the default driver will result a lot of latency...(80ms)I need to switch the audio driver within the application by 1st listing all available drivers, and then adding them to combo-box, and...
30 Aug 2016 by Brady Kelly
I have a nice "Resource CD", with a setup.exe and loads of drivers and other file, but in the Linux Drivers folder there is just a URL, which lets you download a file that unzips to an .img file. Now every person in the linux world has a different idea or technique for what to do with the...
10 Mar 2012 by C++Kernel
Hello, I want to know the TDI driver, how to control the network of a single process to upload and download, I never developed overdrive, I always think that driver development is useless, I do not want to lose this salary, I hope you help me,If you know the the TDI traffic monitoring open...
29 Apr 2012 by C++Kernel
hello,everyone...
1 May 2012 by C++Kernel
Hello,everybod...
6 Jun 2011 by cariolihome
You can enable SetupAPI logging as described in Setting the Event Level for a Text Log to figure out what happened due driver setup
29 Apr 2012 by casa cargo
hi , i am working on File system Driver , in one chapter of this subject i want to access to FCB (File Control Block) Structure but i can not see this structure in my driver project programming area ( Visual DDK , in Visual Studio ) , what is this structure header or what is the way of access...
7 May 2012 by casa cargo
hi , i want a header file in my driver project , this header file is sfsd.h that is for file system driver programming header file , i searched for download this header file,but can not find it , please help me or give me a link for download this file , thanks ,
7 May 2012 by casa cargo
12 May 2012 by casa cargo
hi ,i want to add my File System Driver Information in registry in it's DriverEntry routine , please tell me one solution for this or tell me that CreateService functions can do this ? thanks ,
12 May 2012 by casa cargo
hi , i want to know how to work SFsdObtainRegistryValues() routine in my filesystem driver code , please tell me how to work this routine , thanks ,
20 Jun 2012 by casa cargo
hi , i want too use zwCreateProcess in my driver code , but this function is not define in any header file , please help me to use this function in my driver code , and create any process from m driver program , thank you ,
21 Jun 2012 by casa cargo
hi all , i want to use NtCreateProcess in my driver programming , but can not find this function in any header file , can you help me to how i can find this function header and library and use it in my code ? please please please help me , thanks ,
30 Jun 2012 by casa cargo
hi ,i want check that a file is exist or not in my driver code , like "PathFileExist()" function in user mode , but i can not find any function for this Purpose , please tell me name of function that can do this work , thanks ,
8 Jul 2012 by casa cargo
hi guys , i want to use WSK Registration Routins in my driver code project , but when i do compile my code , i receive this error (for example) : "Error 3 error LNK2019: unresolved external symbol _WskRegister@8 referenced in function "long __stdcall SocketsInit(void)" (?SocketsInit@@YGJXZ)...
8 Jul 2012 by casa cargo
hi , how to use user mode header file in kernel mode driver programming environment ? please help me , i use visualddk for driver programming ,thanks,
9 Aug 2012 by casa cargo
hi , i want to use Ntdll.lib and Ntdll.h for use of undocumented function , i download ntdll.h and ntdll.lib and Add these files to my project , but when i want to use undocumented function i see this error , for example : Quote:Error 1 error C3861: 'ZwCreateProcess': identifier not...
8 Sep 2012 by casa cargo
hi , i want to get process list in kernel mode programming, and i find ZwquerySystemInformation Function but i can not use it , it is an exportable function but i can not use it , Please get me a header and Library name that this function is it in , thanks
1 Sep 2022 by CassinianSoftware
Hello, having an issue with a V4 printer driver, and not finding what I need in the Microsoft docs. Hoping someone here can shed some light on this. I'm using VS2019 (16.11.12) with WDK 10 (10.0.19041). My task is to create a 64-bit V4...
22 Nov 2012 by cclaudio
Hello to everybody,which is the api function that i have to call to install my own driver under windows xp/7, suppose I have all files need by driver (cab, inf, ...) which is the step that I have to do to create my own program to install it?thank you!
23 Dec 2014 by cedricvictor
Dear all:I'm new one in android driver. Does anyone use renderscript inandroid driver? Thanks a lot.Best regard, Victor
24 Feb 2012 by Chandrakantt
You can directly add library FltLib.lib in your project and add Fltuser.h header file in your project. and try using it in your program. You can add this library and header file from WDK path.
15 Aug 2015 by chandrAN2&
I am very much confused of the linux memory map of a process and its internals. In general what is mentioned in books or articles is that in linux (4gb -address space),3gb address spaces is mapped to userspace for a process and 1gb is mapped to kernelspace of a process. Since virtual...
28 Jul 2011 by Chathura Sarathchandra
Hi I am a newbie to driver development and I want to write a driver or a filter driver to block and re enable usb ports. Basically my project is to block/lock certain usb storage devices, which are not registered with my user mode application. So I am looking if there is a way that I...
13 Aug 2011 by Chathura Sarathchandra
Hi everyone, I have made a minifilter driver which only attaches itself to usb devices. I want it to look for a certain file on the device as soon as it attaches. please correct me if I am wrong.so to specify the name of the specific file, you need to getthe device name first? so...
13 Jan 2015 by CHill60
This MS article should be a good starting point http://msdn.microsoft.com/en-us/library/windows/hardware/ff554690(v=vs.85).aspx[^]or this http://www.osronline.com/article.cfm?article=20[^]
6 Dec 2011 by Chris Meech
Your code suggests that EP is a pointer type, but it is not obvious from it's declaration that it is. Perhaps your code should be peb = (DWORD)EP.Peb;
7 Jul 2011 by Christian Graus
If it works in the end, then it sounds like an issue with Windows 7 in general. Try installing some other drivers, if they work right away, then you have an issue in your code. But, if that's the case, no-one can resolve the issue in your code without seeing some of it.
26 Sep 2014 by CliffRat
Can anyone show how the check for the value of Microphone Boost in Win 7 using C#? I have been looking at the Core Audio API and a wrapper DLL that was written to cover about half of it (MMDevice and EndpointVolume) and haven't been able to see the setting there. I think I need to figure out...
7 May 2011 by CO Jim
I've got an application that receives very heavy network traffic. To work properly, the NIC must have its "RX Descriptors" buffer size increased above the Windows/NIC rather conservative default. I can change it manually for each system through the Device Manager (Network Adapters -> ->...
9 May 2011 by CO Jim
Great - thank you Kurt! I'll take a look at this link and see if that will do the trick.I understand and appreciate your concern, but these boxes are actually stripped down OEM "embedded" controllers running on dedicated custom hardware integrated into a larger system. They are headless,...
5 May 2011 by CodingLover
Just looking at your title, 32bits, 64bits refers the way that computer process data. In other words it define the architecture that memory address length, handling by the processor. If you have an old CPU you may have to use 32bit support OS, but for the newer once it should be 64bits versions....
27 Jan 2019 by CPallini
It depends on very nature of the HashBuckets variable. What is it, exactly? You didn't provide any insight about. I suggest you to NOT obfuscate C code behind macros. Wtite clean C code instead of trying to mimic the C++ counterpart.
5 Dec 2012 by cschenlu
hello,I'm a windows programmer. I've recently met a problem on usb driver, sincerely hope I could get your reply. My usb driver doesn't work well with usb device. It's a webcam device. when I start this webcam, it always display white no matter what we show before it. I use bus hound to...
21 Nov 2013 by cwangersky
I don't know if you're still looking for this, but to benefit others who are in the same boat, I will say what I've found here...This also got broken in Server 2008 R2 SP1, likely for the same reason. What has happened is that apparently the dirid 66002 was somehow invalidated, so specifying...
22 Feb 2013 by Cyberwarfare
Hi,I am wanting to add WDK header files and functions in my Win32 Project in Visual Studio 2012 but i seem to find that Visual Studio gives me a Error every time i include the WDK header file , to be more specific - Ntddk.h . Does anyone have a solution to this problem....
22 Feb 2013 by Cyberwarfare
No. Let me try setting a path to the Files . I will edit it to tell if it worked or not.Thanks
9 Feb 2013 by dachazz
HiI am making a program for my mouse driver on a console in vb.net. I have the driver extracting from the program and into where it needs to go. But what i found out was that in order for the changes to take place the driver has to be disabled and then re-enabled. I found this out by going...
6 Jun 2018 by Dang Dinh Nghiem
I have developed a Printer Driver Version 3, now I want to change to Printer Driver Version 4. Can you suggest me how to change from Printer Driver Version 3 to version 4? What I have tried: I have read the Printer Driver Version 4 document(V4 Printer Driver | Microsoft Docs[^]), The document...
27 Mar 2011 by Dave Kreskowiak
You don't. Drivers run in the kernel and are not connected to the user session at all.
9 Feb 2013 by Dave Kreskowiak
I think you're wasting your time. What are you doing that is screwing up the mouse that you have to disable the driver and reenable it?Wouldn't your efforts be better used fixing the problem instead of working around it?
5 May 2017 by Dave Kreskowiak
Do you seriously think you're going to help building something that is only used for malicious purposes?
8 Apr 2019 by Dave Kreskowiak
You're not writing a single app. You're writing a driver that exposes an interface for an app to talk to it and behave like a normal joystick device driver on the other side. Another application is needed to tell the driver how to behave, such as stick positions, button push and release, ......
2 Mar 2023 by Dave Kreskowiak
You can read up on the Google Translate API here[^].
1 Jan 2012 by DaveAuld
Use the Hardware ID to determine product information
1 Aug 2012 by david pretham
Dear ALL,I need to send request and get response(802.11U implementation) to miniport driver 802.11 already existing driver in laptop or PC. How can i do can i implement NDIS intermidiate driver or WFP driver or filter driver or application that will communicatate with wlan interface??I...
15 Jan 2013 by david pretham
We want to develop windows device drivers for USB devices(dongles) with NDIS,MODEM,SERIAL interfaces.We need to create use cases where we need to develop show some application communicating with drivers.Apart from WDK and samples.where can we get the development devices for...
29 Jan 2013 by david pretham
hi,Can anybody tell me the reference for development USB modem driver for windows operating systems. I am seeing rs-232 base sample in wdk.
15 May 2012 by Deepak Joy Jose
How to handle an event raised from a kernel-level driver written in C++ from C# codeIf it was C++, I could use the following function:DWORD WINAPI WaitForSingleObject( __in HANDLE hHandle, __in DWORD dwMilliseconds);Is there an alternative for this function in C#?
4 Jun 2013 by Deepak.Kumar
Windows Device Drivers
1 May 2012 by Deka Prikarna A.
Very simple serial port monitor.
9 Nov 2012 by Deka Prikarna A.
Simple URB (USB Request Block) Monitor
2 Jan 2015 by dev_assault
himy basic question is which class i should prefer ? as both show the driver details....although i m inclined to win32pnpentity as it has ConfigManagerError code property that defines the status of the driver as in if 0 then driver is fine like that.....any help is appreciated.
13 Dec 2010 by DisneyCHZ
I wrote a virtual USB bus driver in Windows, after it enumerate the USBSTOR driver, in the usb bulk or interrupt transfer phase, the USBSTOR driver will send some IRPs with MDL pointer. It means that using direct I/O method (but strangely, the "Method" in the IRP is "Neither"). When I use the...