node/lib/metasm/metasm/os/windows.rb
# returns the memory address size of the target process
returns the memory address size of the target process
returns the memory address size of the target process
def addrsz
			@addrsz ||= if WinAPI.respond_to?(:iswow64process)
				byte = 0.chr*8
				if WinAPI.iswow64process(handle, byte)
					if byte != 0.chr*8
						32 
					elsif WinAPI.iswow64process(WinAPI.getcurrentprocess, byte) and byte != 0.chr*8
						64 
					else
						WinAPI.host_cpu.size
					end
				else
					WinAPI.host_cpu.size
				end
			end
		end
def addrsz @addrsz ||= if WinAPI . respond_to? ( :iswow64process ) byte = 0 . chr * 8 if WinAPI . iswow64process ( handle , byte ) if byte != 0 . chr * 8 32 elsif WinAPI . iswow64process ( WinAPI . getcurrentprocess , byte ) and byte != 0 . chr * 8 64 else WinAPI . host_cpu . size end else WinAPI . host_cpu . size end end end
returns the memory address size of the target process
returns the memory address size of the target process
# target = wow64 # us = wow64, target is not