How to get UNC path from absolute pidl ?
-
Any tip / sample code ? Thanks in advance. Miroslav Rajcic
-
Any tip / sample code ? Thanks in advance. Miroslav Rajcic
Try this: BOOL SHGetPathFromIDList(LPCITEMIDLIST pidl,LPTSTR pszPath); and then DWORD WNetGetUniversalName( LPCTSTR lpLocalPath, // path for network resource DWORD dwInfoLevel, // level of information LPVOID lpBuffer, // name buffer LPDWORD lpBufferSize // size of buffer ); Regards, Martin
-
Try this: BOOL SHGetPathFromIDList(LPCITEMIDLIST pidl,LPTSTR pszPath); and then DWORD WNetGetUniversalName( LPCTSTR lpLocalPath, // path for network resource DWORD dwInfoLevel, // level of information LPVOID lpBuffer, // name buffer LPDWORD lpBufferSize // size of buffer ); Regards, Martin
Thanks! First one now works good enough for me. Regards, Miroslav Rajcic