[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-smartcardddk
Subject:    Re: ifdtest
From:       Allen Hu <ahu () ALCORMICRO ! COM>
Date:       2000-10-27 3:27:06
[Download RAW message or body]


Hi John:
Thanks ,
But after I try your suggestion.
It is no use.
Do you have any new idea ?


Allen;

----- Original Message -----
From: "Pauley, John" <PauleyJ@CYBERMARK.COM>
To: <SmartCardDDK@DISCUSS.MICROSOFT.COM>
Sent: Thursday, October 26, 2000 9:39 PM
Subject: Re: ifdtest


> Allen, you should save the link name until the driver unloads, a
> good place for it is in the device extension. Then in your remove
> routine, you delete the symbolic link created.
>
>         if (pDeviceExtension->linkname.Buffer){
>                 IoDeleteSymbolicLink(&pDeviceExtension->linkname);
>                 RtlFreeUnicodeString(&pDeviceExtension->linkname);
>         }
>         ...
>         IoDeleteDevice(...);
>
> > -----Original Message-----
> > From: Allen Hu [mailto:ahu@ALCORMICRO.COM]
> > Sent: Wednesday, October 25, 2000 11:07 PM
> > To: SmartCardDDK@DISCUSS.MICROSOFT.COM
> > Subject: Re: ifdtest
> >
> >
> > Hi John;
> > Thanks , you have help me many times.
> >
> > In win98,I use smartcardcreatelink ( in adddevice routine )
> > to link resource
> > manager.
> > In adddevice routine:
> >
> >   status = SmartcardCreateLink( &linkNameUnicodeString,
> >               &deviceNameUnicodeString);
> >
> >
> >  RtlFreeUnicodeString(&deviceNameUnicodeString);
> >  RtlFreeUnicodeString(&linkNameUnicodeString);
> >
> > I think I have free the link string after SmartcardCreateLink
> > I do not use IoRegisterDeviceInterface to register.
> > and I think the interface should come form
> >             SmartcardCreateLink,
> > IoRegisterDeviceInterface,and createdevice
> >
> > In remove routine, I only use SmartcardExit function and
> > IoDeleteDevice.
> > Although, DDK mention about smartcardDeleteLink.
> > But it is only in .h file not in scmlib.lib
> >
> >  Allen;
> >
> > ----- Original Message -----
> > From: "Pauley, John" <PauleyJ@CYBERMARK.COM>
> > To: <SmartCardDDK@DISCUSS.MICROSOFT.COM>
> > Sent: Wednesday, October 25, 2000 10:17 PM
> > Subject: Re: ifdtest
> >
> >
> > > Allen, this is caused by one of two reasons:
> > > 1.  When the driver loads you register two interfaces.
> > Probably not the
> > > reason since problem occures on replug in of device.
> > > 2.  When the driver unloads, you do not unregister the interface you
> > created
> > > at driver load, so when the driver reloads, it creates _another_
> > interface,
> > > hence two interfaces are being seen by ifdtest.
> > >
> > > Also see previous thread on "about smartcardcreatelink".
> > > John
> > >
> > > > -----Original Message-----
> > > > From: Allen Hu [mailto:ahu@ALCORMICRO.COM]
> > > > Sent: Wednesday, October 25, 2000 4:20 AM
> > > > To: SmartCardDDK@DISCUSS.MICROSOFT.COM
> > > > Subject: ifdtest
> > > >
> > > >
> > > > Hi;
> > > > When I replug and play my reader on WIN 98 to test my driver,
> > > > then run ifdtest.exe
> > > > It ask me to choose reader ans display like below:
> > > >
> > > > Vendor                  IfdType                  Type
> > > > -----------------------------------------------------
> > > > [T]est .    USB Smart Card IFD         NT 4.00
> > > > T[e]st .    USB Smart Card IFD         NT 4.00
> > > >
> > > >  pls help me
> > > >
> > > > Allen;
> > > >
> >

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic