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, 29 Feb 2008 02:19:00 -0800,    group: microsoft.public.platformsdk.gdi        back       


EnumbDisplayDevices doesn't work from within a service under Vista   
Hi all,

I want to count the number of displays devices attached to the pc from 
within a service. We need this to be able to check the status of the monitors 
that are attached to the display cards. I use the EnumDisplayDevices function 
to accomplish this. On XP/W2K this was perfectly possible but on Vista it 
refuses to detect the devices. It has probably something to do with the fact 
that all services run in session 0 now under Vista and therefore (I guess) 
has no access to the gdi. When I call the function from within a program 
(with user logged in), it works.
Has anyone got the same phenomenon?

I should appreciate any help because this will be a reason that our app 
should not work on Vista.
Eric
date: Fri, 29 Feb 2008 02:19:00 -0800   author:   EricV

Google
 
Web ureader.com


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