Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ldrctx.c

Go to the documentation of this file.
00001 /*++ 00002 00003 Copyright (c) 1998 Microsoft Corporation 00004 00005 Module Name: 00006 00007 ldrctx.c 00008 00009 Abstract: 00010 00011 This module contains support for relocating executables. 00012 00013 Author: 00014 00015 Landy Wang (landyw) 8-Jul-1998 00016 00017 Environment: 00018 00019 User Mode only 00020 00021 Revision History: 00022 00023 --*/ 00024 00025 #include <ntos.h> 00026 00027 VOID 00028 LdrpRelocateStartContext ( 00029 IN PCONTEXT Context, 00030 IN LONG_PTR Diff 00031 ) 00032 /*++ 00033 00034 Routine Description: 00035 00036 This routine relocates the start context to mesh with the 00037 executable that has just been relocated. 00038 00039 Arguments: 00040 00041 Context - Supplies a context that needs editing. 00042 00043 Diff - Supplies the difference from the based address to the relocated 00044 address. 00045 00046 Return Value: 00047 00048 None. 00049 00050 --*/ 00051 { 00052 Context->Eax += (ULONG)Diff; 00053 }

Generated on Sat May 15 19:40:37 2004 for test by doxygen 1.3.7