C# SFTP Remote Side Panel

Advertisement

Maint Tech
Joined:
Posts:
1
Location:
united states

C# SFTP Remote Side Panel

re: C# form VS 2013

I'm able to get the local side panel to show the actual icon for files, i.e.; pdf files show the Adobe Reader icon and docx shows the Word icon using
string[] s = Directory.GetFileSystemEntries("C:\\Shared Files");
But I'm having issues to obtain the remote side panel files to show the icons. I've already tried
NativeMethods.SHGetFileInfo(fileInfo,...
I'm sure it's something I'm overlooking. Can anyone help with a solution?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,245
Location:
Prague, Czechia

Re: C# SFTP Remote Side Panel

Well, this is not really a WinSCP question.
Anyway, WinSCP GUI also uses SHGetFileInfo to obtain icon for a given filename. So it should work, if you use the correct arguments. You can check FakeFileImageIndex function in WinSCP source code.

Reply with quote

Advertisement

You can post new topics in this forum