Click here to Skip to main content
15,902,846 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: Biometric Standards Pin
Ruan Benade7-Jan-10 22:06
Ruan Benade7-Jan-10 22:06 
GeneralRe: Biometric Standards Pin
Adriaan Davel7-Jan-10 22:38
Adriaan Davel7-Jan-10 22:38 
QuestionCOM port numbering sequence ?? Pin
Vaclav_7-Jan-10 9:09
Vaclav_7-Jan-10 9:09 
AnswerRe: COM port numbering sequence ?? Pin
Rick Shaub11-Jan-10 7:15
Rick Shaub11-Jan-10 7:15 
AnswerRe: COM port numbering sequence ?? Pin
fat_boy14-Jan-10 5:33
fat_boy14-Jan-10 5:33 
QuestionProgramming for E-Book Readers Pin
Tome Favre7-Jan-10 4:01
Tome Favre7-Jan-10 4:01 
AnswerRe: Programming for E-Book Readers Pin
Dave Kreskowiak7-Jan-10 4:38
mveDave Kreskowiak7-Jan-10 4:38 
QuestionDeviceIoControl input buffer question Pin
Mattzimmerer6-Jan-10 0:04
Mattzimmerer6-Jan-10 0:04 
The following is a snippet from an exe that is communicating with my driver.

I am trying to pass a buffer to my driver by using DeviceIoControl. The problem is I've never done this before, so I don't even know if I am on the right track. I guess I just need the starting address of my input struct.
(struct input {int a;int b;int c;};)
The problem seems to be that I cannot put the address of my bInput into a DWORD. Am I going about this right?

When I check out the contents of pInput, it seems to b a DWORD with the actual struct attached after... Im just confused

unsigned long Returned,*pReturned = &Returned;
input bInput;
bInput.a = 1;
bInput.b = 2;
bInput.c = 3;
int test = sizeof(bInput);
input *pInput = &bInput;

     DeviceIoControl(
          hFile,			// Device handle
          IOCTL_MZ_READMEMORY,          // Code
          NULL,				// Buffer TO driver
          0,			// Size of InBuffer
          NULL,				// Buffer FROM driver
          0,				// Size of OutBuffer
          pReturned,			// Bytes output
          (LPOVERLAPPED) NULL);		// Overlapped struc

note: right now my DeviceIoControl call is not using any buffer. I plan on passing the starting address of bInput and the size of bInput.
AnswerRe: DeviceIoControl input buffer question Pin
Richard MacCutchan6-Jan-10 0:14
mveRichard MacCutchan6-Jan-10 0:14 
GeneralRe: DeviceIoControl input buffer question Pin
Mattzimmerer6-Jan-10 10:36
Mattzimmerer6-Jan-10 10:36 
AnswerRe: DeviceIoControl input buffer question Pin
fat_boy14-Jan-10 5:35
fat_boy14-Jan-10 5:35 
GeneralRe: DeviceIoControl input buffer question Pin
Mattzimmerer14-Jan-10 13:30
Mattzimmerer14-Jan-10 13:30 
GeneralRe: DeviceIoControl input buffer question Pin
fat_boy15-Jan-10 5:41
fat_boy15-Jan-10 5:41 
GeneralRe: DeviceIoControl input buffer question Pin
Mattzimmerer15-Jan-10 14:10
Mattzimmerer15-Jan-10 14:10 
Question[Message Deleted] Pin
Mattzimmerer2-Jan-10 12:06
Mattzimmerer2-Jan-10 12:06 
AnswerRe: RtlCopyMemory() question Repost Pin
Richard MacCutchan2-Jan-10 22:11
mveRichard MacCutchan2-Jan-10 22:11 
QuestionHow to use HDD's write cache? Pin
chenayang28-Dec-09 22:18
chenayang28-Dec-09 22:18 
AnswerRe: How to use HDD's write cache? Pin
Dan Neely30-Dec-09 6:00
Dan Neely30-Dec-09 6:00 
GeneralRe: How to use HDD's write cache? Pin
chenayang30-Dec-09 17:34
chenayang30-Dec-09 17:34 
GeneralRe: How to use HDD's write cache? Pin
Dan Neely31-Dec-09 6:40
Dan Neely31-Dec-09 6:40 
AnswerRe: How to use HDD's write cache? Pin
Dave Kreskowiak2-Jan-10 15:15
mveDave Kreskowiak2-Jan-10 15:15 
GeneralRe: How to use HDD's write cache? Pin
Dan Neely3-Jan-10 17:15
Dan Neely3-Jan-10 17:15 
QuestionGame Controller Pin
behzad vosughi28-Dec-09 20:56
behzad vosughi28-Dec-09 20:56 
AnswerRe: Game Controller Pin
Dave Kreskowiak29-Dec-09 3:42
mveDave Kreskowiak29-Dec-09 3:42 
AnswerRe: Game Controller Pin
dybs6-Jan-10 16:52
dybs6-Jan-10 16:52 

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.