Problem of Native Application

hi to All !
i have downloaded the Native Application From here

http://technet.microsoft.com/en-us/sysinternals/bb897447.aspx

i want to use it on “Vista” and Widows 2003. I have DDK 6000 .i
compiled the application for Windows Vista and Windows 2003 too . but
i am unable to see the "Hello World " string ! i have posted it to many forums
but did not get response. i put some out put stirngs too i am getting them but not form the registry! i
here is the code

void NtProcessStartup( PSTARTUP_ARGUMENT Argument )
{
PUNICODE_STRING commandLine;
PWCHAR stringBuffer, argPtr;
UNICODE_STRING helloWorld;
RTL_HEAP_DEFINITION heapParams;

//
// Initialize some heap
//
memset( &heapParams, 0, sizeof( RTL_HEAP_DEFINITION ));
heapParams.Length = sizeof( RTL_HEAP_DEFINITION );
Heap = RtlCreateHeap( 2, 0, 0x100000, 0x1000, 0, &heapParams );

//
// Point at command line
//
print(L"Step1");
commandLine = &Argument->Environment->CommandLine;

//
// Locate the argument
//
argPtr = commandLine->Buffer;
while( *argPtr != L’ ’ ) argPtr++;
argPtr++;
print(L"Step2"); // this never comes

//
// Print out the argument
//
stringBuffer = RtlAllocateHeap( Heap, 0, 256 );
swprintf( stringBuffer, L"\n%s", argPtr );
helloWorld.Buffer = stringBuffer;
helloWorld.Length = wcslen( stringBuffer ) * sizeof(WCHAR);
helloWorld.MaximumLength = helloWorld.Length + sizeof(WCHAR);
NtDisplayString( &helloWorld );
print(L"Step3"); // this never comes
//
// Free heap
//
RtlFreeHeap( Heap, 0, stringBuffer );

//
// Terminate
//
NtTerminateProcess( NtCurrentProcess(), 0 );
}

Any thing that needs to corrected ! i found very less documentation about
this topic!

thanks in advance

Did you boot with /noguiboot?

Good luck,

mm
xxxxx@yahoo.co.in wrote:

hi to All !
i have downloaded the Native Application From here

http://technet.microsoft.com/en-us/sysinternals/bb897447.aspx

i want to use it on “Vista” and Widows 2003. I have DDK 6000 .i
compiled the application for Windows Vista and Windows 2003 too . but
i am unable to see the "Hello World " string ! i have posted it to many forums
but did not get response. i put some out put stirngs too i am getting them but not form the registry! i
here is the code

void NtProcessStartup( PSTARTUP_ARGUMENT Argument )
{
PUNICODE_STRING commandLine;
PWCHAR stringBuffer, argPtr;
UNICODE_STRING helloWorld;
RTL_HEAP_DEFINITION heapParams;

//
// Initialize some heap
//
memset( &heapParams, 0, sizeof( RTL_HEAP_DEFINITION ));
heapParams.Length = sizeof( RTL_HEAP_DEFINITION );
Heap = RtlCreateHeap( 2, 0, 0x100000, 0x1000, 0, &heapParams );

//
// Point at command line
//
print(L"Step1");
commandLine = &Argument->Environment->CommandLine;

//
// Locate the argument
//
argPtr = commandLine->Buffer;
while( *argPtr != L’ ’ ) argPtr++;
argPtr++;
print(L"Step2"); // this never comes

//
// Print out the argument
//
stringBuffer = RtlAllocateHeap( Heap, 0, 256 );
swprintf( stringBuffer, L"\n%s", argPtr );
helloWorld.Buffer = stringBuffer;
helloWorld.Length = wcslen( stringBuffer ) * sizeof(WCHAR);
helloWorld.MaximumLength = helloWorld.Length + sizeof(WCHAR);
NtDisplayString( &helloWorld );
print(L"Step3"); // this never comes
//
// Free heap
//
RtlFreeHeap( Heap, 0, stringBuffer );

//
// Terminate
//
NtTerminateProcess( NtCurrentProcess(), 0 );
}

Any thing that needs to corrected ! i found very less documentation about
this topic!

thanks in advance