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.

27 lines
518 B

  1. #include <stdio.h>
  2. #include <guiddef.h>
  3. #include <windows.h>
  4. #include <wmlum.h> // helper library to simplify WMI registration
  5. //#define HELLO_C
  6. //#include "_tracewpp.h"
  7. #include "hello.c.tmh"
  8. enum {
  9. one,two,three
  10. };
  11. int __cdecl main()
  12. {
  13. int i;
  14. char* s = __FILE__;
  15. WPP_INIT_TRACING_SIMPLE(L"HelloWorldApp");
  16. for(i = 0; i < 20; ++i) {
  17. SimpleTrace("Hello, world! %s %s", LOGNUMBER(i) LOGASTR(s));
  18. SimpleTrace("Hello, world!",NOARGS);
  19. }
  20. SimpleTrace("Hello, %d %s\n", LOGULONG(i) LOGASTR(s) );
  21. }