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.
Ged.
I looked and we only have one entry, HKEY_CURRENT_USER\Control Panel\Colors\Background.
Wine does not see any of this with regedit. Testing regedit at work (2k & XP) shows
all of these
settings.
From wine source,
static const char * const DefSysColors[] =
{
"Scrollbar", "192 192 192", /* COLOR_SCROLLBAR */
"Background", "0 128 128", /* COLOR_BACKGROUND */
"ActiveTitle", "0 0 128", /* COLOR_ACTIVECAPTION
*/
"InactiveTitle", "128 128 128", /* COLOR_INACTIVECAPTION
*/
"Menu", "192 192 192", /* COLOR_MENU */
"Window", "255 255 255", /* COLOR_WINDOW */
"WindowFrame", "0 0 0", /* COLOR_WINDOWFRAME */
"MenuText", "0 0 0", /* COLOR_MENUTEXT */
"WindowText", "0 0 0", /* COLOR_WINDOWTEXT */
"TitleText", "255 255 255", /* COLOR_CAPTIONTEXT */
"ActiveBorder", "192 192 192", /* COLOR_ACTIVEBORDER
*/
"InactiveBorder", "192 192 192", /* COLOR_INACTIVEBORDER
*/
"AppWorkSpace", "128 128 128", /* COLOR_APPWORKSPACE
*/
"Hilight", "0 0 128", /* COLOR_HIGHLIGHT */
"HilightText", "255 255 255", /* COLOR_HIGHLIGHTTEXT
*/
"ButtonFace", "192 192 192", /* COLOR_BTNFACE */
"ButtonShadow", "128 128 128", /* COLOR_BTNSHADOW */
"GrayText", "128 128 128", /* COLOR_GRAYTEXT */
"ButtonText", "0 0 0", /* COLOR_BTNTEXT */
"InactiveTitleText", "192 192 192", /*
COLOR_INACTIVECAPTIONTEXT */
"ButtonHilight", "255 255 255", /* COLOR_BTNHIGHLIGHT
*/
"ButtonDkShadow", "0 0 0", /* COLOR_3DDKSHADOW */
"ButtonLight", "224 224 224", /* COLOR_3DLIGHT */
"InfoText", "0 0 0", /* COLOR_INFOTEXT */
"InfoWindow", "255 255 225", /* COLOR_INFOBK */
"ButtonAlternateFace", "180 180 180", /*
COLOR_ALTERNATEBTNFACE */
"HotTrackingColor", "0 0 255", /* COLOR_HOTLIGHT */
"GradientActiveTitle", "16 132 208", /*
COLOR_GRADIENTACTIVECAPTION */
"GradientInactiveTitle", "181 181 181", /*
COLOR_GRADIENTINACTIVECAPTION *
"MenuHilight", "0 0 0", /* COLOR_MENUHILIGHT */
"MenuBar", "192 192 192" /* COLOR_MENUBAR */
};