|
static IntPtr | BeginUpdateResource (string fileName, [MarshalAs(UnmanagedType.Bool)] bool deleteExistingResources) |
| Begins an update of the resource of the specified file.
|
|
static bool | UpdateResource (IntPtr hUpdate, IntPtr type, IntPtr name, short language, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex=5)] byte[] data, int dataSize) |
| Updates a resource in a portable executable (PE) file or a resource file.
|
|
static bool | EndUpdateResource (IntPtr hUpdate, [MarshalAs(UnmanagedType.Bool)] bool discard) |
| Ends the update of a resource file that was previously opened for editing.
|
|
◆ BeginUpdateResource()
static IntPtr xeno_rat_server.IconInjector.NativeMethods.BeginUpdateResource |
( |
string | fileName, |
|
|
[MarshalAs(UnmanagedType.Bool)] bool | deleteExistingResources ) |
Begins an update of the resource of the specified file.
- Parameters
-
fileName | The name of the file whose resource will be updated. |
deleteExistingResources | A boolean value indicating whether to delete existing resources. |
- Returns
- An IntPtr that represents the beginning of the update resource process.
◆ EndUpdateResource()
static bool xeno_rat_server.IconInjector.NativeMethods.EndUpdateResource |
( |
IntPtr | hUpdate, |
|
|
[MarshalAs(UnmanagedType.Bool)] bool | discard ) |
Ends the update of a resource file that was previously opened for editing.
- Parameters
-
hUpdate | A handle to the update resource. This handle is returned by the BeginUpdateResource function. |
discard | Indicates whether to write the resource updates to the file. If this parameter is TRUE, the resource updates are discarded. If it is FALSE, the updates are written to the file. |
- Returns
- True if the resource update is successfully ended; otherwise, false.
◆ UpdateResource()
static bool xeno_rat_server.IconInjector.NativeMethods.UpdateResource |
( |
IntPtr | hUpdate, |
|
|
IntPtr | type, |
|
|
IntPtr | name, |
|
|
short | language, |
|
|
[MarshalAs(UnmanagedType.LPArray, SizeParamIndex=5)] byte[] | data, |
|
|
int | dataSize ) |
Updates a resource in a portable executable (PE) file or a resource file.
- Parameters
-
hUpdate | A handle to the update context returned by the BeginUpdateResource function. |
type | The type of the resource to be updated. |
name | The name of the resource to be updated. |
language | The language of the resource to be updated. |
data | The data to be updated. |
dataSize | The size of the data to be updated. |
- Returns
- True if the resource is successfully updated; otherwise, false.
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/xeno rat server/MainForm.cs