[ros-dev] Probelms with ZwOpenKey or RtlFormatCurrentUserKeyP ath?

Alex Ionescu ionucu at videotron.ca
Wed Aug 2 17:39:26 CEST 2006


Murphy, Ged (Bolton) wrote:
> Timo Kreuzer wrote:
> 
> 
>>This is the code:
>>
>>  RtlFormatCurrentUserKeyPath(&CurrentUserKeyPath);
>>  
>>
> 
> InitializeObjectAttributes(&ObjectAttributes,&CurrentUserKeyPath,OBJ_CASE_IN
> SENSITIVE,NULL,NULL);
> 
>>  Status = ZwOpenKey(&CurrentUserKeyHandle, KEY_READ, &ObjectAttributes);
>>
>>And I always get Status == STATUS_OBJECT_NAME_NOT_FOUND
> 
> 
> What makes you sure ZwOpenKey is failing, and not one of the functions above
> it?
> You should use error checking where nessesary.
> 

That's why I told him to print out the value of &CurrentUserKeyPath. He
seems to have ignored my email...

Best regards,
Alex Ionescu


More information about the Ros-dev mailing list