driver

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

Why am I getting an error before configuring a device in Visual Studio 2015?

為{幸葍}努か 提交于 2019-12-18 14:15:13
问题 I want to deploy my driver for testing. I have provisioned my target computer for testing (although this shouldn't matter because I am not even at that step yet). On my host computer I open Visual Studio and go to Driver > Test > Configure Devices and immediately an error window saying: Inappropriate request for export from part that belongs to another sharing boundary. This looks like a bug in my Visual Studio (I have just recently updated to VS Update 1). I am going to uninstall and

How to read a sector using a bio request in Linux kernel

匆匆过客 提交于 2019-12-18 11:56:06
问题 How do I create my own bio request to read a sector from the disk drive ? I am trying the following but it freezes the system. static void read_bio() { struct bio *b; struct page *p; b = bio_alloc(GFP_KERNEL, 1); if (!b) { printk(KERN_INFO "bio allocation failed\n"); } bio_init(b); b->bi_sector = 10000; b->bi_bdev = bd; /* "/dev/sda1" */ b->bi_end_io = bio_end_clone; p = alloc_page(GFP_KERNEL); if (!p) { printk(KERN_INFO "page allocation failed\n"); } bio_add_page(b, p, PAGE_SIZE, 0); b->bi

install/uninstall an .inf driver programmatically using C# .net

随声附和 提交于 2019-12-18 11:15:50
问题 I am making an application using c#.net. It contains a filesystem minifilter driver also. I want to install and uninstall this driver programmatically using c# .net. Normally i can install this using the .INF file (by right click + press install).but I want to install this programmatically. There is an SDK function InstallHinfSection() for installing the .inf driver . I am looking for a .net equivalent for this function. Regards Navaneeth 回答1: Try something like this: using System.Runtime

Change default names for USB virtual serial ports in Linux

匆匆过客 提交于 2019-12-18 09:27:19
问题 I am developing an embedded solution using C and I am working with two USB sensors. If I connect each sensor alone they take this names: Device 1 (I do not know why it takes 6 names...) /dev/ttyACM0 /dev/ttyACM1 /dev/ttyACM2 /dev/ttyACM3 /dev/ttyACM4 /dev/ttyACM5 /dev/ttyACM6 Device 2 /dev/ttyACM0 So when I start as an embedded system and both sensors are connected, the fastest one takes /dev/ACM0 but it not always the same. So, when I try to read device 2 I could be reading device 1... I

Connecting Windows Driver to Userland Service

廉价感情. 提交于 2019-12-18 04:24:20
问题 How do I communicate with a driver from the userland in Windows? (Vista if that makes a difference.) Can I, and how, communicate with the service from the driver site? I am actually not very lazy and should probably get my boss to buy me a book, but I don't know which. And guessing commands and sections from the MSDN is kinda taking a lot of nerves and time without the right terms to search for. Can someone drop me some terms to look for in the documentation? 回答1: OSR online is a good source

How to create own XP printer driver

雨燕双飞 提交于 2019-12-17 23:43:53
问题 How would I create my own XP printer driver which will do the following: print to file (probably XPS format) put this file into a password protected ZIP file email the zip file to a configured email address 回答1: What you need is not a printer driver. One named it Print Monitor . It is a DLL, which will be loaded in Spooler.exe process. The DLL gives Spooler at the initialisation phase a logical names of ports like LPT1:, FILE:, SPSPort: etc. The optput prepared with a printer driver must be

Ubuntu 14.04 how to install cuda 6.5 without installing nvidia driver

喜夏-厌秋 提交于 2019-12-17 19:24:07
问题 I am working on workstation with CPU core I7 4790 and two GPUs GTX 760 4 GB ram/1152 core the system's memory is 16 GB RAM I have Ubuntu 14.04.1 LTS after many tries and reinstalling Ubuntu many times finally i have correctly installed nvidia driver 340.46 using 3 shell commands ppa xorg-edgers now i want to install Cuda 6.5 toolkit but in the manual they say that the cuda toolkit installer will also install nvidia Graphics driver how to prevent the installer from reinstall the graphics

How do I deploy a .inf based driver?

与世无争的帅哥 提交于 2019-12-17 15:25:49
问题 I would like to deploy a .inf based USB driver with my installer. I guess the .inf needs to be placed in %SystemRoot%\inf , but there is also a .cat (WHQL certification I guess?), and .sys files. What do I do with those? EDIT: Resolved, thanks to the helpful answers. I was able to P/Invoke the function, so I have a post-install action which runs the following code: namespace DriverPackageInstallAction { static class Program { [DllImport("DIFXApi.dll", CharSet = CharSet.Unicode)] public static

How to create a virtual printer in Windows?

点点圈 提交于 2019-12-17 10:18:00
问题 I want to create a virtual printer driver for Windows. How and where can I start properly? The WDK has some printing drivers examples that do not seems a good introductory. MSDN also doesn't seems to be very helpful for a novice. There are a lot of virtual printers for Windows out there (mostly they generate PDFs), I wonder if someone could tell my how can I do the same? Any links to the elaborating documentations are appreciated in advance. Thanks. 回答1: When I did it (which about 12 years