KeDelayExecutionThread(...)

MAX

I have coded some function as follow in my Kernel Mode Device Driver routine

XXXXXX(…, …)
{
.
.
.
WRITE_PORT_UCHAR(DevExt->GunPortInitAddr+GunPortOffset, 0xf0);
KeDelayExecutionThread(UserMode ,TRUE,10000000);
WRITE_PORT_UCHAR(DevExt->GunPortInitAddr+GunPortOffset, 0x0f);
KeDelayExecutionThread(UserMode,TRUE,10000000);
.
.
.
}

And called it from my application via DeviceIoControl().
When I does not used KeDelayExecutionThread(), it operated well.
But I inserted KeDelayExecutionThread() and as soon as I called it–> system shut downed…!!
I used KeDelayExecutionThread() function just like Sleep()…
Is it needed some other treatment…?

Best Regard
YunGun_Jeong
AceTronix in Seoul KOREA

[Á¤¿¬±Ù]-[YunGun_Jeong]

RTOS(RealTimeOperatingSystem) & Windows2000/NT Device Driver Develope
SoftPLC (ISaGRAF/PRO) Dev & Admin [personal : xxxxx@dreamwiz.com]

138-050
¼­¿ï½Ã ¼ÛÆı¸ ¹æÀ̵¿ 47-9 ÀÌ·¹·Î ºôµù 5Ãþ ¿¡À̽º Æ®·Î´Ð½º ±â¼ú¿¬±¸¼Ò
Irero Bldg 5F, 47-9 Bangi-Dong , SongPa-Gu, Seoul, KOREA (zip:138-050)

http://www.acetronix.co.kr [office : xxxxx@acetronix.co.kr]


DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!! http://search.dreamwiz.com/