Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/******************************Module*Header*******************************\
* Module Name: dbgext.h * * Copyright (c) 1995-1999 Microsoft Corporation * * Dependencies: * * common macros for debugger extensions * * \**************************************************************************/
/**************************************************************************\
* * GetAddress - symbol of another module * \**************************************************************************/
#define GetAddress(dst, src) \
*((ULONG_PTR *) &dst) = GetExpression(src);
#define GetValue(dst,src) \
GetAddress(dst,src) \ move(dst,dst);
/**************************************************************************\
* * move(dst, src ptr) * \**************************************************************************/
#define move(dst, src) \
ReadMemory((ULONG_PTR) (src), &(dst), sizeof(dst), NULL)
/**************************************************************************\
* * move2(dst ptr, src ptr, num bytes) * \**************************************************************************/ #define move2(dst, src, size) \
ReadMemory((ULONG_PTR) (src), (dst), (size), NULL)
|