private ShellNativeMethods.SIIGBF CalculateFlags() { ShellNativeMethods.SIIGBF flags = 0x0000; if (AllowBiggerSize) { flags |= ShellNativeMethods.SIIGBF.SIIGBF_BIGGERSIZEOK; } if (RetrievalOption == ShellThumbnailRetrievalOptions.CacheOnly) { flags |= ShellNativeMethods.SIIGBF.SIIGBF_INCACHEONLY; } else if (RetrievalOption == ShellThumbnailRetrievalOptions.MemoryOnly) { flags |= ShellNativeMethods.SIIGBF.SIIGBF_MEMORYONLY; } if (FormatOption == ShellThumbnailFormatOptions.IconOnly) { flags |= ShellNativeMethods.SIIGBF.SIIGBF_ICONONLY; } else if (FormatOption == ShellThumbnailFormatOptions.ThumbnailOnly) { flags |= ShellNativeMethods.SIIGBF.SIIGBF_THUMBNAILONLY; } return(flags); }
private ShellNativeMethods.SIIGBF CalculateFlags() { ShellNativeMethods.SIIGBF flags = 0x0000; if (AllowBiggerSize) { flags |= ShellNativeMethods.SIIGBF.BiggerSizeOk; } if (RetrievalOption == ShellThumbnailRetrievalOption.CacheOnly) { flags |= ShellNativeMethods.SIIGBF.InCacheOnly; } else if (RetrievalOption == ShellThumbnailRetrievalOption.MemoryOnly) { flags |= ShellNativeMethods.SIIGBF.MemoryOnly; } if (FormatOption == ShellThumbnailFormatOption.IconOnly) { flags |= ShellNativeMethods.SIIGBF.IconOnly; } else if (FormatOption == ShellThumbnailFormatOption.ThumbnailOnly) { flags |= ShellNativeMethods.SIIGBF.ThumbnailOnly; } return(flags); }