GetSpecialFolderlPath returns "Desktop" for 0 and for 16

  • Thread starter Thread starter active
  • Start date Start date
A

active

GetSpecialFolderlPath returns "Desktop" for 0 and for 16.

Is there something different between these two

ShellSpecialFolderConstants?



If not, Why is there two identical values?



Any idea?



Thanks
 
From http://msdn2.microsoft.com/en-us/library/ms630424.aspx :

ssfDESKTOP
Microsoft Windows Desktop-virtual folder that is the root of the namespace.
(value = 0)

ssfDESKTOPDIRECTORY

File system directory used to physically store the file objects that are
displayed on the desktop. It is not to be confused with the desktop folder
itself, which is a virtual folder. A typical path is C:\Documents and
Settings\username\Desktop. (value = 16)

Aslo it's likely best to ver used "magic" constants in your code.

(Note that this group is for .NET based applications, you may want to try
another group for future posts).
 
Thanks a lot

Patrice said:
From http://msdn2.microsoft.com/en-us/library/ms630424.aspx :

ssfDESKTOP
Microsoft Windows Desktop-virtual folder that is the root of the
namespace. (value = 0)

ssfDESKTOPDIRECTORY

File system directory used to physically store the file objects that are
displayed on the desktop. It is not to be confused with the desktop folder
itself, which is a virtual folder. A typical path is C:\Documents and
Settings\username\Desktop. (value = 16)

Aslo it's likely best to ver used "magic" constants in your code.

(Note that this group is for .NET based applications, you may want to try
another group for future posts).
 
Back
Top