wdk

Using boost in WDK build environment for applications?

别说谁变了你拦得住时间么 提交于 2019-12-18 15:53:43
问题 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

DDK “Hello World”

∥☆過路亽.° 提交于 2019-12-18 11:58:18
问题 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

Why is SetupDiGetDeviceProperty function not working?

半城伤御伤魂 提交于 2019-12-14 03:17:43
问题 I'm trying to use the SetupDiGetDeviceProperty, but apparently it couldn't find such functions within the setupapi.h. I have looked at the documentation and included all the header and library files, but it's just not letting me use the function... What is going? What is it that I'm doing wrong? Heres the code: //Mainframe.cpp file #include"DeviceManager.h" int main() { int iQuit; DeviceManager deviceManager; deviceManager.ListAllDevices(); std::cin >> iQuit; return 0; } //DeviceManager.h

Bluetooth LE device stopped connecting in Windows 10 v1709

旧时模样 提交于 2019-12-14 02:36:03
问题 I've created a WDK library for interacting with a Bluetooth LE device (closly following the example here). The library worked well on a previous version of Windows - I was able to connect to my device, write characteristics and get asynchronous notifications. Once I updated to Windows to version 1709 (build 16299.98), the library stopped working: pair the device via Settings-->Devices-->Bluetooth the BLE device blinks a led as an indication of Advertising Run my application which uses

Driver Development DbgengRemoteCommand is missing

大憨熊 提交于 2019-12-14 02:18:01
问题 I have 2 machines with win 10 Enterprise(clean install) and visual studio 2015 with WDK 10. I have made one of the machine the host and one the target. By following the msdn link. I followed the instructions from here and also tried the next example here Both examples gave me the same error "DbgengRemoteCommand" is missing. I can see the target computer from Drive Install > Deployment. 回答1: I have the same problem when following the UMDF, but have no problem following the KMDF. So I changed

How can I compile Programmer Dvorak?

泄露秘密 提交于 2019-12-13 11:55:56
问题 I'm trying to compile the open source project Programmer Dvorak. The problem is that it's a bit old and doesn't build with the current versions of the build tools. You can see the full source code with modifications I made online at my project's Google Code page. Revision 2 is the unmodified source files from the original project. Revision 3 is where I made all the significant changes. You can see a diff between the two revisions here. The only obvious problems that are left are a few LINK

What is the Microsoft name for WinDDK version 6001.18001?

混江龙づ霸主 提交于 2019-12-13 10:24:27
问题 I am trying to compile an old piece of code from 2009. In the compiler instructions the developer used Visual Studio 2008, .Net 2.0, and WinDDK: Microsoft Windows Driver Kit I need to know about WinDDK version 6001.18001 from the 2009 period. What was the official Microsoft name for 6001.18001 version of WinDDK, and can you still download this from MSDN or TechNET? (i.e.) WinDDK 7.1 is 7600.16385.1 回答1: It looks like the WinDDK version 6001.18001 was named Windows Server 2008 WDK SP1. WDK

Print Job Accepting and routing Software

北城余情 提交于 2019-12-13 07:09:35
问题 I want to create a software which can accept Print Jobs from other computers, and then route those print jobs to PCs on LAN with printers attached. How it's going to happen -> 1- When that software called "Virtual Printer" is installed on a computer "X", Windows should think that it is a print driver/attached printer to that computer. 2- Then administrator of that PC goes to "Devices and Printers" in windows and select the "Virtual Printer", right click and view properties and select the

Can a windows Print Processor force a spool data type

☆樱花仙子☆ 提交于 2019-12-13 06:03:49
问题 I'm developing a Windows Print Processor using the WDK 7.1 sample. I'd like to log the actual data being printed and would prefer it to be done in a consistent format (EMF) rather than the RAW format of the underlying printer. Would modifying EnumPrintProcessorDatatypes to only return the format I want (i.e EMF) force application/GDI layer the printer to use that type and thereby enabling me to log it in the same format always? 回答1: The important stuff here is: 1. make sure direct printing is

Why is there no WDM kernel-mode driver template in Windows Driver Kit?

梦想与她 提交于 2019-12-13 03:33:07
问题 I came across kernel-mode drivers with very little experience. Here's what I am trying to do: Have a user-mode application that loads the driver. Have the user-mode application write to it, in order to send it an instruction. Have the driver send the RDMSR instruction to the Intel chip. Return the results back to the user-mode application. I've read this article that describes the different ways in which you can accomplish this behavior (Buffered I/O, Direct I/O, or Neither). My problem is