1
我有我写的自定义驱动程序。我需要帮助转换我的驱动程序用户界面代码
这里是C源代码传达给驾驶员:
#include <windows.h>
#include <stdio.h>
/*********************************************************
* Main Function Entry
*
*********************************************************/
int _cdecl main(void)
{
HANDLE hFile;
DWORD dwReturn;
hFile = CreateFile("\\\\.\\Example", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
if(hFile)
{
WriteFile(hFile, "Hello from user mode!", sizeof("Hello from user mode!"), &dwReturn, NULL);
CloseHandle(hFile);
}
return 0;
}
我希望能够在VB.NET为此在.NET preferaly。
有谁知道如何做转换?
这真的与问题无关。 – 2010-12-03 20:05:01