WinUSB template is missing - c++

I want to experiment with usb drivers on c++. I'm using visual studio express 2013 and I could not find WinUSB template. I have seen this guide. However it is for visual studio ultimate/pro 2012. Can anyone help me?
Thanks in advance!

According to this page
For building Windows 10 driver samples, Visual Studio Community 2015 works with WDK 10 to build samples from the samples gallery. Visual Studio Community 2015 is available free.
This contradicts some other pages (e.g. this one) which say you need Visual Studio Professional or Ultimate. But it is wrong - I just downloaded VS 2015 Community, and the Windows Driver Kit, and it installed fine and has a WinUSB sample.

Related

Migrating a solution from visual studio 2008 to visual studio 2015

I had a problem while migrating a solution from visual studio 2008 to visual studio 2015, in my solution using DirectX June 2010, but as far as I know DirectX is integrated into the Windows SDK, which should lead to a definition again. Does anyone have an idea to solve this problem of mine. Thanks.

How can I set up Visual Studio 2017 to develop drivers?

According to this forum, https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-wdk-on-visual-studio-2017-community/fdbd2b44-e57a-4849-903d-04001205a764
Windows Driver Kit is not currently supported by visual studio 2017.
I tried installing the Windows Driver Kit, but the test driver projects, such as this one, fail to build
https://github.com/Microsoft/Windows-driver-samples/tree/master/serial/VirtualSerial
I get this error when building:
Error MSB8020 The build tools for WindowsUserModeDriver10.0 (Platform Toolset = 'WindowsUserModeDriver10.0') cannot be found. To build using the WindowsUserModeDriver10.0 build tools, please install WindowsUserModeDriver10.0 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
I already tried retargeting the Solution to the two options I have: 10.0.17134.0 and 8.1, but the same error keeps coming up.
What do I need to do to build this sample driver? Do I need to install VS2015? VS2017 community edition? Why isn't this WDK supported by the Visual Studio 2017 professional version?
Thanks,
Visual Studio 2017 definitely supports kernel-mode device driver development; there's no doubt about that because I've been using VS17 for it for many, many months.
Use the latest version of Windows Driver Kit (WDK) which can be downloaded and installed from MSDN: https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
Furthermore, you can always use the Enterprise WDK and then you can simply build using that if you wanted to from command-line. (Also can be found on page linked-to above)
Download the correct WDK installer for your edition of Visual Studio 2017:
WDK for Windows 10, version 1809 for Visual Studio Community 2017
WDK for Windows 10, version 1803 for Visual Studio Professional 2017
WDK for Windows 10, version 1709 for Visual Studio Enterprise 2017
Visit https://learn.microsoft.com/en-us/windows-hardware/drivers/other-wdk-downloads for more information.
Not exactly a solution, but Windows 8.1 WDK works with Visual Studio 2017 Enterprise,
Download it from here, just need to retarget the project to 8.1
https://www.microsoft.com/en-us/download/confirmation.aspx?id=42273
In addition, I needed to get VS2015 C++ Build Tool to fix a missing Microsoft.cpp.props error
http://download.microsoft.com/download/5/F/7/5F7ACAEB-8363-451F-9425-68A90F98B238/visualcppbuildtools_full.exe
Developing drivers to windows is quite interesting one will be exposed to advanced Operating System Concepts.The set up for the environment will be IDE
IDE - Visual Studio (https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=16)
Compilers (WDK)
Debugger (WDK)
WDK contains both(https://go.microsoft.com/fwlink/?linkid=2085767). Latest Visual Studio(VS2019) will come along with the latest WDK(10, 1903 as of now).
Sometimes plugins might not work properly i.e integration issues between Visual Studio and WDk.
By going to the location "C:\Program Files (x86)\Windows Kits\10\Vsix\VS2019" and run VSIX installer.
Now in a new project, driver related templates are available.

Microsoft Visual Studio 2015 doesn't has Windows Driver option?

I tried to write a Universal Windows driver (UMDF 2) based on a template follow the intrustions here
.
The problem is I can't see Windows Driver option in my VS 2015.
Image
I tried to uninstall and re-install my WDK 10 then the problem is fixed.

Is it possible to apply fixes on Visual C++ Build Tools 2015 Update 3

Visual Studio 2015u3 is serviced by cumulative updates with KB3165756, which contains, among other things, fixes to the C++ compiler and libraries.
However KB3165756 refuses to do anything on a computer where Visual C++ Build Tools 2015 Update 3 is installed. It really wants one of VS Pro, Enterprise, Community or Express.
Are there special patches for Visual C++ Build Tools, or is it not updated at all and so it is actually a better idea to switch to Visual Studio Express 2015 for Desktop, in order to be able to receive patches?
Here is the answer I got on MSDN Visual Studio Development > Visual Studio Setup and Installation forum:
However KB3165756 refuses to do anything on a computer where Visual C++ Build Tools 2015 Update 3 is installed. It really wants one of VS Pro, Enterprise, Community or Express.
It is reasonable, check this: https://msdn.microsoft.com/en-us/library/mt752379.aspx and it describes this update is applies to
Visual Studio Professional 2015
Visual Studio Enterprise 2015
Visual Studio Community 2015
Visual Studio Express 2015 for Web
Visual Studio Express 2015 for Desktop
Visual Studio Express 2015 for Windows 10
I have researched around and it looks like there is no special update for the Visual C++ Build Tools 2015, and refer to this blog: https://blogs.msdn.microsoft.com/vcblog/2015/11/02/announcing-visual-c-build-tools-2015-standalone-c-tools-for-build-environments/
The latest release of the Visual C++ Build Tools 2015 is here: Download Visual C++ Build Tools 2015
If you still want to install, it looks like you need a VS 2015 RTM update version on your computer. Since the VS community 2015 with update 2 and Visual Studio Express version are free and you can think about it.
Best regards,
Sara

Why can't I find the DirectX template?

I'm currently using Visual Studio 2013 Express for Windows desktop, but I can't really find the DirectX template, FILE -> New project -> Visual C++ , but there's neither a DirectX template nor a Windows app folder-sector. I've searched this in Google but no one seem to have posted about it. Where is the template?
The "DirectX" templates provided by Visual Studio are for Windows Store, Windows phone, or Universal apps. They are only provided in the VS 2013 Express for Windows, VS 2013 Pro+, or VS 2013 Community edition.
There are only two built-in Visual C++ Win32 desktop templates in Visual Studio:
Win32 Console Application
Win32 project
As others have noted, if you want to build for Windows Store, Windows phone, or Universal apps you need (a) Windows 8.1 and (b) some other edition of VS 2013.
If you are writing a Win32 desktop application and/or have Windows 7, consider downloading and installing this template: Direct3D Win32 Game Visual Studio template
Also, I highly recommend using VS 2013 Community rather than VS 2013 Express for Windows Desktop if you fit the quite generous license requirements--if not, buy VS 2013 Pro.
You need to download the correct version of Visual Studio. The desktop version doesn't have DirectX for Windows store apps. You need to download Visual Studio 2013 Express For Windows, scroll down to Express 2013 for Windows or direct link