C# Class Vestris.ResourceLib.Resource

A version resource.
Afficher le fichier Open project: dblock/resourcelib Class Usage Examples

Protected Properties

Свойство Type Description
_hModule System.IntPtr
_hResource System.IntPtr
_language System.UInt16
_name ResourceId
_size int
_type ResourceId

Méthodes publiques

Méthode Description
DeleteFrom ( string filename ) : void

Delete a resource from an executable (.exe or .dll) file.

LoadFrom ( string filename ) : void

Load a resource from an executable (.exe or .dll) file.

Save ( string filename, IEnumerable resources ) : void

Save a batch of resources to a given file.

SaveTo ( string filename ) : void

Save a resource.

WriteAndGetBytes ( ) : byte[]

Return resource data.

Private Methods

Méthode Description
Delete ( string filename, ResourceId type, ResourceId name, UInt16 lang ) : void

Delete a resource from an executable (.exe or .dll) file.

LoadFrom ( IntPtr hModule, ResourceId type, ResourceId name, UInt16 lang ) : void

Load a resource from an executable (.exe or .dll) module.

LoadFrom ( string filename, ResourceId type, ResourceId name, UInt16 lang ) : void

Load a resource from an executable (.exe or .dll) file.

LockAndReadResource ( IntPtr hModule, IntPtr hResource ) : void

Lock and read the resource.

Read ( IntPtr hModule, IntPtr lpRes ) : IntPtr

Read a resource from a previously loaded module.

Resource ( ) : System

A new resource.

Resource ( IntPtr hModule, IntPtr hResource, ResourceId type, ResourceId name, UInt16 language, int size ) : System

A structured resource embedded in an executable module.

SaveTo ( string filename, ResourceId type, ResourceId name, UInt16 langid ) : void

Save a resource to an executable (.exe or .dll) file.

SaveTo ( string filename, ResourceId type, ResourceId name, UInt16 lang, byte data ) : void

Save a resource to an executable (.exe or .dll) file.

Write ( BinaryWriter w ) : void

Write the resource to a memory stream.

Method Details

DeleteFrom() public méthode

Delete a resource from an executable (.exe or .dll) file.
public DeleteFrom ( string filename ) : void
filename string Path to an executable file.
Résultat void

LoadFrom() public méthode

Load a resource from an executable (.exe or .dll) file.
public LoadFrom ( string filename ) : void
filename string An executable (.exe or .dll) file.
Résultat void

Save() public static méthode

Save a batch of resources to a given file.
public static Save ( string filename, IEnumerable resources ) : void
filename string Path to an executable file.
resources IEnumerable The resources to write.
Résultat void

SaveTo() public méthode

Save a resource.
public SaveTo ( string filename ) : void
filename string Name of an executable file (.exe or .dll).
Résultat void

WriteAndGetBytes() public méthode

Return resource data.
public WriteAndGetBytes ( ) : byte[]
Résultat byte[]

Property Details

_hModule protected_oe property

Loaded binary nodule.
protected IntPtr,System _hModule
Résultat System.IntPtr

_hResource protected_oe property

Pointer to the resource.
protected IntPtr,System _hResource
Résultat System.IntPtr

_language protected_oe property

Resource language.
protected UInt16,System _language
Résultat System.UInt16

_name protected_oe property

Resource name.
protected ResourceId,Vestris.ResourceLib _name
Résultat ResourceId

_size protected_oe property

Resource size.
protected int _size
Résultat int

_type protected_oe property

Resource type.
protected ResourceId,Vestris.ResourceLib _type
Résultat ResourceId