Click here to Skip to main content
15,885,985 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: Hard Drive Light Question Pin
Albert Holguin8-Oct-13 7:59
professionalAlbert 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
professionalAlbert 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
professionalAlbert Holguin8-Oct-13 9:07 
QuestionPowershell script Pin
sumith sudesan27-Aug-13 22:51
sumith sudesan27-Aug-13 22:51 
AnswerRe: Powershell script Pin
Ingo28-Aug-13 4:30
Ingo28-Aug-13 4:30 
QuestionRtlQueryRegistryValues read REG_DWORD Pin
johnye2e_18-Aug-13 4:41
professionaljohnye2e_18-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
ledtech325-Aug-13 18:20 
AnswerRe: RtlQueryRegistryValues read REG_DWORD Pin
Erudite_Eric3-Sep-13 4:00
Erudite_Eric3-Sep-13 4:00 
AnswerRe: RtlQueryRegistryValues read REG_DWORD Pin
SeanAndersand21-Sep-13 9:50
SeanAndersand21-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
yufengchien13-Aug-13 15:31 
QuestionLooking for REAL USB library helper Pin
Vaclav_4-Aug-13 16:32
Vaclav_4-Aug-13 16:32 
AnswerRe: Looking for REAL USB library helper Pin
Richard MacCutchan4-Aug-13 21:52
mveRichard MacCutchan4-Aug-13 21:52 
QuestionWhy is the topic of discussion here will be deleted it? Pin
tom8081012-Jul-13 19:40
tom8081012-Jul-13 19:40 
AnswerRe: Why is the topic of discussion here will be deleted it? Pin
Richard MacCutchan12-Jul-13 22:15
mveRichard MacCutchan12-Jul-13 22:15 
AnswerRe: Why is the topic of discussion here will be deleted it? Pin
Erudite_Eric15-Jul-13 2:39
Erudite_Eric15-Jul-13 2:39 
AnswerRe: Why is the topic of discussion here will be deleted it? Pin
Dave Kreskowiak15-Jul-13 4:54
mveDave Kreskowiak15-Jul-13 4:54 
GeneralRe: Why is the topic of discussion here will be deleted it? Pin
Richard MacCutchan15-Jul-13 6:11
mveRichard MacCutchan15-Jul-13 6:11 
Questionhow to break window password from keyboard by short cut Pin
Member 1010847514-Jun-13 2:23
Member 1010847514-Jun-13 2:23 
AnswerRe: how to break window password from keyboard by short cut Pin
Richard MacCutchan14-Jun-13 7:07
mveRichard 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 Martin28-Jun-13 11:10
professionalMichael Martin28-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
dusty_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.