Re: KernelIoControl error 50

One more thing.

IST code.
1. Create an event
g_hevInterrupt = CreateEvent(NULL, FALSE, FALSE, NULL);

2. Create thread in SUSPENDED mode
g_htIST = CreateThread();

3. Setting thread priority
CeSetThreadPriority( g_htIST, m_nISTPriority );
4. Call InterruptInitialize
InterruptInitialize( SYSINTR_FIRMWARE+7, g_hevInterrupt, NULL, 0 );
5. ResumeThread( g_htIST );

My IST code above I put in the console application
and I start it from command line.
Is that right or should I make driver, or put it in the driver.
If I need to create driver or put my IST code in the driver
please give me some sample code.
I don't clearly understand how does the IST and interruptinitialize
work in user mode and kernel mode.

Thanks in advance.
Regards Vlatko.


Relevant Pages

  • Re: parallel port IST
    ... "Programming Windows Embedded CE 6.0", ... My IST code is like this. ... InterruptInitialize(SYSINTR_FIRMWARE+7, g_hevInterrupt, NULL, ... Should I create driver application ...
  • Re: parallel port IST
    ... A driver would give you a means to use it in a general purpose way from any application, but is more difficult to write. ... My IST code is like this. ... Setting thread priority ... InterruptInitialize(SYSINTR_FIRMWARE+7, g_hevInterrupt, NULL, ...
  • parallel port IST
    ... I'm using windows CE 6.0 and x86 platform. ... IRQ for parallel port is 7 and it is statically ... My IST code is like this. ... Should I create driver application ...