There are three steps: Creating a Linux driver, installing it, and using it. NDISwrapper is composed of two main parts, a command-line tool used at installation time and a Windows subsystem used when an application calls the Wi-Fi subsystem.
As the outcome of an NDISwrapper installation should be some sort of Linux driver to be able to work with Linux applications, the first action the user does is to "compile" a couple or more of Windows files, and the NDISwrapper's version of Windows DDK into a Linux Kernel Module. This is done with a tool named "ndiswrapper". The resultant Linux driver is then installed (often manually) in the OS. A Linux application can then send request to this Linux driver that automatically does the needed adaptations to call its—now—internal Windows driver and DDK.
To achieve this "compilation" NDISwrapper requires at least the ".inf" and the ".sys" files invariably supplied as parts of the Windows driver. For example, if the driver is called "mydriver", with the files mydriver.inf and mydriver.sys and vendorid:productid 0000:0000, then NDISwrapper installs the driver to /etc/ndiswrapper/mydriver/. This directory contains three files:
There are graphical frontends to NDISwrapper, such as Ndisgtk and NdisConfig, which allow NDISwrapper to be installed using a graphical user interface rather than console commands.
NDISwrapper enables a Unix-like system to use Windows drivers of type NDIS and WIFI. It was useful at a time where there were no Linux Wi-Fi drivers for common Wi-Fi cards. It is composed of:
Ndiswrapper uses Windows INF files.1
When a Linux application calls a device which is registered on Linux as an NDISwrapper device, the NDISwrapper determines which Windows driver is targeted. It then converts the Linux query into Windows parlance, it calls the Windows driver, waits for the result and translates it into Linux parlance then sends the result back to the Linux application. It's possible from a Linux driver (NDISwrapper is a Linux driver) to call a Windows driver because they both execute in the same address space (the same as the Linux kernel). If the Windows driver is composed of layered drivers (for example one for Ethernet above one for USB) it's the upper layer driver which is called, and this upper layer will create new calls (IRP in Windows parlance) by calling the "mini ntoskrnl". So the "mini ntoskrnl" must know there are other drivers, it must have registered them in its internal database a priori by reading the Windows ".inf" files.
"Which linux distro works OUT OF THE BOX with D-link usb wifi DWL-g122 rev.c1 (Rt73)??". http://www.linuxquestions.org/questions/linux-hardware-18/which-linux-distro-works-out-of-the-box-with-d-link-usb-wifi-dwl-g122-rev-c1-rt73-590849/ ↩
Bill Paul (January 24, 2004). "Project Evil: The Evil Continues". freebsd-current (Mailing list). Archived from the original on July 2, 2017. Retrieved September 9, 2014. https://web.archive.org/web/20170702154132/https://lists.freebsd.org/pipermail/freebsd-current/2004-January/019489.html ↩
"sys/dev/netif/ndis/". Super User's BSD Cross Reference. DragonFly BSD. 2018-12-08. Retrieved 2019-03-04. http://BXR.SU/DragonFly/sys/dev/netif/ndis ↩
NetBSD-SoC: Porting FreeBSD's NDIS Network Driver to NetBSD http://netbsd-soc.sourceforge.net/projects/ndis/ ↩
"Sourceforge.net: FAQ - ndiswrapper". ndiswrapper.sourceforge.net. 2010-01-20. Retrieved 2011-08-05. http://sourceforge.net/apps/mediawiki/ndiswrapper/index.php?title=FAQ#Does_ndiswrapper_work_on_PowerPC_architecture.3F ↩
"SourceForge.net: ndiswrapper FAQ". Ndiswrapper.sourceforge.net. 2010-01-20. Retrieved 2024-06-28. https://ndiswrapper.sourceforge.net/wiki/index.php/FAQ#Link_quality.2Fstatistics ↩
"SourceForge.net: ndisv6 code branch". Ndiswrapper.sourceforge.net. 2013-11-01. Retrieved 2013-11-01. http://sourceforge.net/p/ndiswrapper/code/HEAD/tree/branches/ndisv6/ ↩
"SourceForge.net: ndiswrapper feature request". Ndiswrapper.sourceforge.net. 2009-04-12. Retrieved 2013-07-28. http://sourceforge.net/p/ndiswrapper/feature-requests/32/ ↩
"Ndiswrapper / Discussion / Help: Couldn't load driver netr7364". http://sourceforge.net/projects/ndiswrapper/forums/forum/323168/topic/3755985 ↩