View Single Post
  #1  
Old 10-28-2022, 00:22
Teerayoot Teerayoot is offline
Friend
 
Join Date: Mar 2004
Location: ประเทศไทย
Posts: 82
Rept. Given: 0
Rept. Rcvd 3 Times in 2 Posts
Thanks Given: 1
Thanks Rcvd at 16 Times in 8 Posts
Teerayoot Reputation: 3
Process type detaction

https://ibb.co/y5sjcsW
Code:
bool is64BitProcess(DWORD pid)
		{
			BOOL f64 = FALSE;

			//fnIsWow64Process =(LPFN_ISWOW64PROCESS) GetProcAddress(GetModuleHandle(L"kernelbase.dll"), "IsWow64Process");


			HANDLE  hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);

			if (hProcess == 0)
				return -1;
			IsWow64Process(hProcess, &f64) ;
			 return f64;

		}
I suspect detection is wrong.

Here whole Sorce code

https://www.mediafire.com/file/z4ul73x3dra8imx/CppCLR_WinformsProject2.rar/file

compile with VS2019 x64bit.
Reply With Quote