Click here to Skip to main content
16,011,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiontooltips for bitmaps? Pin
sayup22-Aug-05 5:13
sayup22-Aug-05 5:13 
AnswerRe: tooltips for bitmaps? Pin
Hamed Musavi22-Aug-05 5:33
Hamed Musavi22-Aug-05 5:33 
GeneralRe: tooltips for bitmaps? Pin
sayup22-Aug-05 18:21
sayup22-Aug-05 18:21 
GeneralRe: tooltips for bitmaps? Pin
Hamed Musavi22-Aug-05 22:32
Hamed Musavi22-Aug-05 22:32 
AnswerRe: tooltips for bitmaps? Pin
Bob Ciora22-Aug-05 6:36
Bob Ciora22-Aug-05 6:36 
GeneralRe: tooltips for bitmaps? Pin
Bob Ciora22-Aug-05 6:37
Bob Ciora22-Aug-05 6:37 
GeneralRe: tooltips for bitmaps? Pin
Hamed Musavi22-Aug-05 10:20
Hamed Musavi22-Aug-05 10:20 
Generalsteps needed to call DeviceIoControl Pin
gamitech22-Aug-05 5:05
gamitech22-Aug-05 5:05 
Hello,
I have designed a simple device driver that export with the help of IOCTL's some variables.
I made a win 32 api that load the driver, and looks up an event in the driver.
The event works just fine it signales everytime it should, but whenever I call DeviceIoControl and then I call GetLastError(), FormatMessage() I see that the error mesage is always the same: "The parameter is incorrect" . I don't know what parameter, bacause I have checked all parameters and they are all correct.
Maybe I have missed something before calling DeviceIoControl function.
These are the steps I considered:
OpenSCManager();
CreateService(); if service already running OpenService()
StartService();
CreateFile(); //get the driver's handle
OpenEvent(); //get the event handle created by the driver;
DeviceIoControl(); //and I get the error
and then it is not important because it is not related to;
Please tell me what can be wrong. the IOCTL -> CTLCODE are the same in the driver as in the aplication.
I don't see what can I miss.
If you want I can give you a code snippet.
Thanks




gabby
GeneralRe: steps needed to call DeviceIoControl Pin
David Crow22-Aug-05 5:12
David Crow22-Aug-05 5:12 
GeneralRe: steps needed to call DeviceIoControl Pin
gamitech22-Aug-05 10:01
gamitech22-Aug-05 10:01 
GeneralRe: steps needed to call DeviceIoControl Pin
David Crow22-Aug-05 10:32
David Crow22-Aug-05 10:32 
GeneralRe: steps needed to call DeviceIoControl Pin
gamitech22-Aug-05 10:46
gamitech22-Aug-05 10:46 
Generalhttp attachment Pin
ppp00122-Aug-05 5:02
ppp00122-Aug-05 5:02 
GeneralCListCtrl HotItem colour Pin
Janette22-Aug-05 4:19
Janette22-Aug-05 4:19 
GeneralSupress the FileDownload Dialog in Internet Explorer Pin
G.Radhakrishna22-Aug-05 3:18
G.Radhakrishna22-Aug-05 3:18 
GeneralWindows Error Message Handler Pin
nripun22-Aug-05 2:41
nripun22-Aug-05 2:41 
GeneralRe: Windows Error Message Handler Pin
Cedric Moonen22-Aug-05 3:11
Cedric Moonen22-Aug-05 3:11 
GeneralRe: Windows Error Message Handler Pin
nripun22-Aug-05 3:20
nripun22-Aug-05 3:20 
GeneralRe: Windows Error Message Handler Pin
Blake Miller22-Aug-05 5:58
Blake Miller22-Aug-05 5:58 
GeneralLoad application as view Pin
Geert van Horrik22-Aug-05 2:41
Geert van Horrik22-Aug-05 2:41 
GeneralRe: Load application as view Pin
Chris Losinger22-Aug-05 4:12
professionalChris Losinger22-Aug-05 4:12 
GeneralRe: Load application as view Pin
Geert van Horrik22-Aug-05 4:47
Geert van Horrik22-Aug-05 4:47 
Generalsubclass all Pin
johny_d22-Aug-05 2:33
johny_d22-Aug-05 2:33 
GeneralRe: subclass all Pin
Blake Miller22-Aug-05 6:29
Blake Miller22-Aug-05 6:29 
Questiongraying/ungrayin not working? Pin
sayup22-Aug-05 1:42
sayup22-Aug-05 1:42 

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.