Click here to Skip to main content
13,666,077 members

Hardware & Devices

 
GeneralRe: Hard Drive Light Question Pin
Albert Holguin8-Oct-13 7:59
memberAlbert Holguin8-Oct-13 7:59 
GeneralRe: Hard Drive Light Question Pin
Richard Andrew x648-Oct-13 8:04
professionalRichard Andrew x648-Oct-13 8:04 
GeneralRe: Hard Drive Light Question Pin
Albert Holguin8-Oct-13 8:09
memberAlbert Holguin8-Oct-13 8:09 
GeneralRe: Hard Drive Light Question Pin
Richard Andrew x648-Oct-13 8:17
professionalRichard Andrew x648-Oct-13 8:17 
GeneralRe: Hard Drive Light Question Pin
Albert Holguin8-Oct-13 9:07
memberAlbert Holguin8-Oct-13 9:07 
QuestionPowershell script Pin
sumith sudesan27-Aug-13 22:51
membersumith sudesan27-Aug-13 22:51 
AnswerRe: Powershell script Pin
ihoecken28-Aug-13 4:30
memberihoecken28-Aug-13 4:30 
QuestionRtlQueryRegistryValues read REG_DWORD Pin
Member 954176118-Aug-13 4:41
memberMember 954176118-Aug-13 4:41 
I'm writing a Uart16550 driver, and one of the things I have to do is read from the registry some initialization parameters using RtlQueryRegistryValues.

(a lot of code skipped...)

RTL_QUERY_REGISTRY_TABLE table[2];
and

table[1].QueryRoutine = NULL;
table[1].Name = NULL;
The parameter is stored in the registry as a REG_DWORD and I'm trying to set my table with:

unsigned long buffer;
(because DWORD is not defined in ntddk.h and I'm not sure if I break anything including WinDef.h) and

table[0].EntryContext = &buffer;
The status of the call to RtlQueryRegistryValues is STATUS_SUCCESS

status = RtlQueryRegistryValues(
RTL_REGISTRY_ABSOLUTE,
path,
table,
NULL,
NULL);
but when I try to

DbgPrint("registry: %lu", buffer)
I get way too big numbers (I expected the result to be 1 or 2).

Am I doing something wrong with the DbgPrint, or my parameters aren't set correctly for the query table?

And where is the RED_DWORD data type defined?
AnswerRe: RtlQueryRegistryValues read REG_DWORD Pin
ledtech325-Aug-13 18:20
memberledtech325-Aug-13 18:20 
AnswerRe: RtlQueryRegistryValues read REG_DWORD Pin
Erudite_Eric3-Sep-13 4:00
memberErudite_Eric3-Sep-13 4:00 
AnswerRe: RtlQueryRegistryValues read REG_DWORD Pin
SeanAndersand21-Sep-13 9:50
memberSeanAndersand21-Sep-13 9:50 
QuestionWINFO can't be used on Windows8, is any other way to simple access IO? Pin
yufengchien13-Aug-13 15:31
memberyufengchien13-Aug-13 15:31 
QuestionLooking for REAL USB library helper Pin
Vaclav_Sal4-Aug-13 16:32
memberVaclav_Sal4-Aug-13 16:32 
AnswerRe: Looking for REAL USB library helper Pin
Richard MacCutchan4-Aug-13 21:52
mvpRichard MacCutchan4-Aug-13 21:52 
QuestionWhy is the topic of discussion here will be deleted it? Pin
tom8081012-Jul-13 19:40
membertom8081012-Jul-13 19:40 
AnswerRe: Why is the topic of discussion here will be deleted it? Pin
Richard MacCutchan12-Jul-13 22:15
mvpRichard MacCutchan12-Jul-13 22:15 
AnswerRe: Why is the topic of discussion here will be deleted it? Pin
Erudite_Eric15-Jul-13 2:39
memberErudite_Eric15-Jul-13 2:39 
AnswerRe: Why is the topic of discussion here will be deleted it? Pin
Dave Kreskowiak15-Jul-13 4:54
mvpDave Kreskowiak15-Jul-13 4:54 
GeneralRe: Why is the topic of discussion here will be deleted it? Pin
Richard MacCutchan15-Jul-13 6:11
mvpRichard MacCutchan15-Jul-13 6:11 
Questionhow to break window password from keyboard by short cut Pin
Member 1010847514-Jun-13 2:23
memberMember 1010847514-Jun-13 2:23 
AnswerRe: how to break window password from keyboard by short cut Pin
Richard MacCutchan14-Jun-13 7:07
mvpRichard MacCutchan14-Jun-13 7:07 
AnswerRe: how to break window password from keyboard by short cut Pin
Ron Beyer14-Jun-13 9:31
professionalRon Beyer14-Jun-13 9:31 
GeneralRe: how to break window password from keyboard by short cut Pin
Michael Martin 28-Jun-13 11:10
member Michael Martin 28-Jun-13 11:10 
GeneralRe: how to break window password from keyboard by short cut Pin
Ron Beyer28-Jun-13 11:24
professionalRon Beyer28-Jun-13 11:24 
AnswerRe: how to break window password from keyboard by short cut Pin
dusty_dex14-Jun-13 10:22
memberdusty_dex14-Jun-13 10:22 

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 | Cookies | Terms of Service
Web01-2016 | 2.8.180810.1 | Last Updated 2 Aug 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid