test: uexec1.c Source File

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

# uexec1.c

Go to the documentation of this file.

    00001 /*++
    00002
    00003 Copyright (c) 1989  Microsoft Corporation
    00004
    00005 Module Name:
    00006
    00007     tUEXEC1.c
    00008
    00009 Abstract:
    00010
    00011     Sub-Test program for the NT OS User Mode Runtime Library (URTL)
    00012
    00013 Author:
    00014
    00015     Steve Wood (stevewo) 18-Aug-1989
    00016
    00017 Revision History:
    00018
    00019 --*/
    00020
    00021 #include <nt.h>
    00022 #include <ntrtl.h>
    00023 #include <nturtl.h>
    00024
    00025 NTSTATUS
    00026 main(
    00027     int argc,
    00028     char *argv[],
    00029     char *envp[]
    00030     )
    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 }