GetModuleFilename() returns UNC

GetModuleFilename() returns UNC

Postby hua » Wed Sep 22, 2010 6:56 am

Hi guys,
Our user runs our program from a Win7-64 bit workstation. Instead of the mapped drive letter, it returns the path in UNC format (\\server name\folder...). Any idea how to make it always return the mapped drive instead of UNC?

TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: GetModuleFilename() returns UNC

Postby hua » Wed Sep 22, 2010 8:13 am

For the time being, disabling UAC seems to be the easiest way to get my app working again.

This seems to explain the cause, http://blogs.msdn.com/b/cjacks/archive/ ... vista.aspx

This workaround is not ideal though. Ideally I would like user to be able to have their UAC but at the same time won't cause mapped drives to be hidden, resulting in a UNC to be returned. So anyone with any ideas is welcome :)

TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 102 guests