Installation error - Need Help

Hi ,
I am a beginer in device driver developemnt in windows 2000.
I am writing a function driver for PCI card in windows 2000. It is a simple
driver which contains a driver entry routine, adddevice , dispatchpnp
routines and create -close routines. No additional burden of read / write
routines. From startdevice of IRP_MN_start_device , without allocating any
resources it just returns success.
I have written a small console mode application , which just opens device
using CreateFile call and then call CloseHandle withoput doing anything. I
just wanted to see whether it opens a device or not.

Driver gets built properly without any error. Then i copied Skeleton.sys
file to winnt\system32\drivers.
I have written INF file too. I have copied same to winnt\inf directory.

when i restart system, Windows 2000 detects PCI card with Found New
Hardware.
It asks for driver file with its path. when its starts installing driver,
the Found New Hardware wizard flashes following mesage,

An error occured during installtion of device.
The installation failed because a function driver was not specified for this
device instance.

Whether we need to mention in inf file that it is function driver ?
can anybody guide me how to get rid of this error ?
I am stuck at this point.

Thanks and regards,
Anil

You have at least one bug in your inf file. Try using checkinf in the
ddk to see what it suggests.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anil
Sent: Wednesday, June 19, 2002 2:59 AM
To: NT Developers Interest List
Subject: [ntdev] Installation error - Need Help

Hi ,
I am a beginer in device driver developemnt in windows 2000.
I am writing a function driver for PCI card in windows 2000. It is a
simple driver which contains a driver entry routine, adddevice ,
dispatchpnp routines and create -close routines. No additional burden of
read / write routines. From startdevice of IRP_MN_start_device , without
allocating any resources it just returns success.
I have written a small console mode application , which just opens
device using CreateFile call and then call CloseHandle withoput doing
anything. I just wanted to see whether it opens a device or not.

Driver gets built properly without any error. Then i copied Skeleton.sys
file to winnt\system32\drivers.
I have written INF file too. I have copied same to winnt\inf directory.

when i restart system, Windows 2000 detects PCI card with Found New
Hardware.
It asks for driver file with its path. when its starts installing
driver, the Found New Hardware wizard flashes following mesage,

An error occured during installtion of device.
The installation failed because a function driver was not specified for
this device instance.

Whether we need to mention in inf file that it is function driver ?
can anybody guide me how to get rid of this error ?
I am stuck at this point.

Thanks and regards,
Anil

You are currently subscribed to ntdev as: xxxxx@hollistech.com
To unsubscribe send a blank email to %%email.unsub%%

Yes,
M$ site says so and I use a PC with Win 98, NT, 2K (both checked and free)
and Linux!!!. Site says both 2K and Win XP can co-exist. But when I tried to
install XP over 2K, it just ruined my Win 2K even though I tried to leave
the current partition untouched :frowning:

  • Arun Govind
    Consumer Electronics Group
    www.nesttech.com http:

    -----Original Message-----
    From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
    Sent: Monday, June 17, 2002 9:29 PM
    To: NT Developers Interest List
    Subject: [ntdev] Re: Need Help

    Yes. Install NT4, install the last service pack for it, then install w2k.

    Max

    ----- Original Message -----
    From: Anil mailto:xxxxx
    To: NT Developers Interest List mailto:xxxxx
    Sent: Monday, June 17, 2002 10:23 AM
    Subject: [ntdev] Need Help

    Hi all,

    Is it possible to install Windows 2000 and Windows NT on same Harddisk in
    one PC ?
    I need to do it. If someone has tried doing it , please let me know how to
    do it.

    Thanks and regards,
    Anil

    You are currently subscribed to ntdev as: xxxxx@storagecraft.com
    mailto:xxxxx
    To unsubscribe send a blank email to %%email.unsub%%
    mailto:


    You are currently subscribed to ntdev as: xxxxx@nestec.net
    To unsubscribe send a blank email to %%email.unsub%%</mailto:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></http:>