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.

40 lines
888 B

  1. #if defined(HELP_HACK)
  2. //
  3. // This file is used instead of exthdr.c for the hacked version of
  4. // the help extension that is linked directly to MEP instead of being
  5. // a DLL.
  6. //
  7. // This file defines the 2 extension entry points (ModInfo and EntryPoint)
  8. // but does not define the editor function wrappers. Since the hacked help
  9. // extension is linked directly to MEP, having the wrappers would mean
  10. // re-defining the existing functions, besides, we can call the editor
  11. // functions directly.
  12. //
  13. #include <ext.h>
  14. #include <stddef.h>
  15. #define offsetof(s,m) (size_t)&(((s *)0)->m)
  16. extern struct cmdDesc HelpcmdTable;
  17. extern struct swiDesc HelpswiTable;
  18. EXTTAB ModInfo =
  19. { VERSION,
  20. sizeof (struct CallBack),
  21. &HelpcmdTable,
  22. &HelpswiTable,
  23. { NULL }};
  24. void
  25. EntryPoint (
  26. ) {
  27. WhenLoaded( );
  28. }
  29. #endif