Click here to Skip to main content
13,558,244 members

Hardware & Devices

 
QuestionUSBSpy driver Pin
__John_2-Nov-12 4:43
member__John_2-Nov-12 4:43 
AnswerRe: USBSpy driver Pin
A NasseR8-Nov-12 3:28
memberA NasseR8-Nov-12 3:28 
GeneralRe: USBSpy driver Pin
__John_8-Nov-12 4:27
member__John_8-Nov-12 4:27 
QuestionRAM on windows 8 32bit Pin
Nitin Sawant27-Oct-12 6:03
memberNitin Sawant27-Oct-12 6:03 
AnswerRe: RAM on windows 8 32bit Pin
Saibal Ghosh29-Oct-12 7:53
memberSaibal Ghosh29-Oct-12 7:53 
AnswerRe: RAM on windows 8 32bit Pin
A NasseR8-Nov-12 3:34
memberA NasseR8-Nov-12 3:34 
QuestionPrinting with Tabs Pin
Member 953662826-Oct-12 9:19
memberMember 953662826-Oct-12 9:19 
Question'Access is denied' error when calling CreateFile from a UMDF driver Pin
Member 312670624-Oct-12 5:30
memberMember 312670624-Oct-12 5:30 
I am creating a UMDF driver which needs to change the brightness of the LCD back light.

The following line of code works in a Console App and successfully returns a handle to the device:
HANDLE hDevice = CreateFile(L"\\\\.\\LCD", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, 0);

However, when I use the exact same piece of code in my driver it returns INVALID_HANDLE_VALUE and GetLastError() gives code 5 which is 'Access is denied'

The driver is being debugged remotely on an x64 Windows 7 machine using the standard WDKRemoteUser profile.

Does anyone know what the problem might be? Do I need to set permissions and, if so, how?
AnswerRe: 'Access is denied' error when calling CreateFile from a UMDF driver Pin
Richard MacCutchan24-Oct-12 22:14
mvpRichard MacCutchan24-Oct-12 22:14 
GeneralRe: 'Access is denied' error when calling CreateFile from a UMDF driver Pin
BilliousBob23-Nov-12 4:40
memberBilliousBob23-Nov-12 4:40 
GeneralRe: 'Access is denied' error when calling CreateFile from a UMDF driver Pin
Richard MacCutchan23-Nov-12 5:24
mvpRichard MacCutchan23-Nov-12 5:24 
GeneralRe: 'Access is denied' error when calling CreateFile from a UMDF driver Pin
PecuniousPete27-Nov-12 23:12
memberPecuniousPete27-Nov-12 23:12 
QuestionProblem with LAN [Solved] Pin
Midnight Ahri23-Oct-12 21:05
memberMidnight Ahri23-Oct-12 21:05 
QuestionWhen does windows read its inf files? Pin
__John_23-Oct-12 2:52
member__John_23-Oct-12 2:52 
AnswerRe: When does windows read its inf files? Pin
Mohibur Rashid23-Oct-12 23:39
memberMohibur Rashid23-Oct-12 23:39 
GeneralRe: When does windows read its inf files? Pin
BilliousBob23-Nov-12 4:41
memberBilliousBob23-Nov-12 4:41 
AnswerRe: When does windows read its inf files? Pin
BilliousBob23-Nov-12 4:44
memberBilliousBob23-Nov-12 4:44 
QuestionLaptop CMOS battery question. Pin
PHS24123-Oct-12 0:23
memberPHS24123-Oct-12 0:23 
AnswerRe: Laptop CMOS battery question. Pin
diprofinfiniti24-Oct-12 15:36
memberdiprofinfiniti24-Oct-12 15:36 
GeneralRe: Laptop CMOS battery question. Pin
PHS24126-Oct-12 1:00
memberPHS24126-Oct-12 1:00 
Question17", Quad Core, 8+MB - Options? Pin
Mike-MadBadger22-Oct-12 23:38
memberMike-MadBadger22-Oct-12 23:38 
QuestionCanon DSLR file format Pin
__John_18-Oct-12 5:26
member__John_18-Oct-12 5:26 
QuestionDoes HDD still carry three years of warranty? Pin
Vaclav_Sal18-Oct-12 4:26
memberVaclav_Sal18-Oct-12 4:26 
AnswerRe: Does HDD still carry three years of warranty? Pin
Richard MacCutchan18-Oct-12 4:58
mvpRichard MacCutchan18-Oct-12 4:58 
QuestionHere's An Odd One Pin
Roger Wright16-Oct-12 20:43
memberRoger Wright16-Oct-12 20:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy |
Web04-2016 | 2.8.180515.1 | Last Updated 24 Apr 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid