wdk

Add or extend file system support under windows

可紊 提交于 2019-12-01 11:02:27
问题 I've seen that Mac Drive 7 adds HFS+ and HFS support to windows for both hard-drives and CDs, which includes handling problems like the mac partition format. Clearly that must mean that file system support in windows is extensible somehow, even if it is slow. So where could someone start to write a simple (or not) file system driver for windows? I'm having a lot of trouble googling for this because these are commonly used words. 回答1: You need the Windows Driver Kit (WDK). The Installable File

FileSystem MiniFilter Driver compiled with WDK 8.0 not showing DbgPrint output (DbgView/Win7 32 bit)

末鹿安然 提交于 2019-12-01 09:24:11
问题 I wrote and compiled a minifilter driver using WDK 7.0 build utility for Windows 7 32 bit. Then i installed it on a Windows 7 (32 bit) machine running on VMWare using OSR's driver loader utility. When i ran DbgView, i could see the DbgPrint output accurately. Then i compiled that very same driver using WDK 8.0 integrated in Microsoft Visual Studio Pro 2012 for Windows 7 (32 bit). That created 3 files as a result, a sys, cat and inf file. I installed the Driver on a Windows 7(32 bit) machine

error LNK2001: unresolved external symbol _fltused in wdk

坚强是说给别人听的谎言 提交于 2019-12-01 07:41:40
I am trying to define a double data type variable in a C code which is going to be used in the Windows kernel. The code compiles but gives error while linking. I tried using libcntpr.lib in the source file and also defining __fltused variable in the code but to no avail. I'll really appreciate if someone can help me on how to use this. Don't know if still applicable to current WDK but Walter Oney demotivates the use of floating point stuff in drivers here . The problem is worse than just finding the right library, unfortunately. The C compiler's floating point support assumes that it will be

error LNK2001: unresolved external symbol _fltused in wdk

有些话、适合烂在心里 提交于 2019-12-01 05:10:44
问题 I am trying to define a double data type variable in a C code which is going to be used in the Windows kernel. The code compiles but gives error while linking. I tried using libcntpr.lib in the source file and also defining __fltused variable in the code but to no avail. I'll really appreciate if someone can help me on how to use this. 回答1: Don't know if still applicable to current WDK but Walter Oney demotivates the use of floating point stuff in drivers here. The problem is worse than just

My SetupDiEnumDeviceInterfaces is not working

匆匆过客 提交于 2019-11-30 20:32:33
Can someone see if I am doing this right please: //DeviceManager.h #include <windows.h> //#include <hidsdi.h> #include <setupapi.h> #include <iostream> #include <cfgmgr32.h> #include <tchar.h> #include <devpkey.h> extern "C"{ #include <hidsdi.h> } //#pragma comment (lib, "setupapi.lib") class DeviceManager { public: DeviceManager(); ~DeviceManager(); void ListAllDevices(); void GetDevice(std::string vid, std::string pid); HANDLE PSMove; byte reportBuffer; private: HDEVINFO deviceInfoSet; //A list of all the devices SP_DEVINFO_DATA deviceInfoData; //A device from deviceInfoSet SP_DEVICE

how can i build a driver using visual studio? [closed]

☆樱花仙子☆ 提交于 2019-11-30 13:50:02
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . does anyone have an article how to do this ? 回答1: Since you gave no exact version of Visual Studio, let me give you the options I am aware of. Visual Studio 2012, 2013 and 2015 Respective contemporary DDK/WDK versions: WDKs 8, 8.1 and 10 (as of this writing). With the WDK for Windows 8, the WDK team at Microsoft

Using boost in WDK build environment for applications?

为君一笑 提交于 2019-11-30 13:26:45
I am using the Windows Driver Kit (WinDDK 6001.18001) to build my userspace application rather than Visual Studio 2005. I am taking this approach because we also have to build driver components, so I'd prefer to have a single build environment to build everything. Microsoft itself uses this approach for several products. This was working fine until I started using Boost 1.38.0. I'm not using C++ in the kernel mode components, just the userspace applications. In C++ code, it's natural to use the boost libraries. Unfortunately, the WDK doesn't agree. The first error I noticed is that "#include

DDK “Hello World”

*爱你&永不变心* 提交于 2019-11-30 05:29:56
How does one begin writing drivers for Windows? Is there some sort of official DDK "Hello World" example out there? While I'm sure it will be way above my head at first, eventually I would like to create a simple MIDI driver, much like the Maple Virtual MIDI Cable where the MIDI messages come from a user application rather than a physical device. (The trouble with using the off-the-shelf MIDI loopback drivers is that the existence of an input and output end is often confusing for the user. My application generates MIDI output that gets sent to the MIDI input of other programs, so if I could

My SetupDiEnumDeviceInterfaces is not working

☆樱花仙子☆ 提交于 2019-11-30 05:28:55
问题 Can someone see if I am doing this right please: //DeviceManager.h #include <windows.h> //#include <hidsdi.h> #include <setupapi.h> #include <iostream> #include <cfgmgr32.h> #include <tchar.h> #include <devpkey.h> extern "C"{ #include <hidsdi.h> } //#pragma comment (lib, "setupapi.lib") class DeviceManager { public: DeviceManager(); ~DeviceManager(); void ListAllDevices(); void GetDevice(std::string vid, std::string pid); HANDLE PSMove; byte reportBuffer; private: HDEVINFO deviceInfoSet; //A

Programmatically differentiating between USB Floppy Drive and USB Flash Drive in Windows

那年仲夏 提交于 2019-11-29 10:32:21
On Windows (XP-7), is there a reliable way of programatically differentiating between USB floppy drives and USB flash drives in C++? At the moment, I'm using WMI to get updates when new Win32_LogicalDisk instances are detected, and then using the DriveType attribute of the LogicalDisk object to figure out a basic type. This works quite well, except that floppy drives and USB flash drives are both of DriveType DRIVE_REMOVABLE , so to differentiate between those (floppy vs. flash), I'm using the IOCTL_STORAGE_GET_HOTPLUG_INFO interface to figure out if the device is hotpluggable, and was working