Hi,

Iam trying to write a win2k plug n play driver for 16 bit PCMCIA PC
card.
Iam having one doubt in writing INF file.
That is "ClassGuid"
Which class name should I define in my INF file.
whether I have to define the same class name "PCMCIA" as per DDK
documentation or I can specify My own class name?
If I use separate class name, so which ClassGuid shall I use for
that.

As per the following para from DDK documentation,it is confirm that
this class is for only system-supplied drivers of PCMCIA and CardBus
host controllers, but not drivers of PCMCIA or CardBus peripherals.
////////////////////////////////////////////////////

PCMCIA Adapters
Class = PCMCIA
ClassGuid = {4d36e977-e325-11ce-bfc1-08002be10318}
This class includes system-supplied drivers of PCMCIA and CardBus host
controllers, but not drivers of PCMCIA or CardBus peripherals.

///////////////////////////////////////////////////

I used the following in my INF file
Class = ACLPCMCIA
ClassGuid = {4d36e97e-e325-11ce-bfc1-08002be10318}

I took pcmcia id from the following registry path.
CurrentControlSet\Enum\PCMCIA\
and written in my INF file as follows.
PCMCIA\Apollo-ApoorvaCard-77F7.

I Plugged pcmcia card in PC and appeared new harware found wizard.I
followed the steps and I given my .INF file path.
After I found blue death screen and PC restarted.

Before I created Win2k plug n play driver project in VC++ 6.0 and
compiled with wizard generated code and without adding my code.The
generated .sys file Iam using in INF file to copy to destination dirs.

For detecting a device is it required to add any code in drivers or
the default pnp driver project code is sufficient?

What could be the problem?Please help me in solving the above
issues.Iam ready to send my INF file if required.
If Iam going in a wrong direction please guide me in right way.
Thank u
Mahender.

Re: INF file expert authors help me by Don

Don
Tue Aug 09 14:27:12 CDT 2005

Well without an INF file, and without !analyze -v on the dump, there is no
way anyone can help you.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply



"mahi" <mahinder_gudur@yahoo.com> wrote in message
news:1123615142.837290.32720@g49g2000cwa.googlegroups.com...
>
>
>
>
> Hi,
>
> Iam trying to write a win2k plug n play driver for 16 bit PCMCIA PC
> card.
> Iam having one doubt in writing INF file.
> That is "ClassGuid"
> Which class name should I define in my INF file.
> whether I have to define the same class name "PCMCIA" as per DDK
> documentation or I can specify My own class name?
> If I use separate class name, so which ClassGuid shall I use for
> that.
>
> As per the following para from DDK documentation,it is confirm that
> this class is for only system-supplied drivers of PCMCIA and CardBus
> host controllers, but not drivers of PCMCIA or CardBus peripherals.
> ////////////////////////////////////////////////////
>
> PCMCIA Adapters
> Class = PCMCIA
> ClassGuid = {4d36e977-e325-11ce-bfc1-08002be10318}
> This class includes system-supplied drivers of PCMCIA and CardBus host
> controllers, but not drivers of PCMCIA or CardBus peripherals.
>
> ///////////////////////////////////////////////////
>
> I used the following in my INF file
> Class = ACLPCMCIA
> ClassGuid = {4d36e97e-e325-11ce-bfc1-08002be10318}
>
> I took pcmcia id from the following registry path.
> CurrentControlSet\Enum\PCMCIA\
> and written in my INF file as follows.
> PCMCIA\Apollo-ApoorvaCard-77F7.
>
> I Plugged pcmcia card in PC and appeared new harware found wizard.I
> followed the steps and I given my .INF file path.
> After I found blue death screen and PC restarted.
>
> Before I created Win2k plug n play driver project in VC++ 6.0 and
> compiled with wizard generated code and without adding my code.The
> generated .sys file Iam using in INF file to copy to destination dirs.
>
> For detecting a device is it required to add any code in drivers or
> the default pnp driver project code is sufficient?
>
> What could be the problem?Please help me in solving the above
> issues.Iam ready to send my INF file if required.
> If Iam going in a wrong direction please guide me in right way.
> Thank u
> Mahender.
>



RE: INF file expert authors help me by pavel_a

pavel_a
Tue Aug 09 15:31:01 CDT 2005

"mahi" wrote:
> Iam trying to write a win2k plug n play driver for 16 bit PCMCIA PC
> card.

Ok, we already know that :)

> Iam having one doubt in writing INF file.
> That is "ClassGuid"
> Which class name should I define in my INF file.
> whether I have to define the same class name "PCMCIA" as per DDK
> documentation or I can specify My own class name?
> If I use separate class name, so which ClassGuid shall I use for that.
>
> As per the following para from DDK documentation,it is confirm that
> this class is for only system-supplied drivers of PCMCIA and CardBus
> host controllers, but not drivers of PCMCIA or CardBus peripherals.

