Convert a 32 bit name of a folder in a 16 bit name...

Hi,

  I need to convert an existing path, like C:\Program files\My Folder\My Application\ in a 16 bit name, like :
C:\PRIGRA~1\MYFOLD~1\MYAPPLI~1\ .
Is there an API function or a MFC function that can manage to automatically convert it ?

Thank you for your attention.
LVL 1
AlexanderAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
Use '::GetShortPathName()'. This API is designed to serve this very purpose...
0
 
AlexanderAuthor Commented:
Cool ! it works !
Thank you very much !
0
All Courses

From novice to tech pro — start learning today.