|
如题
NTSTATUS status = IoCreateDevice(pDriverObject,sizeof(DEVICE_EXTENSION), &ntUnicodeString, FILE_DEVICE_KEYBOARD, 0, FALSE, &pKeyboardDeviceObject);
status = IoCreateSymbolicLink(
&ntWin32NameString, &ntUnicodeString );
在应用程序中 。。strTemp就是那个win32的设备名字
hWdm = CreateFile(strTemp,
GENERIC_WRITE | GENERIC_READ,
0,
NULL,
OPEN_EXISTING,
0,
NULL);
if( hWdm != INVALID_HANDLE_VALUE )
{
printf( "Open Driver Twdm ok ! \n" );
}
else
{
printf( "Open Driver Twdm faild %d ! \n", GetLastError() );
}
CloseHandle( hWdm );
但是为什么老是返回ERROR 5 就是Access is Denied.
是不是这种filter不可以用我现在用的通信方式???一般是如何和应用程序通信的?
|
|