Smartcard help

Hello Everybody,

currently my development of a smartcard river is good, unfortunately i
have one last final problem to solve. the problem lies in when you remove
tha smatcard device (i.e unenummerate). prorgram processing stops somewhere
within the Smartcard Library code and i get a message like the following.

SCardSvr!WaitForAnObject *WARNING* Wait for object timed out
SCardSvr!CReaderDriver::Disable *WARNING* Abandoning wait for Reader Driver
Disable: Closing reader My corp MyCArdReader 0
SCardSvr!CReaderDriver::Disable *WARNING* Reader Driver Disable: Closing
reader My corp MyCArdReader 0

What is the smartcard library waiting for? Is is reader disable? How do I
disable the reader? I am at wits end about this… Is there any where (Aside
from the DDK and the sample source code) where I can get more information
about his? What about a peek into the source code of the WDM smartcard
Library code the hang up occurs after a call to GET_STATE… (After the
Tracking Notification Irp was cancelled)

Please help…

Best Regards,
Rikki Tamayo

Hello Everybody,

What about paid support? Do you know any company that offers support
for smartcard development? Does microsoft offer any support to driver
developers?

Best Regards,
Rikki Tamayo

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rikki
Sent: Monday, July 19, 2004 5:02 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Smartcard help

Hello Everybody,

currently my development of a smartcard river is good, unfortunately i
have one last final problem to solve. the problem lies in when you remove
tha smatcard device (i.e unenummerate). prorgram processing stops somewhere
within the Smartcard Library code and i get a message like the following.

SCardSvr!WaitForAnObject *WARNING* Wait for object timed out
SCardSvr!CReaderDriver::Disable *WARNING* Abandoning wait for Reader Driver
Disable: Closing reader My corp MyCArdReader 0
SCardSvr!CReaderDriver::Disable *WARNING* Reader Driver Disable: Closing
reader My corp MyCArdReader 0

What is the smartcard library waiting for? Is is reader disable? How do I
disable the reader? I am at wits end about this… Is there any where (Aside
from the DDK and the sample source code) where I can get more information
about his? What about a peek into the source code of the WDM smartcard
Library code the hang up occurs after a call to GET_STATE… (After the
Tracking Notification Irp was cancelled)

Please help…

Best Regards,
Rikki Tamayo


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@omron.com.ph To
unsubscribe send a blank email to xxxxx@lists.osr.com

The library is waiting for a thread to terminate. My guess is that you have
scewed up your cancellation processing somehow.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rikki
Sent: Tuesday, July 20, 2004 8:23 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Smartcard help

Hello Everybody,

What about paid support? Do you know any company that
offers support
for smartcard development? Does microsoft offer any support to driver
developers?

Best Regards,
Rikki Tamayo

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rikki
Sent: Monday, July 19, 2004 5:02 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Smartcard help

Hello Everybody,

currently my development of a smartcard river is good,
unfortunately i
have one last final problem to solve. the problem lies in
when you remove
tha smatcard device (i.e unenummerate). prorgram processing
stops somewhere
within the Smartcard Library code and i get a message like
the following.

SCardSvr!WaitForAnObject *WARNING* Wait for object timed out
SCardSvr!CReaderDriver::Disable *WARNING* Abandoning wait for
Reader Driver
Disable: Closing reader My corp MyCArdReader 0
SCardSvr!CReaderDriver::Disable *WARNING* Reader Driver
Disable: Closing
reader My corp MyCArdReader 0

What is the smartcard library waiting for? Is is reader
disable? How do I
disable the reader? I am at wits end about this… Is there
any where (Aside
from the DDK and the sample source code) where I can get more
information
about his? What about a peek into the source code of the WDM smartcard
Library code the hang up occurs after a call to GET_STATE… (After the
Tracking Notification Irp was cancelled)

Please help…

Best Regards,
Rikki Tamayo


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@omron.com.ph To
unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

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

Here is the sample of my cancel routine for the Notification IRP, is
anything wrong with my code?

//Tracking cancel function
NTSTATUS __SC_TrackingCancel(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)
{
PDEVICE_EXTENSION deviceExtension = DeviceObject->DeviceExtension;
PSMARTCARD_EXTENSION smcExt = &deviceExtension->SmartcardExtension;

SmartcardDebug(DEBUG_TRACE,(“V4SC:CANCEL IRP\n”));
ASSERT(Irp == smcExt->OsData->NotificationIrp);
IoReleaseCancelSpinLock(Irp->CancelIrql);

__SC_TrackingComplete(smcExt,STATUS_CANCELLED,TRUE);
SmartcardDebug(DEBUG_TRACE,(“V4SC:CANCEL IRP Exited\n”));
return STATUS_CANCELLED;
}

void __SC_TrackingComplete(IN PSMARTCARD_EXTENSION smcExt ,IN NTSTATUS
Status, IN BOOLEAN ClearCancel)
{
PIRP notify;
KIRQL ioIrql, keIrql;
PREADER_EXTENSION readExt = smcExt->ReaderExtension;

SmartcardDebug(DEBUG_TRACE,("Finishing Tracking… "));

SmartcardDebug(DEBUG_TRACE,(“Aquire Spinlocks,”));
IoAcquireCancelSpinLock(&ioIrql);

KeAcquireSpinLock(&smcExt->OsData->SpinLock,&keIrql);
notify = smcExt->OsData->NotificationIrp;
SmartcardDebug(DEBUG_TRACE,(“Clear
Notification:%x,”,smcExt->OsData->NotificationIrp ));
smcExt->OsData->NotificationIrp = NULL;
KeReleaseSpinLock(&smcExt->OsData->SpinLock,keIrql);

IoSetCancelRoutine(notify,NULL);

SmartcardDebug(DEBUG_TRACE,(“Release Cancel Spinlock,”));
IoReleaseCancelSpinLock(ioIrql);

readExt->TrackingState = TRSTATE_NONE;

SmartcardDebug(DEBUG_TRACE,("Complete IRP, "));
if (notify->Cancel)
notify->IoStatus.Status = STATUS_CANCELLED;
else
notify->IoStatus.Status = Status;
notify->IoStatus.Information = 0;

IoCompleteRequest(notify,IO_NO_INCREMENT);
notify = NULL;
SmartcardDebug(DEBUG_TRACE,(“Success! CURRENT CARD
STATE=%d\n”,smcExt->ReaderCapabilities.CurrentState));
}

Best Regards,
Rikki Tamayo
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Roddy
Sent: Wednesday, July 21, 2004 9:25 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Smartcard help

The library is waiting for a thread to terminate. My guess is that you have
scewed up your cancellation processing somehow.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rikki
Sent: Tuesday, July 20, 2004 8:23 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Smartcard help

Hello Everybody,

What about paid support? Do you know any company that offers support

for smartcard development? Does microsoft offer any support to driver
developers?

Best Regards,
Rikki Tamayo

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rikki
Sent: Monday, July 19, 2004 5:02 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Smartcard help

Hello Everybody,

currently my development of a smartcard river is good,
unfortunately i have one last final problem to solve. the problem lies
in when you remove tha smatcard device (i.e unenummerate). prorgram
processing stops somewhere within the Smartcard Library code and i get
a message like the following.

SCardSvr!WaitForAnObject *WARNING* Wait for object timed out
SCardSvr!CReaderDriver::Disable *WARNING* Abandoning wait for Reader
Driver
Disable: Closing reader My corp MyCArdReader 0
SCardSvr!CReaderDriver::Disable *WARNING* Reader Driver
Disable: Closing
reader My corp MyCArdReader 0

What is the smartcard library waiting for? Is is reader disable? How
do I disable the reader? I am at wits end about this… Is there any
where (Aside from the DDK and the sample source code) where I can get
more information about his? What about a peek into the source code of
the WDM smartcard Library code the hang up occurs after a call to
GET_STATE… (After the Tracking Notification Irp was cancelled)

Please help…

Best Regards,
Rikki Tamayo


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@omron.com.ph To
unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

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


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@omron.com.ph To
unsubscribe send a blank email to xxxxx@lists.osr.com