#!/bin/sh
printf "<html><head><title>NTSTATUS codes</title></head>\n"
printf "<h1>NTSTATUS codes</h1>\n"
printf "These are from the Windows .NET Server 2003 RC2 DDK. Download the script that generated this page <a href=\"convert_ntstatus.sh\">here</a>. Quesions or comments? Mail <a href=\"mailto:jon-nts@nologs.com\">me</a>.<br><br>\n"
printf "<table border=1>\n"
grep \(NTSTATUS\) ntstatus.h | grep \#define | gawk '{print $2" "$3}' | sed s/\(NTSTATUS\)// | sed s/L\)// | sed s/\(0x// | gawk '{print "<TR><TD>"$2"</TD><TD>"$1"</TD></TR>"}'
printf "</table></html>\n"
