% % This file was automatically produced at Feb 27 2003, 22:51:56 by % c2latex win-call-print.c % \expandafter\ifx\csname indentation\endcsname\relax% \newlength{\indentation}\fi \setlength{\indentation}{0.5em} \begin{flushleft} {\tt \#include} $<${\tt{}windows.h}$>$\mbox{}\\ {\tt \#include} $<${\tt{}stdio.h}$>$\mbox{}\\ \mbox{}\\ {\bf void} main() \{\mbox{}\\ \hspace*{8\indentation}STARTUPINFO si;\mbox{}\\ \hspace*{8\indentation}PROCESS\_INFORMATION pi; \mbox{}\\ \hspace*{16\indentation}memset( \&si, 0, {\bf sizeof}( si ) );\mbox{}\\ \hspace*{8\indentation}si.cb = {\bf sizeof}(si);\mbox{}\\ \hspace*{8\indentation}{\bf if} ( ! CreateProcess( NULL,\mbox{}\\ \hspace*{30\indentation}{\tt"..$\backslash\backslash$..$\backslash\backslash$print$\backslash\backslash$Debug$\backslash\backslash$print.exe 5 100"},\mbox{}\\ \hspace*{30\indentation}NULL, NULL, TRUE, 0, NULL, NULL, \&si, \&pi) )\mbox{}\\ \hspace*{16\indentation}fprintf( stderr, {\tt"CreateProcess failed with \%d$\backslash$n"}, GetLastError() );\mbox{}\\ \hspace*{8\indentation}WaitForSingleObject( pi.hProcess, INFINITE );\mbox{}\\ \hspace*{8\indentation}CloseHandle( pi.hProcess );\mbox{}\\ \hspace*{8\indentation}CloseHandle( pi.hThread );\mbox{}\\ \}\mbox{}\\ \end{flushleft}