		Frequent Ask Question for TRW ( TR for Win95 )


1. How to load a Win32 (PE) program

2. How to load a 16bit (NE) program

3. How to load a DOS or DPMI program

4. How to trace a running thread

5. How to trace a running DOS or DPMI program

.....




1. How to load a Win32 (PE) program

	a. Just do:
		TRW yourPEprogram.exe

	b. 
		1. Run TRW.exe in Win95.
		2. do 'trnewtcb' in TRW
		3. Alt-Tab to switch to Win95 desktop. Run your PE app.
		4. TRW will catch the new thread, auto switch to TRW , stop
		the program at the first opcode.




2. How to load a 16bit (NE) program

	In full-screen  DOS window of Win95, do
		TRW yourNEprogram.exe



3. How to load a DOS or DPMI program

	1. open a DOS windows in Win95
	2. run TRW in another DOS windows
	3. do 'trnewdos' in TRW
	4. in another dos window, run any DOS app
	5. TRW will catch the new DOS program, auto switch to TRW, stop
	at the first opcode.
	
	For DPMI programs, in most time, command
		g if cs<100		
	can lead to protect mode quickly.
	If this is PM16 and what you need is PM32, usually
		g if cs!=cs		
	can help
		


4. How to trace a running thread

	Do command 'thread' to list all thread running.
	Then do

		TRTCB ring0tcb

	to trace a exist thread in TRW.
		



5. How to trace a running DOS or DPMI program

	Do command 'vm' to list all VM running.
	Then do

		TRVM the_vm_id

	to trace a exist DOS program




LiuTaoTao
liutt@371.net
