RE: DeviceIO and Array of struts

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

On 9/3/2010 8:17 AM, Gary G. Little wrote:

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
Overly helpful spellchecker today? Thanks for the giggle. :slight_smile:
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
Phil

Philip D Barila (303) 776-1264

Frack! I thought I deleted that!! Yeah over active smell hecker mixed with
fat-fingers.

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 Phil Barila
Sent: Friday, September 03, 2010 9:24 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] DeviceIO and Array of struts

On 9/3/2010 8:17 AM, Gary G. Little wrote:

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
Overly helpful spellchecker today? Thanks for the giggle. :slight_smile:
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
Phil

Philip D Barila (303) 776-1264


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

On Fri, 3 Sep 2010 09:17:00 -0500
“Gary G. Little” wrote:

> 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.

C++/CLI can be useful as a bridge language for this sort of thing if
you don’t mind the syntax and added complexity.


Bruce Cran