Getting the "My Device" string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'd like to know how can I get the display name of the device? I need to
build a "FileDialog" windows (custom look & feel, not the one provided by the
standard shell) and when I build the folder list, I need to put the "My
Device" item at the beginning of the list. I could hard-code the name, but my
device uses the MUI and many languages. This item is translated in many
languages, so I need to get the real display name of the device, as displayed
on the desktop (device icon).

Thanks!
 
The device name is stored in the Registry - HKEY_LOCAL_MACHINE\Ident
the value is called "Name"

Peter
 
Thanks Peter, but this is not what I'm looking for. The registry key you are
talking about is the machine identification, the hardware device name.

What I need is the "My Device" text. On the desktop, there is an icon of a
device (orange with a green screen) and it is identified as "My Device". In
Japanese, it is identified as "マイデãƒã‚¤ã‚¹". In French, it is "Mon appareil", etc.
I looked in the "desktop.cpp" code of the Platform Builder source code, but I
couldn't find it.

Thanks again!
--
Léo Gagné
EXFO Electro-Optical Engineering Inc.


Peter Foot said:
The device name is stored in the Registry - HKEY_LOCAL_MACHINE\Ident
the value is called "Name"

Peter
 
[HKEY_CLASSES_ROOT\CLSID\{000214A0-0000-0000-C000-000000000046}]\DisplayName

Remote Registry Editor *will* do a search, you know...

Paul T.

Leo Gagne said:
Thanks Peter, but this is not what I'm looking for. The registry key you
are
talking about is the machine identification, the hardware device name.

What I need is the "My Device" text. On the desktop, there is an icon of a
device (orange with a green screen) and it is identified as "My Device".
In
Japanese, it is identified as "??????". In French, it is "Mon appareil",
etc.
I looked in the "desktop.cpp" code of the Platform Builder source code,
but I
couldn't find it.

Thanks again!
 
Thank you very much !

You are right, Remote Registry Editor can do the search for me... but my
device is configured in Japanese, and I don't write Japanese currently... so
it would have been difficult to find it! :-)

I suppose that this key is updated by the MUI services whenever I change the
language of the interface, right?

Regards!

--
Léo Gagné
EXFO Electro-Optical Engineering Inc.


Paul G. Tobey said:
[HKEY_CLASSES_ROOT\CLSID\{000214A0-0000-0000-C000-000000000046}]\DisplayName

Remote Registry Editor *will* do a search, you know...

Paul T.

Leo Gagne said:
Thanks Peter, but this is not what I'm looking for. The registry key you
are
talking about is the machine identification, the hardware device name.

What I need is the "My Device" text. On the desktop, there is an icon of a
device (orange with a green screen) and it is identified as "My Device".
In
Japanese, it is identified as "??????". In French, it is "Mon appareil",
etc.
I looked in the "desktop.cpp" code of the Platform Builder source code,
but I
couldn't find it.

Thanks again!
 
I don't see any sign of what is happening, but I would suspect that it's in
the ceshell.dll corresponding to the active language/locale. Whether the
registry is changed or whether there is more than one entry, one per
language, maybe, I don't know.

Paul T.

Leo Gagne said:
Thank you very much !

You are right, Remote Registry Editor can do the search for me... but my
device is configured in Japanese, and I don't write Japanese currently...
so
it would have been difficult to find it! :-)

I suppose that this key is updated by the MUI services whenever I change
the
language of the interface, right?

Regards!

--
Léo Gagné
EXFO Electro-Optical Engineering Inc.


Paul G. Tobey said:
[HKEY_CLASSES_ROOT\CLSID\{000214A0-0000-0000-C000-000000000046}]\DisplayName

Remote Registry Editor *will* do a search, you know...

Paul T.

Leo Gagne said:
Thanks Peter, but this is not what I'm looking for. The registry key
you
are
talking about is the machine identification, the hardware device name.

What I need is the "My Device" text. On the desktop, there is an icon
of a
device (orange with a green screen) and it is identified as "My
Device".
In
Japanese, it is identified as "??????". In French, it is "Mon
appareil",
etc.
I looked in the "desktop.cpp" code of the Platform Builder source code,
but I
couldn't find it.

Thanks again!
--
Léo Gagné
EXFO Electro-Optical Engineering Inc.


:

The device name is stored in the Registry - HKEY_LOCAL_MACHINE\Ident
the value is called "Name"

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

Hi,

I'd like to know how can I get the display name of the device? I
need
to
build a "FileDialog" windows (custom look & feel, not the one
provided
by
the
standard shell) and when I build the folder list, I need to put the
"My
Device" item at the beginning of the list. I could hard-code the
name,
but
my
device uses the MUI and many languages. This item is translated in
many
languages, so I need to get the real display name of the device, as
displayed
on the desktop (device icon).

Thanks!
 
Back
Top