Xeno-rat
Loading...
Searching...
No Matches
xeno_rat_server.IconInjector.NativeMethods Class Reference
Collaboration diagram for xeno_rat_server.IconInjector.NativeMethods:

Public Member Functions

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.
 

Member Function Documentation

◆ 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
fileNameThe name of the file whose resource will be updated.
deleteExistingResourcesA boolean value indicating whether to delete existing resources.
Returns
An IntPtr that represents the beginning of the update resource process.
Here is the caller graph for this function:

◆ 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
hUpdateA handle to the update resource. This handle is returned by the BeginUpdateResource function.
discardIndicates 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.
Here is the caller graph for this function:

◆ 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
hUpdateA handle to the update context returned by the BeginUpdateResource function.
typeThe type of the resource to be updated.
nameThe name of the resource to be updated.
languageThe language of the resource to be updated.
dataThe data to be updated.
dataSizeThe size of the data to be updated.
Returns
True if the resource is successfully updated; otherwise, false.
Here is the caller graph for this function:

The documentation for this class was generated from the following file: