wince6实验vs2005打开led驱动的问题
hLed = CreateFile(TEXT("LED1:"),GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);if (hLed == INVALID_HANDLE_VALUE)
{
printf ("can't open LED1\r\n");
}
else
{
printf ("Open LED1\r\n");
}
1、为什么打开驱动一定要led1,而不能是led0或者led2呢?
DeviceIoControl(hLed,
dwControlCode,
NULL,
sizeof(DWORD),
NULL,
0,
&dwReturn,
NULL);
怎么看DeviceIoControl函数对应驱动的LED_IOControl函数,请高手指点一下;
页:
[1]