public sealed class ResHackerWrapper : IDisposable
Public NotInheritable Class ResHackerWrapper
Implements IDisposable
Dim instance As ResHackerWrapper
public ref class ResHackerWrapper sealed : IDisposable
[<SealedAttribute>]
type ResHackerWrapper =
class
interface IDisposable
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Public NotInheritable Class Form1 : Inherits Form
Friend WithEvents ResHacker As New ResHackerWrapper(".\ResHacker.exe")
Private Sub Test() Handles Button1.Click
Dim exitcode As Integer = ResHacker.ExtractMainIcon("C:\File.exe", "C:\Icon.ico")
End Sub
Private Sub ResHacker_Started(ByVal sender As Object, ByVal e As ResHackerStartedEventArgs) _
Handles ResHacker.Started
ProgressBar1.Value = ProgressBar1.Minimum
Dim sb As New Global.System.Text.StringBuilder
With sb
.AppendLine(String.Format("Arguments: ""{0}""", e.Arguments))
.AppendLine(String.Format("ResHacker.exe process id. (PID) is: {0}", CStr(DirectCast(sender, ResHackerWrapper).Process.Id)))
End With
Debug.WriteLine(String.Format("Start Time: {0}", Date.Now.ToLongTimeString))
Debug.WriteLine(sb.ToString())
End Sub
Private Sub ResHacker_Exited(ByVal sender As Object, ByVal e As ResHackerExitedEventArgs) _
Handles ResHacker.Exited
Dim sb As New Global.System.Text.StringBuilder
With sb
' .AppendLine(String.Format("Arguments: ""{0}""", e.Arguments))
.AppendLine(String.Format("Error Message: ""{0}""", e.ErrorMessage))
.AppendLine(String.Format("Exit Code: ""{0}""", e.ExitCode))
End With
Debug.WriteLine(sb.ToString())
Debug.WriteLine(String.Format("End Time: {0}", Date.Now.ToLongTimeString))
End Sub
End Class
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ResHackerWrapper | Initializes a new instance of the ResHackerWrapper class. |
Exists | Gets a value indicating whether the ResHacker.exe file Exists. |
FilePath | Gets the ResHacker.exe filepath. |
LogFilePath | Gets the ResHacker.exe log filepath. |
Process | Gets the ResHacker.exeProcess instance. |
AddResource | Adds a resource into the specified file. |
Dispose | Releases all the resources used by this instance. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
ExtractAllResources | Extracts all the resources of the specified type from the specified file. |
ExtractMainIcon | Extracts the main icon from the specified file. |
ExtractResource | Extracts a resource from the specified file. |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
RemoveMainIcon | Deletes the main icon of the specified file. |
RemoveResource | Removes a resource in the specified file. |
ReplaceMainIcon | Replaces the main icon of the specified file. |
ReplaceResource | Replaces a resource in the specified file. |
RunScript | Runs a ResHacker script. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Exited | Event raised when the ResHacker.exe process has exited. |
Started | Event raised when the ResHacker.exe process has been started. |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |