[Ikvm-developers] ShellApi Problem
Brought to you by:
jfrijters
From: Andras K. <ak...@ch...> - 2013-08-14 12:02:50
|
Hi Jeroen, I recently had troubles using JFileChooser with IKVM 0.42.0.6 (I know, I know...) in an x64 process. One problem was, that all filetype icons always defaults to folder icons. I found SHFILEINFO struct has the member: public IntPtr iIcon; That causes in x64 processes, the file attributes flag (dwAttributes) displayed in the high word of iIcon member, and dwAttributes is always 0. The link in the comment above it (http://msdn.microsoft.com/en-us/library/bb759792%28VS.85%29.aspx) shows, that it should be: public int iIcon; The reason I write, that I checked the latest sources (7.2.4630.5) and ShellApi.SHFILEINFO still has IntPtr iIcon member instead of int iIcon. Though, for unknown reasons, the JFileChooser works ok with the latest IKVM in x64 process. I thought, this info might worth to share. Regards, Andras |