Home > Software engineering >  [English] failed to initiate the VS2008 use WINIO StartWinIoDriver () function
[English] failed to initiate the VS2008 use WINIO StartWinIoDriver () function

Time:11-02

I use VS2008 + WINIO 3.0
Installation:
1: compile WinIo \ Source \ Dll \ WinIo SLNS compiled using the debug detected
2: open the folder WinIo \ Source \ Dll \ x86 \ Debug find WinIo32 lib and WinIo32. Dll
WinIo \ Binaries \ WinIo32 sys
WinIo \ Source \ Dll \ WinIo h + WinIo \ Source \ Drv \ winio_nt h
3: will. H file is loaded into the project, and then the lib files in engineering - property - link - add rely on speaking lib address entered
DLL and sys files in engineering debug directory below then compile;
4: when compiling a successful call oninitdialog () to add:
 m_hhkLowLevelKybd=SetWindowsHookEx (WH_KEYBOARD_LL LowLevelKeyboardProc, AfxGetInstanceHandle (), 0). 
Int I=InitializeWinIo ();
return TRUE;//return TRUE, unless you have to control the item set focus

5: error in check found
 bool __stdcall InitializeWinIo () 
{
Bool bResult;
DWORD dwBytesReturned;

G_Is64BitOS=Is64BitOS ();

HDriver=CreateFile (L "\ \ \ \. \ \ WINIO",
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL.
NULL);

//If the driver is not running, install it

If (hDriver==INVALID_HANDLE_VALUE)
{
GetDriverPath ();

BResult=InstallWinIoDriver (szWinIoDriverPath, true);
//- x100954a8 szWinIoDriverPath 0 f: \ "NC_SealSvn 3 wizard button \ \ sword net JW3AJF5F6F7F8 \ Debug \ winio64 sys" would be [32768]
//initialization program file success right

if (! BResult)
return false;

BResult=StartWinIoDriver ();
//the above function called bResult=FALSE;
if (! BResult)
return false;

HDriver=CreateFile (L "\ \ \ \. \ \ WINIO",
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL.
NULL);

If (hDriver==INVALID_HANDLE_VALUE)
return false;
}

CodePudding user response:

If the administrator privileges to perform whether installed driver

CodePudding user response:

http://blog.csdn.net/l1258914199/article/details/8937764? reload

CodePudding user response:

Hello you may never see clear my code screenshots line 23 comments I've printed out the address, for me.. 64. The syS has to be successful!

CodePudding user response:

refer to the second floor zgl7903 response:
http://blog.csdn.net/l1258914199/article/details/8937764? Reload


refer to the second floor zgl7903 response:
http://blog.csdn.net/l1258914199/article/details/8937764? Reload

Hello you may never see clear my code screenshots line 23 comments I've printed out the address, for me.. 64. The syS has to be successful!
The site so you didn't work for me

CodePudding user response:

The distinction between 32-bit or 64 - bit?
  • Related