private void create()
{
this.hIml = IntPtr.Zero;
if (this.isXpOrAbove())
{
Guid guid = new Guid("46EB5926-582E-4017-9FDF-E8998DAA0950");
int num = SysImageList.SHGetImageList((int)this.size, ref guid, ref this.iImageList);
SysImageList.SHGetImageListHandle((int)this.size, ref guid, ref this.hIml);
}
else
{
SysImageList.SHGetFileInfoConstants sHGetFileInfoConstants = SysImageList.SHGetFileInfoConstants.SHGFI_SYSICONINDEX | SysImageList.SHGetFileInfoConstants.SHGFI_USEFILEATTRIBUTES;
if (this.size == SysImageListSize.smallIcons)
{
sHGetFileInfoConstants |= SysImageList.SHGetFileInfoConstants.SHGFI_SMALLICON;
}
SysImageList.SHFILEINFO sHFILEINFO = default(SysImageList.SHFILEINFO);
uint cbFileInfo = (uint)Marshal.SizeOf(sHFILEINFO.GetType());
this.hIml = SysImageList.SHGetFileInfo(".txt", 128, ref sHFILEINFO, cbFileInfo, (uint)sHGetFileInfoConstants);
Debug.Assert(this.hIml != IntPtr.Zero, "Failed to create Image List");
}
}