D_SEC( A ) NTSTATUS NTAPI Entry( _In_ PVOID Parameter ) { PARSED_BUF Psr; UINT32 Wrt = 0; PARG Arg = NULL; LPWSTR Nps = NULL; HANDLE Pip = NULL; /* Zero out stack structures */ RtlZeroMemory( &Psr, sizeof( Psr ) ); /* Is the argument valid? */ if ( Parameter != NULL ) { /* Extract the named pipe argument */ Arg = C_PTR( Parameter ); ParserInit( Arg->Buffer, Arg->Length, &Psr ); Nps = ParserGetBuffer( &Psr, NULL ); /* Create the post-ex communication pipe for rogue */ if ( NT_SUCCESS( PipeInit( Nps, 60000, 60000 * 30, &Pip ) ) ) { PipePrintf( Pip, 0, C_PTR( G_PTR( "Would you like to play a game?" ) ) ); /* Close the pipe and flush the buffers */ PipeFree( Pip, TRUE ); } }; /* Zero out stack structures */ RtlZeroMemory( &Psr, sizeof( Psr ) ); }