Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6502

why not found device obj?

$
0
0

I write driver .Creates an Device Object (name = ICOCTL_1) when the service starts but getlastError function return not_foun_file(code 2)

enter image description here

 void CUserAppDlg::OnBnClickedbtncreate(){deviceHandle =  CreateFile(L"\\\\.\\IOCTL_1", GENERIC_ALL, 0, 0, OPEN_EXISTING,  FILE_ATTRIBUTE_SYSTEM, 0); DWORD data = GetLastError();  TCHAR s[100]; _stprintf_s(s, _T("%X"), data); MessageBox(s);}

Viewing all articles
Browse latest Browse all 6502

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>