My thought exactly, when first I read 4 instead of 200. But the advice from
Misters Carried and Cattle is correct. Handle the data in a C/C++ DLL, or
any other language you favor and use PINVOKE to call the unmanaged code in
the DLL.
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M. M. O’Brien
Sent: Friday, September 03, 2010 8:42 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] DeviceIO and Array of structs
Random thought for the day (I haven’t read this read) - you’re passing
something like sizeof(pointer) v. sizeof(structure).
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.co.uk
Sent: Friday, September 03, 2010 9:31 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] DeviceIO and Array of structs
I know. I understand what you are telling me.
What is driving me nuts is, if I have a simple struct, say 40 bytes, it
works like a charm.
Forget the complex structs bit, I am going to handle that I’m sure. The
question he is, why after I have allocated 200 bytes does the driver only
get 4?
As you say your solution aint pretty, and I wouldn’t no where to start
(writing the external hooks for c# I mean) and I just feel like there is
something obvious here I am missing.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer