PCSC Driver Error

Hello Everybody,

I am developing a PCSC driver and I keep encountering this error

SMCLIB!SmartcardDeviceControl: IoCompleteRequest. IRP = 813ff068 (80000011h)
SMCLIB!SmartcardDeviceControl: Exit. IOCTL = IS_ABSENT, IRP = 813ff068
(80000011h)
SCardSvr!MonitorReader *WARNING* Reader removal monitor failed wait: The
requested resource is in use.
SCardSvr!MonitorReader *ERROR* Reader removal monitor error retry threshold
reached: The requested resource is in use.
SCardSvr!MonitorReader *WARNING* Reader Monitor ‘Omron Corp V4KU 0’ caught
processing error: The requested resource is in use.
SCardSvr!MonitorReader *ERROR* Reader monitor ‘Omron Corp V4KU 0’ received
uncaught error code: The requested resource is in use.

This happens on the second time the smartcard RDF_CARD_TRACKING is called
A I forgetting something? I have already Done the following code on the
first tracking call

KeAcquireSpinLock(&smcExt->OsData->SpinLock,&keIrql);
notify = smcExt->OsData->NotificationIrp;
smcExt->OsData->NotificationIrp = NULL;
//release spinlock to access protected members
KeReleaseSpinLock(&smcExt->OsData->SpinLock,keIrql);

if (notify)
{
IoSetCancelRoutine(notify,NULL);
notify->IoStatus.Status = STATUS_SUCCESS;
notify->IoStatus.Information = 0;

IoCompleteRequest(notify,IO_NO_INCREMENT);
}
//release cancel spinlock
//IoReleaseCancelSpinLock(ioIrql);
notify = NULL;

Am I forgetting to set anything?

Best Regards,
Rikki Tamayo

Hello,

Or Maybe Can somebody point me to more information about developing
smartcard drivers.

Best Regards,
Rikki Tamayo

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rikki
Sent: Thursday, July 01, 2004 9:47 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] PCSC Driver Error

Hello Everybody,

I am developing a PCSC driver and I keep encountering this error

SMCLIB!SmartcardDeviceControl: IoCompleteRequest. IRP = 813ff068 (80000011h)
SMCLIB!SmartcardDeviceControl: Exit. IOCTL = IS_ABSENT, IRP = 813ff068
(80000011h)
SCardSvr!MonitorReader *WARNING* Reader removal monitor failed wait: The
requested resource is in use.
SCardSvr!MonitorReader *ERROR* Reader removal monitor error retry threshold
reached: The requested resource is in use.
SCardSvr!MonitorReader *WARNING* Reader Monitor ‘Omron Corp V4KU 0’ caught
processing error: The requested resource is in use.
SCardSvr!MonitorReader *ERROR* Reader monitor ‘Omron Corp V4KU 0’ received
uncaught error code: The requested resource is in use.

This happens on the second time the smartcard RDF_CARD_TRACKING is called A
I forgetting something? I have already Done the following code on the first
tracking call

KeAcquireSpinLock(&smcExt->OsData->SpinLock,&keIrql);
notify = smcExt->OsData->NotificationIrp;
smcExt->OsData->NotificationIrp = NULL;
//release spinlock to access protected members
KeReleaseSpinLock(&smcExt->OsData->SpinLock,keIrql);

if (notify)
{
IoSetCancelRoutine(notify,NULL);
notify->IoStatus.Status = STATUS_SUCCESS;
notify->IoStatus.Information = 0;

IoCompleteRequest(notify,IO_NO_INCREMENT);
}
//release cancel spinlock
//IoReleaseCancelSpinLock(ioIrql);
notify = NULL;

Am I forgetting to set anything?

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

Did you see examples \WINDDK.…\src\smartcrd\ ?
Mark

-----Original Message-----
From: Rikki [mailto:xxxxx@omron.com.ph]
Sent: Thursday, July 01, 2004 10:08 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] PCSC Driver Error

Hello,

Or Maybe Can somebody point me to more information about developing
smartcard drivers.

Best Regards,
Rikki Tamayo

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rikki
Sent: Thursday, July 01, 2004 9:47 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] PCSC Driver Error

Hello Everybody,

