Source code of Windows XP (NT5)
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.

33 lines
693 B

  1. /*
  2. * error text and time logging
  3. *
  4. * Functions to log a text string and the system time to a buffer that can
  5. * be sent to a log-reader application.
  6. */
  7. /*
  8. * Log_Create returns this handle. You don't need to know the
  9. * structure layout or size.
  10. */
  11. typedef struct error_log * HLOG;
  12. /* create an empty log */
  13. HLOG Log_Create(void);
  14. /* delete a log */
  15. VOID Log_Delete(HLOG);
  16. /* write a text string (and current time) to the log - printf format */
  17. VOID Log_Write(HLOG, char * szFormat, ...);
  18. /* write a previous formatted string and a time to the log */
  19. VOID Log_WriteData(HLOG, LPFILETIME, LPSTR);
  20. /* send a log to a named-pipe client */
  21. VOID Log_Send(HANDLE hpipe, HLOG hlog);