Click here to Skip to main content
11,478,562 members (69,173 online)

Hardware & Devices

 
GeneralRe: Computer problem Pin
A NasseR9-Nov-12 13:01
memberA NasseR9-Nov-12 13:01 
GeneralRe: Computer problem Pin
Richard MacCutchan10-Nov-12 0:23
mvpRichard MacCutchan10-Nov-12 0:23 
GeneralRe: Computer problem Pin
Ainnop11-Nov-12 4:07
memberAinnop11-Nov-12 4:07 
GeneralRe: Computer problem Pin
Richard MacCutchan11-Nov-12 4:27
mvpRichard MacCutchan11-Nov-12 4:27 
GeneralRe: Computer problem Pin
Brandon T. H.18-Jan-13 12:09
memberBrandon T. H.18-Jan-13 12:09 
AnswerRe: Computer problem Pin
BilliousBob23-Nov-12 5:26
memberBilliousBob23-Nov-12 5:26 
QuestionUSBSpy driver Pin
__John_2-Nov-12 5:43
member__John_2-Nov-12 5:43 
AnswerRe: USBSpy driver Pin
A NasseR8-Nov-12 4:28
memberA NasseR8-Nov-12 4:28 
GeneralRe: USBSpy driver Pin
__John_8-Nov-12 5:27
member__John_8-Nov-12 5:27 
QuestionRAM on windows 8 32bit Pin
Nitin Sawant27-Oct-12 7:03
memberNitin Sawant27-Oct-12 7:03 
AnswerRe: RAM on windows 8 32bit Pin
Saibal Ghosh29-Oct-12 8:53
memberSaibal Ghosh29-Oct-12 8:53 
AnswerRe: RAM on windows 8 32bit Pin
A NasseR8-Nov-12 4:34
memberA NasseR8-Nov-12 4:34 
QuestionPrinting with Tabs Pin
Member 953662826-Oct-12 10:19
memberMember 953662826-Oct-12 10:19 
Question'Access is denied' error when calling CreateFile from a UMDF driver Pin
Member 312670624-Oct-12 6:30
memberMember 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 Pin
Richard MacCutchan24-Oct-12 23:14
mvpRichard MacCutchan24-Oct-12 23:14 
GeneralRe: 'Access is denied' error when calling CreateFile from a UMDF driver Pin
BilliousBob23-Nov-12 5:40
memberBilliousBob23-Nov-12 5:40 
GeneralRe: 'Access is denied' error when calling CreateFile from a UMDF driver Pin
Richard MacCutchan23-Nov-12 6:24
mvpRichard MacCutchan23-Nov-12 6:24 
GeneralRe: 'Access is denied' error when calling CreateFile from a UMDF driver Pin
PecuniousPete28-Nov-12 0:12
memberPecuniousPete28-Nov-12 0:12 
QuestionProblem with LAN [Solved] [modified] Pin
Midnight Ahri23-Oct-12 22:05
memberMidnight Ahri23-Oct-12 22:05 
QuestionWhen does windows read its inf files? Pin
__John_23-Oct-12 3:52
member__John_23-Oct-12 3:52 
AnswerRe: When does windows read its inf files? Pin
Mohibur Rashid24-Oct-12 0:39
memberMohibur Rashid24-Oct-12 0:39 
GeneralRe: When does windows read its inf files? Pin
BilliousBob23-Nov-12 5:41
memberBilliousBob23-Nov-12 5:41 
AnswerRe: When does windows read its inf files? Pin
BilliousBob23-Nov-12 5:44
memberBilliousBob23-Nov-12 5:44 
QuestionLaptop CMOS battery question. Pin
PHS24123-Oct-12 1:23
memberPHS24123-Oct-12 1:23 
AnswerRe: Laptop CMOS battery question. Pin
diprofinfiniti24-Oct-12 16:36
memberdiprofinfiniti24-Oct-12 16:36 
GeneralRe: Laptop CMOS battery question. Pin
PHS24126-Oct-12 2:00
memberPHS24126-Oct-12 2:00 
Question17", Quad Core, 8+MB - Options? Pin
Mike-MadBadger23-Oct-12 0:38
memberMike-MadBadger23-Oct-12 0:38 
QuestionCanon DSLR file format Pin
__John_18-Oct-12 6:26
member__John_18-Oct-12 6:26 
QuestionDoes HDD still carry three years of warranty? Pin
Vaclav_Sal18-Oct-12 5:26
memberVaclav_Sal18-Oct-12 5:26 
AnswerRe: Does HDD still carry three years of warranty? Pin
Richard MacCutchan18-Oct-12 5:58
mvpRichard MacCutchan18-Oct-12 5:58 
QuestionHere's An Odd One Pin
Roger Wright16-Oct-12 21:43
memberRoger Wright16-Oct-12 21:43 
QuestionWhen to call WinUsb_FlushPipe Pin
__John_10-Oct-12 3:27
member__John_10-Oct-12 3:27 
AnswerRe: When to call WinUsb_FlushPipe Pin
Jochen Arndt10-Oct-12 4:24
memberJochen Arndt10-Oct-12 4:24 
GeneralRe: When to call WinUsb_FlushPipe Pin
__John_10-Oct-12 4:36
member__John_10-Oct-12 4:36 
QuestionUSB 2.0 Coexisting With USB 3.0 Despite USB 3.0 Being Backwards-compatible [modified] Pin
Kevin Li (Li, Ken-un)26-Sep-12 14:57
memberKevin Li (Li, Ken-un)26-Sep-12 14:57 
QuestionWindows Media does not play .wav files [Solved] [modified] Pin
PJ Arends14-Sep-12 16:56
memberPJ Arends14-Sep-12 16:56 
QuestionXP always runs check disk on start up - no errors found. Pin
Vaclav_Sal11-Sep-12 5:17
memberVaclav_Sal11-Sep-12 5:17 
AnswerRe: XP always runs check disk on start up - no errors found. Pin
Kenneth Haugland11-Sep-12 5:43
memberKenneth Haugland11-Sep-12 5:43 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
Vaclav_Sal11-Sep-12 7:01
memberVaclav_Sal11-Sep-12 7:01 
AnswerRe: XP always runs check disk on start up - no errors found. Pin
Kenneth Haugland11-Sep-12 7:09
memberKenneth Haugland11-Sep-12 7:09 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
Vaclav_Sal11-Sep-12 13:03
memberVaclav_Sal11-Sep-12 13:03 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
jeeteshsrivastava15-Sep-12 0:53
memberjeeteshsrivastava15-Sep-12 0:53 
GeneralRe: XP always runs check disk on start up - no errors found. Pin
jeeteshsrivastava15-Sep-12 0:53
memberjeeteshsrivastava15-Sep-12 0:53 
RantAccess HID token in a Bootloader [modified] Pin
A_Fa3-Sep-12 22:23
memberA_Fa3-Sep-12 22:23 
GeneralRe: Access HID token in a Bootloader Pin
Dave Kreskowiak4-Sep-12 3:14
mvpDave Kreskowiak4-Sep-12 3:14 
QuestionHow to get the properties of more than one display monitor attached to my computer Pin
Nathaniel Lim29-Aug-12 11:10
memberNathaniel Lim29-Aug-12 11:10 
AnswerRe: How to get the properties of more than one display monitor attached to my computer Pin
Dave Kreskowiak29-Aug-12 14:06
mvpDave Kreskowiak29-Aug-12 14:06 
QuestionA couple of questions about graphics cards Pin
Lloyd Atkinson27-Aug-12 9:04
memberLloyd Atkinson27-Aug-12 9:04 
AnswerRe: A couple of questions about graphics cards Pin
Michael Martin 27-Aug-12 17:07
member Michael Martin 27-Aug-12 17:07 
AnswerRe: A couple of questions about graphics cards Pin
A NasseR8-Nov-12 4:17
memberA NasseR8-Nov-12 4:17 

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
Web03 | 2.8.150520.1 | Last Updated 22 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid