# How to use "GetFullPathName" function of Win32 API?

Posted by Eric Tseng on January 13, 1999 at 01:03:15:

我想用GetFullPathName来找出任意档案的路径,但是无论传入甚么档名,
一律得到"C:\My Documents\" & Filename,请问该如何使用才正确?
另外,有何方法可以将程式由Registry中得到之APP Path,诸如"C:\Progra~1\"转换成正确
的"C:\Program Files\"?烦请高手赐教!

Follow Ups:

- 查一下 cww 10:34:35 1/14/99 (3)
  - Re: 查一下 Eric Tseng 14:03:49 1/15/99 (2)
    - Re: 查一下 cww 16:25:11 1/15/99 (1)
      - Re: 查一下 Eric Tseng 21:35:53 1/16/99 (0)