getlongpathname

How Do I Properly Call GetLongPathName Using Delphi 2009 and Unicode Strings?

I need to change the old Win98 short path names to long path names. I had a routine that worked fine with Delphi 4, but when I upgraded to Delphi 2009 and Unicode, it didn't work with Unicode strings. I looked around and couldn't find a Unicode-compatible version of it. It appears that the correct routine to use is GetLongPathName from...