Correct.

> I took pcmcia id from the following registry path.
> CurrentControlSet\Enum\PCMCIA\
> and written in my INF file as follows.
> PCMCIA\Apollo-ApoorvaCard-77F7.

Good.


> I Plugged pcmcia card in PC and appeared new harware found wizard.I
> followed the steps and I given my .INF file path.
> After I found blue death screen and PC restarted.

Probably this is not because your INF, but because of the .sys driver.

Put a breakpoint in your DriverEntry.
Will it stop on this breakpoint before the bluescreen occurs?

> Before I created Win2k plug n play driver project in VC++ 6.0 and
> compiled with wizard generated code and without adding my code.The
> generated .sys file Iam using in INF file to copy to destination dirs.

Project in VC++ ?! Is this NuMega Driver Studio?

> For detecting a device is it required to add any code in drivers or
> the default pnp driver project code is sufficient?

Default is sufficient.

> What could be the problem?Please help me in solving the above
> issues.Iam ready to send my INF file if required.
> If Iam going in a wrong direction please guide me in right way.
> Thank u
> Mahender.

Use a kernel debugger.
If you have the NuMega suite, then you have the SoftIce.
Otherwise install WinDbg. This is a right way.

Regards,
--PA


Re: INF file expert authors help me by mahi

mahi
Fri Aug 12 05:00:55 CDT 2005


Don Burn wrote:
> Well without an INF file, and without !analyze -v on the dump, there is no
> way anyone can help you.
>
>
> --
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting


Hi,

Thank u Mr.Pavel and Mr.Don Burn.

In my INF file I created different class name which is not defined in
the DDK documentation.

PCMCIA ID is
PCMCIA\Apoorva_1553_PCMCIA_Card..-Apollo_C.Labs-77F7
Manufacturer = Apoorva_1553_PCMCIA_Card..
Product = Apollo_C.Labs
CRC = 77F7
The following is my INF file.If any mistake in the File Please guide
me.


///////////////////////////////////////////////////////////////////////
;Copyright (c) 2004-2005 Apollo Computing Laboratories(P)Ltd.

[Version]
Signature="$Windows NT$"
Class=ACLPCMCIA
ClassGUID={4d36e97e-e325-11ce-bfc1-08002be10318}
Provider=%ACL%
DriverVer=08/06/2005

;
; Information for installing the ACLPCMCIA class
;
[ClassInstall32]
AddReg=ClassAddReg

[ClassAddReg]
HKR,,,,%PCMCIAClassName%
HKR,,Icon,,"-11"



;
; Information for installing the PCMCIA class
;

;
; Manufacturer
;

[DestinationDirs] ; Specifies where files are copied to
DefaultDestDir=12 ; %windr%\system32\drivers



[Manufacturer]
%ACL%=APOORVADR

[APOORVADR]
%Apoorva1553PCMCIA.DeviceDesc%=PCCARD,PCMCIA\Apoorva_1553_PCMCIA_Card..-Apollo_C.Labs-77F7

[PCCARD] ; Begin a DDInstall section
CopyFiles=CopyApoorvaFiles ; Call out a CopyFiles section
AddReg=ApoorvaRegSection ; Call out an AddReg section

[CopyApoorvaFiles] ; Begin a CopyFiles section
Apoorva.SYS

[ApoorvaRegSection] ; Begin an AddReg section
HKR,"Parameters","Coordinates",FLG_ADDREG_TYPE_DWORD,0

[SourceDisksNames]
; This section is not really required because we have
; only one file and it probably fit on one disk.
1="Apoorva1553PCMCIA Driver Files"

[SourceDisksFiles]
; Similarly,since everything came from one disk,
; we don't really need this section either.
Apoorva.SYS=1

;[PCCARD.Services] ; DDInstall.Services sec.
;AddService=Apoorva,2,ApoorvaService

;Setup the SCM registry entries so driver can start
;[ApoorvaService]
;ServiceType=1 ; driver
;StartType=3 ; On-demand (manual)
;ErrorControl=1 ; report errors
;ServiceBinary=%12%\Apoorva.SYS ; Path to Driver

[Strings]
ACL="Apollo Computing Laboratories"
PCMCIAClassName="Apoorva1553PcmciaCard"
Apoorva1553PCMCIA.DeviceDesc="Apollo"


; Standard defs

REG_EXPAND_SZ = 0x00020000
REG_DWORD = 0x00010001
REG_SZ = 0x00000000
REG_BINARY = 0x00000001








/////////////////////////////////////////////////////////////////////////

Thank u

Mahender