test: uexec1.c File Reference

Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

# uexec1.c File Reference

`#include <nt.h>`
`#include <ntrtl.h>`
`#include <nturtl.h>`

Go to the source code of this file.

## Functions

NTSTATUS | main (int argc, char *argv[], char *envp[])

## Function Documentation

NTSTATUS main | ( | int | argc,
|  | char * | argv[],
|  | char * | envp[]
| ) |

Definition at line 26 of file uexec1.c.

References DbgPrint.

    00031 {
    00032     ULONG i;
    00033
    00034     DbgPrint( "Entering UEXEC1 User Mode Test Program\n" );
    00035     DbgPrint( "argc = %ld\n", argc );
    00036     for (i=0; i<=argc; i++) {
    00037         DbgPrint( "argv[ %ld ]: %s\n",
    00038                   i,
    00039                   argv[ i ] ? argv[ i ] : "<NULL>"
    00040                 );
    00041         }
    00042     DbgPrint( "\n" );
    00043     for (i=0; envp[i]; i++) {
    00044         DbgPrint( "envp[ %ld ]: %s\n", i, envp[ i ] );
    00045         }
    00046
    00047     DbgPrint( "Leaving UEXEC1 User Mode Test Program\n" );
    00048
    00049     return( STATUS_SUCCESS );
    00050 }