Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

94 lines
1.2 KiB

/*++
Copyright (c) 1992 Microsoft Corporation
Module Name:
tranfile.c
Abstract:
Implements the tranfile command.
Author:
Keith Moore (keithmo) 15-Apr-1996
Environment:
User Mode.
Revision History:
--*/
#include "afdkdp.h"
#pragma hdrstop
//
// Public functions.
//
DECLARE_API( tranfile )
/*++
Routine Description:
Dumps the AFD_TRANSMIT_FILE_INFO_INTERNAL structure at the specified
address.
Arguments:
None.
Return Value:
None.
--*/
{
DWORD address = 0;
ULONG result;
AFD_TRANSMIT_FILE_INFO_INTERNAL transmitInfo;
//
// Snag the address from the command line.
//
sscanf( args, "%lx", &address );
if( address == 0 ) {
dprintf( "use: tranfile address\n" );
return;
}
if( ReadMemory(
address,
&transmitInfo,
sizeof(transmitInfo),
&result
) ) {
DumpAfdTransmitInfo(
&transmitInfo,
address
);
} else {
dprintf(
"tranfile: cannot read AFD_TRANSMIT_FILE_INFO_INTERNAL @ %08lx\n",
address
);
}
} // tranfile