I am developing a PCSC driver and I keep encountering this error

SMCLIB!SmartcardDeviceControl: IoCompleteRequest. IRP = 813ff068 (80000011h)
SMCLIB!SmartcardDeviceControl: Exit. IOCTL = IS_ABSENT, IRP = 813ff068
(80000011h)
SCardSvr!MonitorReader *WARNING* Reader removal monitor failed wait: The
requested resource is in use.
SCardSvr!MonitorReader *ERROR* Reader removal monitor error retry threshold
reached: The requested resource is in use.
SCardSvr!MonitorReader *WARNING* Reader Monitor ‘Omron Corp V4KU 0’ caught
processing error: The requested resource is in use.
SCardSvr!MonitorReader *ERROR* Reader monitor ‘Omron Corp V4KU 0’ received
uncaught error code: The requested resource is in use.

This happens on the second time the smartcard RDF_CARD_TRACKING is called A
I forgetting something? I have already Done the following code on the first
tracking call

KeAcquireSpinLock(&smcExt->OsData->SpinLock,&keIrql);
notify = smcExt->OsData->NotificationIrp;
smcExt->OsData->NotificationIrp = NULL;
//release spinlock to access protected members
KeReleaseSpinLock(&smcExt->OsData->SpinLock,keIrql);

if (notify)
{
IoSetCancelRoutine(notify,NULL);
notify->IoStatus.Status = STATUS_SUCCESS;
notify->IoStatus.Information = 0;

IoCompleteRequest(notify,IO_NO_INCREMENT);
}
//release cancel spinlock
//IoReleaseCancelSpinLock(ioIrql);
notify = NULL;

Am I forgetting to set anything?

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@arx.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

yup, actually i already made a previous PCSC driver layered on the HID stack
based on the DDK samples stack, it worked fine. now i am trying to do the
same but now i am using the toaster samples + the code i made. actually i
need more descriptive information about the errors returned by the pcsc
driver.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Friday, July 02, 2004 12:58 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] PCSC Driver Error

Did you see examples \WINDDK.…\src\smartcrd\ ?
Mark

-----Original Message-----
From: Rikki [mailto:xxxxx@omron.com.ph]
Sent: Thursday, July 01, 2004 10:08 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] PCSC Driver Error

Hello,

Or Maybe Can somebody point me to more information about developing
smartcard drivers.

Best Regards,
Rikki Tamayo

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rikki
Sent: Thursday, July 01, 2004 9:47 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] PCSC Driver Error

Hello Everybody,

I am developing a PCSC driver and I keep encountering this error

SMCLIB!SmartcardDeviceControl: IoCompleteRequest. IRP = 813ff068 (80000011h)

SMCLIB!SmartcardDeviceControl: Exit. IOCTL = IS_ABSENT, IRP = 813ff068
(80000011h)
SCardSvr!MonitorReader *WARNING* Reader removal monitor failed wait: The
requested resource is in use.
SCardSvr!MonitorReader *ERROR* Reader removal monitor error retry threshold
reached: The requested resource is in use.
SCardSvr!MonitorReader *WARNING* Reader Monitor ‘Omron Corp V4KU 0’ caught
processing error: The requested resource is in use.
SCardSvr!MonitorReader *ERROR* Reader monitor ‘Omron Corp V4KU 0’ received
uncaught error code: The requested resource is in use.

This happens on the second time the smartcard RDF_CARD_TRACKING is called A
I forgetting something? I have already Done the following code on the first
tracking call

KeAcquireSpinLock(&smcExt->OsData->SpinLock,&keIrql);
notify = smcExt->OsData->NotificationIrp;
smcExt->OsData->NotificationIrp = NULL;
//release spinlock to access protected members
KeReleaseSpinLock(&smcExt->OsData->SpinLock,keIrql);

if (notify)
{
IoSetCancelRoutine(notify,NULL);
notify->IoStatus.Status = STATUS_SUCCESS;
notify->IoStatus.Information = 0;

IoCompleteRequest(notify,IO_NO_INCREMENT);
}
//release cancel spinlock
//IoReleaseCancelSpinLock(ioIrql);
notify = NULL;

Am I forgetting to set anything?

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@arx.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