Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: inheritance question Pin
Aescleal23-Jul-10 4:13
Aescleal23-Jul-10 4:13 
GeneralRe: inheritance question Pin
Niklas L23-Jul-10 11:36
Niklas L23-Jul-10 11:36 
GeneralRe: inheritance question Pin
Aescleal23-Jul-10 19:36
Aescleal23-Jul-10 19:36 
Questionhow to play audio and video Pin
MKC00222-Jul-10 3:11
MKC00222-Jul-10 3:11 
AnswerRe: how to play audio and video Pin
Cool_Dev22-Jul-10 3:19
Cool_Dev22-Jul-10 3:19 
GeneralRe: how to play audio and video Pin
MKC00222-Jul-10 23:18
MKC00222-Jul-10 23:18 
GeneralRe: how to play audio and video Pin
Cool_Dev3-Aug-10 2:24
Cool_Dev3-Aug-10 2:24 
QuestionMaking a driver WITHOUT wdf [Solved myself!] Pin
Iain Clarke, Warrior Programmer22-Jul-10 2:51
Iain Clarke, Warrior Programmer22-Jul-10 2:51 
Edit: Solved myself, after a flash of inspiration!
Just removed the "KMDF_VERSION_MAJOR=1" line from SOURCE file.
Sigh...

-------------------

Good afternoon all.

I'm trying to make a driver to run on XP. I've trawled the web, and ended up with the following ultra minimal code:
#include <ntddk.h>

NTSTATUS driverCleanupFunction (IN PDRIVER_OBJECT pDriverObject);


NTSTATUS DriverEntry (IN PDRIVER_OBJECT pDriverObject, IN PUNICODE_STRING strRegistryPath)
{
	strRegistryPath = strRegistryPath;
	pDriverObject->DriverUnload = driverCleanupFunction;
	DbgPrint ("Iain: Driver starting\n");
	return STATUS_SUCCESS;
}

NTSTATUS driverCleanupFunction (IN PDRIVER_OBJECT pDriverObject)
{
	pDriverObject = pDriverObject;
	DbgPrint ("Iain: Driver stopping\n");
	return STATUS_SUCCESS;
}


As you can see it doesn't do a whole bunch. I do plan on adding some functionality!

But I can't run it on my XP VM (you didn't expect me to mess about on a real machine to start with?), as the DDK's build has linked it with WDFLDR.sys.
I'm not using any of the WDF functionality. It's not installed on my basic XPsp3 VM (or the real XPsp3 machine to my left).

I've downloaded the DDK pretty recently (7600.16385.1).

I suspect I just have to use some sort of "#define NO_WDF_PLEASE" constant, but I have no clue what.

Any hints?

Cheers,

Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
modified on Thursday, July 22, 2010 9:03 AM

QuestionPrintPreview in MFC SDI Application Pin
tony_Udz21-Jul-10 23:05
tony_Udz21-Jul-10 23:05 
AnswerRe: PrintPreview in MFC SDI Application Pin
ErnestoNet22-Jul-10 7:23
ErnestoNet22-Jul-10 7:23 
GeneralRe: PrintPreview in MFC SDI Application Pin
tony_Udz22-Jul-10 18:54
tony_Udz22-Jul-10 18:54 
GeneralRe: PrintPreview in MFC SDI Application Pin
ErnestoNet23-Jul-10 2:19
ErnestoNet23-Jul-10 2:19 
QuestionWrapper Class Pin
Benjamin Bruno21-Jul-10 22:39
Benjamin Bruno21-Jul-10 22:39 
AnswerRe: Wrapper Class Pin
Sauro Viti21-Jul-10 22:44
professionalSauro Viti21-Jul-10 22:44 
AnswerRe: Wrapper Class Pin
Niklas L21-Jul-10 23:01
Niklas L21-Jul-10 23:01 
AnswerRe: Wrapper Class Pin
«_Superman_»21-Jul-10 23:12
professional«_Superman_»21-Jul-10 23:12 
AnswerRe: Wrapper Class Pin
Aescleal21-Jul-10 23:13
Aescleal21-Jul-10 23:13 
Questionswap two values withou using temp. storage Pin
lgmanuel21-Jul-10 20:10
lgmanuel21-Jul-10 20:10 
AnswerRe: swap two values withou using temp. storage PinPopular
«_Superman_»21-Jul-10 20:25
professional«_Superman_»21-Jul-10 20:25 
AnswerRe: swap two values withou using temp. storage Pin
Luc Pattyn21-Jul-10 20:26
sitebuilderLuc Pattyn21-Jul-10 20:26 
AnswerRe: swap two values withou using temp. storage [modified] PinPopular
Nuri Ismail21-Jul-10 20:29
Nuri Ismail21-Jul-10 20:29 
GeneralRe: swap two values withou using temp. storage PinPopular
Emilio Garavaglia21-Jul-10 21:41
Emilio Garavaglia21-Jul-10 21:41 
GeneralRe: swap two values withou using temp. storage [modified] Pin
Nuri Ismail21-Jul-10 21:55
Nuri Ismail21-Jul-10 21:55 
GeneralRe: swap two values withou using temp. storage Pin
patbob23-Jul-10 7:04
patbob23-Jul-10 7:04 
GeneralRe: swap two values withou using temp. storage Pin
Aescleal21-Jul-10 22:10
Aescleal21-Jul-10 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.