CreateFile problems

Hi!

as a begginner (…), i have a problem to load the (simple) driver i’ve
created.

the CreateFile call (for a handle to the created device) return with error
code 1 - incorrect function.

can anyone tell me what’s wrong with the driver/device?

thanks in advance!
avishai


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You cannot call CreateFile on the driver until you have loaded the driver.
If WDM, then this generally is the case, or the driver has a load problem
that you need to fix. You might also not be using the proper symbolic link
or your driver didn’t export a symbolic link.

Is the driver loading? Is it exporting a symbolic link?

Gary

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@appstream.co.il
Sent: Sunday, July 15, 2001 7:50 AM
To: NT Developers Interest List
Subject: [ntdev] CreateFile problems

Hi!

as a begginner (…), i have a problem to load the (simple) driver i’ve
created.

the CreateFile call (for a handle to the created device) return with error
code 1 - incorrect function.

can anyone tell me what’s wrong with the driver/device?

thanks in advance!
avishai


You are currently subscribed to ntdev as: xxxxx@inland.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

Check for source code at www.sysinternals.com how to load driver if it’s
not listen in the HKLM\System\CCL\Services and check SDK help for what
CreateFile() can open. Hope this will help.

Regards,
Anton Kolomyeytsev

CoolDev.Com - Toolkits for Network & Storage Kernel Software Developers
“KoolSockets” & “KoolStorage” - TDI Client, Kernel Sockets, SCSI
port/miniport
http://www.CoolDev.Com xxxxx@CoolDev.Com
xxxxx@CoolDev.Com

On 07/15/01, “xxxxx@appstream.co.il” wrote:

Hi!

as a begginner (…), i have a problem to load the (simple) driver i’ve
created.

the CreateFile call (for a handle to the created device) return with error
code 1 - incorrect function.

can anyone tell me what’s wrong with the driver/device?

thanks in advance!
avishai


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Garry G. Little wrote:
Is the driver loading? Is it exporting a symbolic link?

yes the driver was loaded, and the symbolic link was also OK.
the problem seems to be with the create() function.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

What does your IRP_MJ_CREATE dispatch do?


Dave Cox
Hewlett-Packard Co.
SSO/OVBU/SRM (Santa Barbara)
https://ecardfile.com/id/Dave+Cox

-----Original Message-----
From: Avishai Shoshani [mailto:xxxxx@AppStream.co.il]
Sent: Monday, July 16, 2001 1:08 AM
To: NT Developers Interest List
Subject: [ntdev] RE: CreateFile problems

Garry G. Little wrote:
Is the driver loading? Is it exporting a symbolic link?

yes the driver was loaded, and the symbolic link was also OK.
the problem seems to be with the create() function.


You are currently subscribed to ntdev as: david_cox2@hp.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com