I have VS 2013 + WDK installed on my PC and I've been trying to create a driver for XP. So I created a new KMDF Driver project from Visual Studio menu and changed the platform toolset to XP:
Basically I just tried the most basic template:
#include <ntddk.h>
NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{
DbgPrint("Hello World\n");
return STATUS_SUCCESS;
}
However, when I change it I'm getting an error:
C1083: Cannot open include file: 'ntddk.h': No such file or directory
Can anyone tell me what I'm doing wrong? Or at least how I can compile a driver to support Windows XP?
Thanks a lot.