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.

39 lines
1.8 KiB

  1. #define ConPrintf dprintf
  2. #define MZERO MemZero
  3. #define ADDROF(s) GetExpression("ACPI!" s)
  4. #define FIELDADDROF(s,t,f) (ULONG_PTR)(ADDROF(s) + FIELD_OFFSET(t, f))
  5. #define READMEMBYTE ReadMemByte
  6. #define READMEMWORD ReadMemWord
  7. #define READMEMDWORD ReadMemDWord
  8. #define READMEMULONGPTR ReadMemUlongPtr
  9. #define READSYMBYTE(s) ReadMemByte(ADDROF(s))
  10. #define READSYMWORD(s) ReadMemWord(ADDROF(s))
  11. #define READSYMDWORD(s) ReadMemDWord(ADDROF(s))
  12. #define READSYMULONGPTR(s) ReadMemUlongPtr(ADDROF(s))
  13. #define WRITEMEMBYTE(a,d) WriteMemory(a, &(d), sizeof(BYTE), NULL)
  14. #define WRITEMEMWORD(a,d) WriteMemory(a, &(d), sizeof(WORD), NULL)
  15. #define WRITEMEMDWORD(a,d) WriteMemory(a, &(d), sizeof(DWORD), NULL)
  16. #define WRITEMEMULONGPTR(a,d) WriteMemory(a, &(d), sizeof(ULONG_PTR), NULL)
  17. #define WRITESYMBYTE(s,d) WRITEMEMBYTE(ADDROF(s), d)
  18. #define WRITESYMWORD(s,d) WRITEMEMWORD(ADDROF(s), d)
  19. #define WRITESYMDWORD(s,d) WRITEMEMDWORD(ADDROF(s), d)
  20. #define WRITESYMULONGPTR(s,d) WRITEMEMULONGPTR(ADDROF(s), d)
  21. #define TRACENAME(s)
  22. #define ENTER(n,e)
  23. #define EXIT(n,e)
  24. VOID MemZero(ULONG_PTR uipAddr, ULONG dwSize);
  25. BYTE ReadMemByte(ULONG_PTR uipAddr);
  26. WORD ReadMemWord(ULONG_PTR uipAddr);
  27. DWORD ReadMemDWord(ULONG_PTR uipAddr);
  28. ULONG_PTR ReadMemUlongPtr(ULONG_PTR uipAddr);
  29. PVOID LOCAL GetObjBuff(POBJDATA pdata);
  30. LONG LOCAL GetNSObj(PSZ pszObjPath, PNSOBJ pnsScope, PULONG_PTR puipns,
  31. PNSOBJ pns, ULONG dwfNS);
  32. ULONG LOCAL ParsePackageLen(PUCHAR *ppbOp, PUCHAR *ppbOpNext);
  33. PSZ LOCAL NameSegString(ULONG dwNameSeg);
  34. VOID STDCALL AMLIDbgExecuteCmd(PSZ pszCmd);
  35. LONG LOCAL AMLIDbgHelp(PCMDARG pArg, PSZ pszArg, ULONG dwArgNum,
  36. ULONG dwNonSWArgs);