做了一个流驱动 ANYDrv.dll, 它加载进了注册表Drivers\BuiltIn, 但进不了Drivers\Active, 如何正确加载?
做了一个流驱动 ANYDrv.dll, 它加载进了注册表Drivers\BuiltIn, 但进不了Drivers\Active, 如何正确加载?
ANYDrv.reg
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\ANYDrv]
"Index"=dword:1
"Prefix"="ANY"
"Dll"="ANYDrv.dll"
"Order"=dword:0
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
hGPIO = CreateFile(L"ANY1:", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0);
if (hGPIO == INVALID_HANDLE_VALUE)
{
TRACE(L" ERR \r\n");
TRACE(L" ERR = %d \r\n", GetLastError()); //出现55号错误,设置未加载
}
[解决办法]
platform.reg和platform.bib都需要添加,检查下,应该没问题
[解决办法]