node/lib/metasm/metasm/os/windows.rb
# returns true if the process pid exists and we can open it with QUERY_INFORMATION
returns true if the process pid exists and we can open it with QUERY_INFORMATION
returns true if the process pid exists and we can open it with QUERY_INFORMATION
def check_process(pid)
		if h = WinAPI.openprocess(WinAPI::PROCESS_QUERY_INFORMATION, 0, pid)
			WinAPI.closehandle(h)
			true
		end
	end
def check_process ( pid ) if h = WinAPI . openprocess ( WinAPI :: PROCESS_QUERY_INFORMATION , 0 , pid ) WinAPI . closehandle ( h ) true end end
returns true if the process pid exists and we can open it with QUERY_INFORMATION
returns true if the process pid exists and we can open it with QUERY_INFORMATION
pid