windows-nt/Source/XPSP1/NT/sdktools/trace/samples/hello/hello.c
2020-09-26 16:20:57 +08:00

28 lines
518 B
C

#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) );
}