Versions in this module Expand all Collapse all v0 v0.2.2 Dec 15, 2023 Changes in this version + const ErrorIfSigned + const IgnoreSignature + const LCIDDefault + const LCIDNeutral + const RemoveSignature + var DefaultIconSizes = []int + var ErrNoResources = errors.New(errNoRSRC) + var ErrSignedPE = errors.New(errSignedPE) + func ForceCheckSum() exeOption + func IsSignedEXE(exe io.ReadSeeker) (bool, error) + func WithAuthenticode(handling authenticodeHandling) exeOption + type AppManifest struct + AutoElevate bool + Compatibility SupportedOS + DPIAwareness DPIAwareness + Description string + DisableTheming bool + DisableWindowFiltering bool + ExecutionLevel ExecutionLevel + GDIScaling bool + HighResolutionScrollingAware bool + Identity AssemblyIdentity + LongPathAware bool + PrinterDriverIsolation bool + SegmentHeap bool + UIAccess bool + UltraHighResolutionScrollingAware bool + UseCommonControlsV6 bool + func AppManifestFromXML(data []byte) (AppManifest, error) + type Arch string + const ArchAMD64 + const ArchARM + const ArchARM64 + const ArchI386 + type AssemblyIdentity struct + Name string + Version [4]uint16 + func (ai *AssemblyIdentity) UnmarshalJSON(b []byte) error + func (ai AssemblyIdentity) MarshalJSON() ([]byte, error) + type Cursor struct + func LoadCUR(cur io.ReadSeeker) (*Cursor, error) + func NewCursorFromImages(images []CursorImage) (*Cursor, error) + func (cursor *Cursor) SaveCUR(ico io.Writer) error + type CursorImage struct + HotSpot HotSpot + Image image.Image + type DPIAwareness int + const DPIAware + const DPIPerMonitor + const DPIPerMonitorV2 + const DPIUnaware + func (a *DPIAwareness) UnmarshalText(b []byte) error + func (a DPIAwareness) MarshalText() ([]byte, error) + type ExecutionLevel int + const AsInvoker + const HighestAvailable + const RequireAdministrator + func (level *ExecutionLevel) UnmarshalText(b []byte) error + func (level ExecutionLevel) MarshalText() ([]byte, error) + type HotSpot struct + X uint16 + Y uint16 + type ID uint16 + const RT_ACCELERATOR + const RT_ANICURSOR + const RT_ANIICON + const RT_BITMAP + const RT_CURSOR + const RT_DIALOG + const RT_FONT + const RT_FONTDIR + const RT_GROUP_CURSOR + const RT_GROUP_ICON + const RT_HTML + const RT_ICON + const RT_MANIFEST + const RT_MENU + const RT_MESSAGETABLE + const RT_PLUGPLAY + const RT_RCDATA + const RT_STRING + const RT_VERSION + const RT_VXD + type Icon struct + func LoadICO(ico io.ReadSeeker) (*Icon, error) + func NewIconFromImages(images []image.Image) (*Icon, error) + func NewIconFromResizedImage(img image.Image, sizes []int) (*Icon, error) + func (icon *Icon) SaveICO(ico io.Writer) error + type Identifier interface + type Name string + type ResourceSet struct + func LoadFromEXE(exe io.ReadSeeker) (*ResourceSet, error) + func LoadFromEXESingleType(exe io.ReadSeeker, typeID Identifier) (*ResourceSet, error) + func (rs *ResourceSet) Count() int + func (rs *ResourceSet) Get(typeID, resID Identifier, langID uint16) []byte + func (rs *ResourceSet) GetCursor(resID Identifier) (*Cursor, error) + func (rs *ResourceSet) GetCursorTranslation(resID Identifier, langID uint16) (*Cursor, error) + func (rs *ResourceSet) GetIcon(resID Identifier) (*Icon, error) + func (rs *ResourceSet) GetIconTranslation(resID Identifier, langID uint16) (*Icon, error) + func (rs *ResourceSet) Set(typeID, resID Identifier, langID uint16, data []byte) error + func (rs *ResourceSet) SetCursor(resID Identifier, cursor *Cursor) error + func (rs *ResourceSet) SetCursorTranslation(resID Identifier, langID uint16, cursor *Cursor) error + func (rs *ResourceSet) SetIcon(resID Identifier, icon *Icon) error + func (rs *ResourceSet) SetIconTranslation(resID Identifier, langID uint16, icon *Icon) error + func (rs *ResourceSet) SetManifest(manifest AppManifest) + func (rs *ResourceSet) SetVersionInfo(vi version.Info) + func (rs *ResourceSet) Walk(f func(typeID, resID Identifier, langID uint16, data []byte) bool) + func (rs *ResourceSet) WalkType(typeID Identifier, f func(resID Identifier, langID uint16, data []byte) bool) + func (rs *ResourceSet) WriteObject(w io.Writer, arch Arch) error + func (rs *ResourceSet) WriteToEXE(dst io.Writer, src io.ReadSeeker, opt ...exeOption) error + type SupportedOS int + const Win10AndAbove + const Win7AndAbove + const Win81AndAbove + const Win8AndAbove + const WinVistaAndAbove + func (os *SupportedOS) UnmarshalText(b []byte) error + func (os SupportedOS) MarshalText() ([]byte, error)