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.

36 lines
655 B

  1. #include "../my3216.h"
  2. /*
  3. * winErrorString: Write the text of an HRESULT into a supplied buffer.
  4. */
  5. LPTSTR
  6. winErrorString(
  7. HRESULT hrErrorCode,
  8. LPTSTR sBuf,
  9. int cBufSize);
  10. /*
  11. * print_error: Print a mesage and the text of an HRESULT .
  12. */
  13. void
  14. print_error(
  15. LPTSTR sMessage,
  16. HRESULT hrErrorCode);
  17. /*
  18. * perror_OKBox: Write the text of an HRESULT in a MessageBox.
  19. */
  20. void
  21. perror_OKBox(
  22. HWND hwnd,
  23. LPTSTR sTitle,
  24. HRESULT hrErrorCode);
  25. /*
  26. * wprintf_OKBox: printf into a MessageBox.
  27. */
  28. void
  29. wprintf_OKBox(
  30. HWND hwnd,
  31. LPTSTR sTitle,
  32. LPTSTR sFormat,
  33. ...);
  34.