wdk

After installing WDK VC++ is broken

♀尐吖头ヾ 提交于 2019-12-12 21:06:05
问题 Installed the WDK from: https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk Afterwords I can no longer compile any VC++ project. Repairing Visual Studios install doesn't fix the issue. System: Windows 10, x64, Visual Studio 2017 Uninstalling all WDK (Windows Driver Kit) stuff seems to fix the problem but means I can't compile libs that depend on it. 回答1: The error list gave me a bit more of a hint on how to solve this. After installing the Spectre-mitigated libraries I

Including a Windows DDK Header

北慕城南 提交于 2019-12-12 05:46:34
问题 I am writing a user-space Win32 application. However, as part of this application I need to make some DeviceIo calls to the Windows 1394 stack. The header file which contains the prototypes for these DeviceIo calls is included as part of the Windows DDK at: C:\WinDDK\7600.16385.1\inc\api\ntdd1394.h (Although the header claims to be "Kernel mode only" the prototypes are for user-space IOCTLs.) I am wondering what the best way to include this file in my application is. It would be poor practice

Visual Studio 2015 WDK Not Working

落爺英雄遲暮 提交于 2019-12-12 04:24:42
问题 I installed yesterday the WDK 10 for my visual studio 2015 enterprise. Today I tried to make a project, but first of all it couldn't find the include directories, so I manually added it (C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\km) After this visual studio's intelli sense prompted me that there are too many errors for even to be displayed, around 2200. Something fucked up the headers really bad, how do I fix this? 回答1: WDK has its own compiler. See readme and examples. You

Detecting Windows 10 OS Build minor version

不羁岁月 提交于 2019-12-12 00:59:41
问题 I've created a Bluetooth low-energy library, that due to an issue with Windows 10 Version 1709, only works for OS Build 16299.125 and above (fixed in the KB4054517 update). For earlier versions, it causes to BLE device to misbehave and give false connection indications. Thus, I wish to check for the existence of this update on the client machine, and prevent the library from running if the version is too low. I've followed this SO answer, and used RtlGetVersion() to get the OS version.

Preinstalling Driver on Windows 8.1 Fails

 ̄綄美尐妖づ 提交于 2019-12-11 22:21:56
问题 We have a few driver packages that we pre-install in the driver store on Windows with SetupCopyOEMInf, following Microsoft's suggested procedures. This process has worked properly for years; no problems on XP, Vista, 7, and even 8. While evaulating Windows 8.1 RTM, we found that our drivers were no longer pre-installing. Checking the setupapi.dev.log, I found: !!! sto: Failed to query boot critical status of device class. Error = 0x00000002 and later: !!! idb: Failed to query inbox status of

Windows update 1903 causing file system driver to crash

浪尽此生 提交于 2019-12-11 17:25:40
问题 I have a serious problem with a windows file system KMDF driver. the problem occurred after Windows 10 ver 1903 update (may latest update). the driver was running smoothly before the update at any giving windows 10 versions. When the driver start running the system CARSH (Blue Screen) with "WDF_VIOLATION" Error. I opened the system dump file with the "Visual Studio windbg" tool, and i found this Error log: WDF_VIOLATION (10d) The Kernel-Mode Driver Framework was notified that Windows detected

How to turn wireless radio on/off in Windows? [closed]

徘徊边缘 提交于 2019-12-11 13:28:42
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I'm looking for an API to programmatically toggle a wireless radio on and off in Windows, just like the following Windows 10 UI element does: Need to toggle on/off Wi-Fi, Bluetooth, or mobile broadband For Windows 7, 8 and 10 This is NOT a phone C#/.NET4.5 would be ideal, but C++

Error using Windows Driver Kit DriverPackagePreinstall

与世无争的帅哥 提交于 2019-12-11 12:28:35
问题 I am trying to preinstall an .inf driver after my windows program loads and was using this question as an example. I am writing in VB.Net while the original question was done in C# so it might be something I lost in translation but here's what I have: Public Shared Function PreInstall(ByVal fileName As String, Optional ByVal useDefaultLocation As Boolean = True) As Boolean Try Dim file As String = IIf(useDefaultLocation, DriverLocation(fileName), fileName) Dim result As Int32 =

Raw ethernet broadcasting

做~自己de王妃 提交于 2019-12-11 12:12:08
问题 I downloaded WinDDK and am using ndisprot 5x to broadcast raw ethernet packets from my user app, specifying destination MAC all 0xff's, on large and repetitive data sets it doesn't seem to be very productive. What currently works great is a loopback - specifying destination and source MAC's as my own I get needed speed, but the packet never leaves my network card. Maybe I am missing some ndis driver options and wait for a broadcast to complete using this sample MS driver? All I want is the

Error while installing Windows sample port monitor localmon

喜你入骨 提交于 2019-12-11 11:54:56
问题 I am trying to install windows sample port monitor(localmon) provided in WDK. But I keep getting error while installing it: An error occurred while installing port monitor 'DDK sample port monitor'. Please contact manufacturer for assistance. I am using following instructions to install it:- Open 'Devices and printers' folder. Right click on my targeted printer and choose 'printer properties'. Click the 'Ports' tab, and then click the 'Add Port...' button. On the Printer Ports dialog, click