Images are the component of assemblies that actually hold the CIL code and metadata in the extended PE/COFF file.
Images are the actual elements in the runtime that contain the actual code being executed.
Parameters
Returnsfname: filename that points to the module we want to open status: An error condition is returned in this field
An open image of type %MonoImage or NULL on error. The caller holds a temporary reference to the returned image which should be cleared when no longer needed by calling mono_image_close (). if NULL, then check the value of status for details on the error
Parameters
Remarksimage: The image file we wish to close
Closes an image file, deallocates all memory consumed and unmaps all possible sections of the file
Parameters
Remarksimage: The image file we wish to add a reference to
Increases the reference count of an image.
Parameters
Returnsimage: the MonoImage.
the assembly that holds this image.Remarks
Use this routine to get the assembly that owns this image.
Parameters
Returnsimage: the image where the entry point will be looked up.
the token for the entry point method in the imageRemarks
Use this routine to determine the metadata token for method that has been flagged as the entry point.
Parameters
Returnsimage: a MonoImage
the filename.Remarks
Used to get the filename that hold the actual MonoImage
Parameters
Returnsname: a MonoImage
the name of the assembly.
Parameters
Returnsimage: the image where the resource will be looked up. offset: The offset to add to the resource size: a pointer to an int where the size of the resource will be stored
the pointer to the resource whose offset is offset.Remarks
This is a low-level routine that fetches a resource from the metadata that starts at a given offset. The size parameter is filled with the data field as encoded in the metadata.
Parameters
Returnsimage: the MonoImage
TRUE if the image was created dynamically, FALSE if not.Remarks
Determines if the given image was created dynamically through the System.Reflection.Emit API
Parameters
Returnsname: name of the image to load
the loaded MonoImage, or NULL on failure.Remarks
This routine ensures that the given image is loaded.
Parameters
Returnsimage: the image to look up the resource in res_id: A MONO_PE_RESOURCE_ID_ that represents the resource ID to lookup. lang_id: The language id. name: the resource name to lookup.
NULL if not found, otherwise a pointer to the in-memory representation of the given resource. The caller should free it using g_free () when no longer needed.
Parameters
Returnsstatus: an code indicating the result from a recent operation
a string describing the error
Parameters
Returnsimage: a MonoImage size: a guint32 pointer, or NULL.
the position within the image file where the strong name is stored.Remarks
If the image has a strong name, and size is not NULL, the value pointed to by size will have the size of the strong name.
Parameters
Returnsimage: a MonoImage size: a guint32 pointer, or NULL.
NULL if the image does not have a public key, or a pointer to the public key.Remarks
This is used to obtain the public key in the image.
If the image has a public key, and size is not NULL, the value pointed to by size will have the size of the public key.
Parameters
Returnsimage: a MonoImage size: a guint32 pointer, or NULL.
NULL if the image does not have a strong name, or a pointer to the public key.Remarks
If the image has a strong name, and size is not NULL, the value pointed to by size will have the size of the strong name.
Parameters
Returnsimage: the MonoImage
TRUE if the image contains an authenticode entry in the PE directory.Remarks
Use this routine to determine if the image has a Authenticode Certificate Table.
Parameters
Returnsimage: The image we are operating on section: section number that we will load/map into memory
TRUE on successRemarks
This routine makes sure that we have an in-memory copy of an image section (.text, .rsrc, .data).