| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Driver: byte count from IOCTL |
Hello -all-,
an IOCtl call into a driver has to return a variable-length list. To skip to
return a header in front of this list (as I have done on previous
opportunities) I want to update the application's idea of needed/filled data
buffer length.
From the application's view:
DosDevIOCtl(hd,cat,func,parm,10,&parmlen,data,1000,&datalen)
Driver fills buffer at 'data' and has to update 'datalen' via that 9.
argument. Odd but... the Physical Device Driver Reference doesn't say how to
do it and all the samples ignore this possibility.
My driver is marked as level 2 and I found the '1000' in the request packet.
Someone?
Vitus
---
* Origin: Milky Way, Earth, Germany, Niedersachen, Isernhagen (2:2474/400.8)SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 711/401 409 410 413 430 808 SEEN-BY: 711/809 934 955 712/311 407 505 506 517 623 624 704 713/317 800/1 @PATH: 2474/400 0 24/999 888 396/1 270/101 712/624 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.