Re: kernel32/locale.c: partially implement GetUserGeoID() (try2)

2007-10-12 Thread Alexandre Julliard
EA Durbin <[EMAIL PROTECTED]> writes: > GEOID WINAPI GetUserGeoID( GEOCLASS GeoClass ) > { > -FIXME("%d\n",GeoClass); > -return GEOID_NOT_AVAILABLE; > +GEOID ret = GEOID_NOT_AVAILABLE; > +static const WCHAR geoW[] = {'G','e','o',0}; > +static const WCHAR nationW[] = {'N','a',

Re: kernel32/locale.c: partially implement GetUserGeoID()

2007-10-10 Thread Alexandre Julliard
EA Durbin <[EMAIL PROTECTED]> writes: > +if(!(hkey = create_registry_key())) return ret; > +hSubkey = NLS_RegOpenSubKey( hkey, geoW ); > +count = sizeof(bufferW); > + > +switch( GeoClass ){ > +case GEOCLASS_NATION: > +NtQueryValueKey(hSubkey, &keyW, KeyValuePartialInfor