mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
1.1 KiB
93 lines
1.1 KiB
/*++
|
|
|
|
Copyright (c) 1992 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
conn.c
|
|
|
|
Abstract:
|
|
|
|
Implements the conn command.
|
|
|
|
Author:
|
|
|
|
Keith Moore (keithmo) 19-Apr-1995
|
|
|
|
Environment:
|
|
|
|
User Mode.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
|
|
#include "afdkdp.h"
|
|
#pragma hdrstop
|
|
|
|
|
|
//
|
|
// Public functions.
|
|
//
|
|
|
|
DECLARE_API( conn )
|
|
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
Dumps the AFD_CONNECTION structure at the specified address.
|
|
|
|
Arguments:
|
|
|
|
None.
|
|
|
|
Return Value:
|
|
|
|
None.
|
|
|
|
--*/
|
|
|
|
{
|
|
|
|
DWORD address = 0;
|
|
ULONG result;
|
|
AFD_CONNECTION connection;
|
|
|
|
//
|
|
// Snag the address from the command line.
|
|
//
|
|
|
|
sscanf( args, "%lx", &address );
|
|
|
|
if( address == 0 ) {
|
|
|
|
dprintf( "use: conn address\n" );
|
|
return;
|
|
|
|
}
|
|
|
|
if( !ReadMemory(
|
|
address,
|
|
&connection,
|
|
sizeof(connection),
|
|
&result
|
|
) ) {
|
|
|
|
dprintf(
|
|
"conn: cannot read AFD_CONNECTION @ %08lx\n",
|
|
address
|
|
);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
DumpAfdConnection(
|
|
&connection,
|
|
address
|
|
);
|
|
|
|
} // conn
|
|
|