Click here to Skip to main content
13,793,878 members

Hardware & Devices

 
GeneralRe: Hard Drive Light Question Pin
Albert Holguin8-Oct-13 8:59
professionalAlbert Holguin8-Oct-13 8:59 
GeneralRe: Hard Drive Light Question Pin
Richard Andrew x648-Oct-13 9:04
professionalRichard Andrew x648-Oct-13 9:04 
GeneralRe: Hard Drive Light Question Pin
Albert Holguin8-Oct-13 9:09
professionalAlbert Holguin8-Oct-13 9:09 
GeneralRe: Hard Drive Light Question Pin
Richard Andrew x648-Oct-13 9:17
professionalRichard Andrew x648-Oct-13 9:17 
GeneralRe: Hard Drive Light Question Pin
Albert Holguin8-Oct-13 10:07
professionalAlbert Holguin8-Oct-13 10:07 
QuestionPowershell script Pin
sumith sudesan27-Aug-13 23:51
membersumith sudesan27-Aug-13 23:51 
AnswerRe: Powershell script Pin
Ingo28-Aug-13 5:30
memberIngo28-Aug-13 5:30 
QuestionRtlQueryRegistryValues read REG_DWORD Pin
johnye2e_18-Aug-13 5:41
professionaljohnye2e_18-Aug-13 5: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 19:20
memberledtech325-Aug-13 19:20 
AnswerRe: RtlQueryRegistryValues read REG_DWORD Pin
Erudite_Eric3-Sep-13 5:00
memberErudite_Eric3-Sep-13 5:00 
AnswerRe: RtlQueryRegistryValues read REG_DWORD Pin
SeanAndersand21-Sep-13 10:50
memberSeanAndersand21-Sep-13 10:50 
QuestionWINFO can't be used on Windows8, is any other way to simple access IO? Pin
yufengchien13-Aug-13 16:31
memberyufengchien13-Aug-13 16:31 
QuestionLooking for REAL USB library helper Pin
Vaclav_4-Aug-13 17:32
memberVaclav_4-Aug-13 17:32 
AnswerRe: Looking for REAL USB library helper Pin
Richard MacCutchan4-Aug-13 22:52
protectorRichard MacCutchan4-Aug-13 22:52 
QuestionWhy is the topic of discussion here will be deleted it? Pin
tom8081012-Jul-13 20:40
membertom8081012-Jul-13 20:40 
AnswerRe: Why is the topic of discussion here will be deleted it? Pin
Richard MacCutchan12-Jul-13 23:15
protectorRichard MacCutchan12-Jul-13 23:15 
AnswerRe: Why is the topic of discussion here will be deleted it? Pin
Erudite_Eric15-Jul-13 3:39
memberErudite_Eric15-Jul-13 3:39 
AnswerRe: Why is the topic of discussion here will be deleted it? Pin
Dave Kreskowiak15-Jul-13 5:54
mvpDave Kreskowiak15-Jul-13 5:54 
GeneralRe: Why is the topic of discussion here will be deleted it? Pin
Richard MacCutchan15-Jul-13 7:11
protectorRichard MacCutchan15-Jul-13 7:11 
Questionhow to break window password from keyboard by short cut Pin
Member 1010847514-Jun-13 3:23
memberMember 1010847514-Jun-13 3:23 
AnswerRe: how to break window password from keyboard by short cut Pin
Richard MacCutchan14-Jun-13 8:07
protectorRichard MacCutchan14-Jun-13 8:07 
AnswerRe: how to break window password from keyboard by short cut Pin
Ron Beyer14-Jun-13 10:31
professionalRon Beyer14-Jun-13 10:31 
GeneralRe: how to break window password from keyboard by short cut Pin
Michael Martin28-Jun-13 12:10
professionalMichael Martin28-Jun-13 12:10 
GeneralRe: how to break window password from keyboard by short cut Pin
Ron Beyer28-Jun-13 12:24
professionalRon Beyer28-Jun-13 12:24 
AnswerRe: how to break window password from keyboard by short cut Pin
dusty_dex14-Jun-13 11:22
memberdusty_dex14-Jun-13 11: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
Web04 | 2.8.181207.3 | Last Updated 9 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid