public static Image getSysFolderIcon(int folderId, int style) {
int type = 0;
if((style & ICON_SMALL)>0)type |= Win32.ICON_SMALL;
if((style & ICON_LARGE)>0)type |= Win32.ICON_LARGE;
int pid = Extension.SHGetSpecialFolderLocation(folderId);
SHFILEINFO shInfo;
if (Extension.IsUnicode)
shInfo = new SHFILEINFOW();
else
shInfo = new SHFILEINFOA();
Extension.SHGetFileInfo(pid, 0, shInfo, SHFILEINFO.sizeof,