First I apologies for too many replies, and this wont happen again.
I want to enumerate the Ras capable devices here and the only API available
is “RasEnumDevices” which enumerates all the RAS capable devices. And its
return value is Ras* device name* which am getting as “Communications cable
between two computers #8”,“Communications cable between two computers #7”
etc., This API does not return any HID or Instance Id. It returns only
“Device Name” and “Device Type”.
I want to select my device from the list of devices names returned by
RasEnumDevices. Thats the reason I tried to compare with device name. But I
cant find the device name of this kind “Communication cable between two
computers #8” anywhere. I can find only friendly name.
On Tue, Jul 3, 2012 at 8:13 PM, Doron Holan wrote:
> I do get to sleep now and again. Be patient. Off you can get the
> instance id, you can use to compare identity and not use the device
> description or friendly name for comparison. Under the devnode’s reg key (
> there is a setup API call to open it) there will be a value named
> “PortName” which will have the com port string
>
> d
>
> debt from my phone
> ------------------------------
> From: Sethuraman R
> Sent: 7/3/2012 7:05 AM
>
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Friendly name and device name are different.
>
>
> Doron any idea in this?
>
> On Tue, Jul 3, 2012 at 2:49 PM, Sethuraman R wrote:
>
>> Dear Doron,
>> “SetupDiGetDeviceInstanceId” API will get me the device instance path.
>>
>>
>> On Tue, Jul 3, 2012 at 1:37 PM, Sethuraman R wrote:
>>
>>> yes I can Get device Instance ID.
>>>
>>> On Tue, Jul 3, 2012 at 11:04 AM, Doron Holan >>> > wrote:
>>>
>>>> This can easily happen. Can you get a pnp device instance path from
>>>> these APIs?
>>>>
>>>> d
>>>>
>>>> debt from my phone
>>>> ------------------------------
>>>> From: xxxxx@gmail.com
>>>> Sent: 7/2/2012 9:58 PM
>>>> To: Windows System Software Devs Interest List
>>>> Subject: [ntdev] Friendly name and device name are different.
>>>>
>>>> Hi all,
>>>>
>>>> I enumerated the RAS capable devices using “RasEnumDevices” and I am
>>>> getting the DeviceName as “Communications cable between two computers
>>>> #8”,“Communications cable between two computers #7” etc.,
>>>> And my friendly name of the device looks different as “USB Device
>>>> (COM10)”.
>>>>
>>>> Is this the normal behaviour? Because When I try to create a
>>>> Rasphonebook, I cant Identify my connected device name. Is there a way to
>>>> make both device name and friendly name same?
>>>>
>>>> or any Apis available only to list the connected RAS devices?
>>>>
>>>>
>>>> —
>>>> NTDEV is sponsored by OSR
>>>>
>>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>>> http://www.osr.com/seminars
>>>>
>>>> To unsubscribe, visit the List Server section of OSR Online at
>>>> http://www.osronline.com/page.cfm?name=ListServer
>>>>
>>>>
>>>> —
>>>> NTDEV is sponsored by OSR
>>>>
>>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>>> http://www.osr.com/seminars
>>>>
>>>> To unsubscribe, visit the List Server section of OSR Online at
>>>> http://www.osronline.com/page.cfm?name=ListServer
>>>>
>>>
>>>
>>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>