Re: [ntdev]some times EnumDisplayDevices() is not able to find my driver name.

Almost one month back I had posted this thread but did not get any response
:(. Could you please let me know in case you need some more information on
this before giving your thought.

Since this is an old thread I thought of rewriting the problem once again.
I am installing my mirror driver using devcon.exe, it is getting installed
without any error message but I am not able to find out my device using
EnumDisplayDevices().
*Few observations:*
1.) After reboot driver is getting listed.
2.) So far I have faced this issue with Win7-32/64 bits. It is not happening
with XP-32/64.

Please let me know in case EnumDisplayDevices() is having any known issue
with Win7. Is there any other way to check if driver is present?

/sarbojit

On Fri, Dec 17, 2010 at 11:09 AM, Sarbojit Sarkar wrote:

> Please let me know in case given informations are insufficient or
> incomplete.
>
> /sarbojit
>
> On Thu, Dec 16, 2010 at 6:49 PM, Sarbojit Sarkar wrote:
>
>> Hi,
>> Some times after installation(using devcon) of my driver,
>> EnumDisplayDevices() is not able to find it out. I need to restart or
>> log-off/on to get it listed in the list but I can see driver name in device
>> manager.
>>
>> I am using EnumDisplayDevices like below:
>> …
>> while (result = EnumDisplayDevices(NULL,
>> devNum,
>> &dispDevice,
>> 0))
>> {
>> if (strcmp(&dispDevice.DeviceString[0], driverName) == 0)
>> break;
>>
>> devNum++;
>> }
>> …
>>
>> I have googled the issue found some instances(not in OSR) where people
>> were facing same issue. They were saying entry is not listed because it is
>> not in current session but is there any way to list it in current session
>> because no one will want to restart his system if it is avoidable. I have
>> checked registry entries are in place.
>>
>> Please remember it is not happening always. I have found 2 out of 20
>> trials on Win7-32. But people have observed same on vista as well.
>>
>> /sarbojit
>>
>
>