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

Timo Kreuzer timo.kreuzer at web.de
Wed Aug 2 16:42:36 CEST 2006


Murphy, Ged (Bolton) schrieb:
>
> What makes you sure ZwOpenKey is failing, and not one of the functions above
> it?
> You should use error checking where nessesary.
>
> Ged.
>   
NT_SUCCESS(RtlFormatCurrentUserKeyPath(...)) is TRUE.

InitializeObjectAttributes is a macro, that cannot fail.

#define InitializeObjectAttributes(p,n,a,r,s) { \
  (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
  (p)->RootDirectory = (r); \
  (p)->Attributes = (a); \
  (p)->ObjectName = (n); \
  (p)->SecurityDescriptor = (s); \
  (p)->SecurityQualityOfService = NULL; \
}

I'll try to find out what ObjectAttributes is initiliazed to, but trunk 
is crashing, when compiled with debug = 1.



More information about the Ros-dev mailing list