Click to See Complete Forum and Search --> : Rename "My Computer"


joscollin
January 24th, 2004, 04:12 AM
Hi,

How can I Rename "My Computer" programmatically

C.Schlue
January 27th, 2004, 04:06 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/setcomputernameex.asp

joscollin
January 27th, 2004, 05:02 AM
Originally posted by C.Schlue
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/setcomputernameex.asp

Hi schule,

SetComputerNameEx changes the NetBIOS name.
What I need is to rename "My Computer".
We cannot rename it programmatically like other folders because it is a virtual folder. There are Shell API's for modifying the display names by giving virtual folder's class id.

I wrote the code but there is a runtime error in IShellFolder::SetNameOf function.