After reading Four-F's tutorial on KMDs i wrote (or actually rewrote Dale Roberts' giveio =) a sys file for reading and writing to the 8042 chip (Serial Communication Chip). It assembled perfectly when i first wrote it. But now, after a reinstallation of win2k, installing sp4 and hutchs masm32 pack with KMDkit 1.5, it wont work.
error A2006: undefined symbol : dwLength


------------------------
choped code:
------------------------
...
DriverEntry proc DrvObjectP:PDRIVER_OBJECT, RegPathPUC:PUNICODE_STRING
LOCAL status:NTSTATUS
LOCAL oa:OBJECT_ATTRIBUTES
LOCAL KeyHT:HANDLE
LOCAL kvpi:KEY_VALUE_PARTIAL_INFORMATION
LOCAL IopmP:PVOID
LOCAL ProcessP:PVOID

invoke DbgPrint, addr dbgEnter
mov status,STATUS_DEVICE_CONFIGURATION_ERROR

lea ecx,oa
; setting the objectattributes
xor eax,eax
assume ecx:ptr OBJECT_ATTRIBUTES
mov [ecx].dwLength,sizeof OBJECT_ATTRIBUTES
mov [ecx].RootDirectory,eax
push RegPathPUC
pop [ecx].ObjectNamepopa det.
mov [ecx].Attributes,eax
...

any ideas?
Posted on 2004-04-24 14:07:08 by sluggo
Surely it must be an include file problem. Would I be right to guess it wasn't assembled with KmdKit 1.5 prior to reinstallation, thats the only change I would imagine could be affecting things. Do a search in files for the OBJECT_ATTRIBUTES structre and see if the dwLength member has changed. Perhpas its become dwlength accidently.
Posted on 2004-04-24 14:56:32 by Eóin
Thank you verry much!! dwLength had gone to _Length, didnt even remember updating the KMDkit till you mentioned it.

Thank you again, E?in!
Posted on 2004-04-24 15:13:43 by sluggo