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.

30 lines
399 B

  1. #include <windows.h>
  2. #include <stddef.h>
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. ULONG
  6. DbgPrint(
  7. PCH DebugMessage,
  8. ...
  9. )
  10. {
  11. va_list ap;
  12. char buffer[256];
  13. va_start(ap, DebugMessage);
  14. vsprintf(buffer, DebugMessage, ap);
  15. OutputDebugStringA(buffer);
  16. va_end(ap);
  17. return(0);
  18. }
  19. VOID NTAPI
  20. DbgBreakPoint(VOID)
  21. {
  22. DebugBreak();
  23. }