RO:LoadExeCRO

RO:LoadExeCRO

Request #

Index WordDescription
0Header code [0x000402C2] ([0x000902C2] for the new version)
1Process-memory input CRO address(usually located on the process heap).
2Process-memory address where the CRO will be mapped, starting at the CRO header(normally in the 0x00100000-0x04000000 range).
3Total size of input CRO.
4Process-memory buffer address to use for the CRO .data section, all CRO .data section addresses are automatically adjusted to use this address.
5Usually zero?
6.data section buffer size.
7Process-memory buffer address to use for the CRO .bss section, all CRO .bss section addresses are automatically adjusted to use this address.
8.bss section buffer size.
9Register as auto-link module if non-zero.
10Fix level.
11Usually zero?
12Must be zero ( translation descriptor)
13KProcess handle

Response #

Index WordDescription
0Header code
1Result code
2CRO size after fixing

Description #

This loads a CRO, and maps virtual memory for it with the required memory-permissions.