Click here to Skip to main content
       

Hardware & Devices

 
QuestionUSBSpy driver Pinmember__John_2-Nov-12 5:43 
AnswerRe: USBSpy driver PinmemberA NasseR8-Nov-12 4:28 
GeneralRe: USBSpy driver Pinmember__John_8-Nov-12 5:27 
QuestionRAM on windows 8 32bit PinmemberNitin Sawant27-Oct-12 7:03 
AnswerRe: RAM on windows 8 32bit PinmemberSaibal Ghosh29-Oct-12 8:53 
AnswerRe: RAM on windows 8 32bit PinmemberA NasseR8-Nov-12 4:34 
QuestionPrinting with Tabs PinmemberMember 953662826-Oct-12 10:19 
Question'Access is denied' error when calling CreateFile from a UMDF driver PinmemberMember 312670624-Oct-12 6: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 PinmvpRichard MacCutchan24-Oct-12 23:14 
GeneralRe: 'Access is denied' error when calling CreateFile from a UMDF driver PinmemberBilliousBob23-Nov-12 5:40 
GeneralRe: 'Access is denied' error when calling CreateFile from a UMDF driver PinmvpRichard MacCutchan23-Nov-12 6:24 
GeneralRe: 'Access is denied' error when calling CreateFile from a UMDF driver PinmemberPecuniousPete28-Nov-12 0:12 
QuestionProblem with LAN [Solved] [modified] PinmemberMidnight Ahri23-Oct-12 22:05 
QuestionWhen does windows read its inf files? Pinmember__John_23-Oct-12 3:52 
AnswerRe: When does windows read its inf files? PinmemberMohibur Rashid24-Oct-12 0:39 
GeneralRe: When does windows read its inf files? PinmemberBilliousBob23-Nov-12 5:41 
AnswerRe: When does windows read its inf files? PinmemberBilliousBob23-Nov-12 5:44 
QuestionLaptop CMOS battery question. PinmemberPHS24123-Oct-12 1:23 
AnswerRe: Laptop CMOS battery question. Pinmemberdiprofinfiniti24-Oct-12 16:36 
GeneralRe: Laptop CMOS battery question. PinmemberPHS24126-Oct-12 2:00 
Question17", Quad Core, 8+MB - Options? PinmemberMike-MadBadger23-Oct-12 0:38 
QuestionCanon DSLR file format Pinmember__John_18-Oct-12 6:26 
QuestionDoes HDD still carry three years of warranty? PinmemberVaclav_Sal18-Oct-12 5:26 
AnswerRe: Does HDD still carry three years of warranty? PinmvpRichard MacCutchan18-Oct-12 5:58 
QuestionHere's An Odd One PinmemberRoger Wright16-Oct-12 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web02 | 2.8.141220.1 | Last Updated 8 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid