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

#include <stdio.h>
#include <guiddef.h>
#include <windows.h>
#include <wmlum.h> // helper library to simplify WMI registration
//#define HELLO_C
//#include "_tracewpp.h"
#include "hello.c.tmh"
enum {
one,two,three
};
int __cdecl main()
{
int i;
char* s = __FILE__;
WPP_INIT_TRACING_SIMPLE(L"HelloWorldApp");
for(i = 0; i < 20; ++i) {
SimpleTrace("Hello, world! %s %s", LOGNUMBER(i) LOGASTR(s));
SimpleTrace("Hello, world!",NOARGS);
}
SimpleTrace("Hello, %d %s\n", LOGULONG(i) LOGASTR(s) );
}