Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 31 Aug 2007 12:01:55 -0400,    group: microsoft.public.platformsdk.com_ole        back       


EnumClassesOfCategories not finding class under standard user, stops trying   
i'm calling ICatInformation::EnumClassesOfCategories and it works fine, 
except on this one machine when it logs in as a standard user.

At first i assumed that the user must not have access to those specific 
registry keys, but if i log in as that user, i can see the keys without 
problems.


HKEY_LOCAL_MACHINE
    \SOFTWARE
        \Classes
            \CLSID
                \{68AB827E-E297-447B-8406-AEAAB27E4A9B}
                    \Implemented Categories
                        \{21A60B09-CDB8-455E-B110-E8B7598641A6}
        \Component Categories
            \{21A60B09-CDB8-455E-B110-E8B7598641A6}
                    409: REZ_SZ = 'My Component Category'


i can see all this in the registry without problems. Checking security on 
the registry keys (Window XP), regular Users have read access to these keys.


So i try to debug EnumClassesOfCategories by watching it's progress with 
RegMon, and i can see that it stops hunting through keys after it reaches 
the {3's.  And looking at the specific key it stops at, there's nothing 
extra ordinary about it that could explain it failing to continue.

So what could possibly be going on where
    a) works under administrative user
    b) doesn't return clsid's as standard user
    c) keys are readable and valid as standard user
date: Fri, 31 Aug 2007 12:01:55 -0400   author:   Ian Boyd

Re: EnumClassesOfCategories not finding class under standard user, stops trying   
Sure sounds like a permissions issue on the registry. You might try to use regedt32 (not regedit) on the target machine to actually 
view the permissions directly. (Just a suggestion... I'm not sure how you will isolate which key is causing the issue.)

Brian
date: Fri, 31 Aug 2007 10:13:16 -0700   author:   Brian Muth

Re: EnumClassesOfCategories not finding class under standard user, stops trying   
> Sure sounds like a permissions issue on the registry. You might try to use 
> regedt32 (not regedit) on the target machine to actually view the 
> permissions directly. (Just a suggestion... I'm not sure how you will 
> isolate which key is causing the issue.)


It's my own machine. e.g. i wasn't connecting to a remote registry.

i log onto my own machine as a "standard" user, and i can see the values in 
the registry myself, but EnumClassesOfCategories cannot.

And i can see the registry entires where it failed.
date: Fri, 31 Aug 2007 14:28:53 -0400   author:   Ian Boyd

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us