当前位置:网站首页>The iswow64process function determines the number of program bits
The iswow64process function determines the number of program bits
2022-04-23 20:38:00 【Cambridge art student】
IsWow64Process The return value is TRUE&FALSE, stay MSDN The explanation and definition are as follows :
BOOL IsWow64Process(
HANDLE hProcess, // Target process handle
PBOOL Wow64Process // Inverse value TRUE&FALSE
);
The IsWow64Process function determines whether the specified process is running under WOW64.
in other words IsWow64Process Function is used to determine whether the specified process is in WOW64 Run in a virtual environment . In fact, this function does not have the function of judging the number of digits in essence . However, through the analysis of a given function example, it is not difficult for us to get a popular explanation of the return value of the function .
| Target program | Windows A virtual environment | Return value |
|---|---|---|
| 64-bit | 64-bit | FALSE |
| 32-bit | 64-bit | TRUE |
| 32-bit | 32-bit | FALSE |
Therefore, the true number of bits of the target cannot be obtained only according to the return value , We might as well add the judgment of system digits , Make two comparisons , It's easy to get the number of target processes ! use GetNativeSystemInfo Function to judge the number of bits of the system, which will not be repeated here , Here's how to use IsWow64Process Function to judge the target process !
DWORD IsTargetArchitecture()
{
BOOL IsWow64;
DWORD TargetArchitecture = X86;
HANDLE ProcessHandle;
if (!IsWow64Process(ProcessHandle, &IsWow64)) // Determine whether the function
{
return FALSE;
}
if (IsWow64) // really 32 position
{
TargetArchitecture = X86; // Target process bits
}
else {
SYSTEM_INFO SystemInfo = {
0 };
GetNativeSystemInfo(&SystemInfo); // Get system information
if (SystemInfo.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64) // Get the number of bits in the system 64
TargetArchitecture = X64;
else if (SystemInfo.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL)// Get the number of bits in the system 32
TargetArchitecture = X86;
else
return FALSE;
}
return TargetArchitecture;
}
版权声明
本文为[Cambridge art student]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210546556672.html
边栏推荐
- 三十一. `prototype`显示原型属性和`__proto__`隐式原型属性
- [PTA] l1-006 continuity factor
- After route link navigation, the sub page does not display the navigation style problem
- Unity asset import settings
- LeetCode 20、有效的括号
- Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase
- Shanghai responded that "flour official website is an illegal website": neglect of operation and maintenance has been "hacked", and the police have filed a case
- 上海回应“面粉官网是非法网站”:疏于运维被“黑”,警方已立案
- Vulnhub DC: 1 penetration notes
- Modeling based on catiav6
猜你喜欢

SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in

Click an EL checkbox to select all questions

Installation and use of NVM

【PTA】L1-002 打印沙漏

Shanghai responded that "flour official website is an illegal website": neglect of operation and maintenance has been "hacked", and the police have filed a case

The ODB model calculates the data and outputs it to excel

Elastic box model

上海回应“面粉官网是非法网站”:疏于运维被“黑”,警方已立案
![[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph](/img/fb/9822cccde4ca39d8066024c09a7349.png)
[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph

Numpy - creation of data type and array
随机推荐
JS arrow function user and processing method of converting arrow function into ordinary function
Tensorflow 2 basic operation dictionary
6-5 string - 2 String copy (assignment) (10 points) the C language standard function library includes the strcpy function for string copy (assignment). As an exercise, we write a function with the sam
[graph theory brush question-4] force deduction 778 Swimming in a rising pool
Plato farm is one of the four largest online IEOS in metauniverse, and the transaction on the chain is quite high
内网渗透之DOS命令
LeetCode 1346、检查整数及其两倍数是否存在
Shanghai a répondu que « le site officiel de la farine est illégal »: l'exploitation et l'entretien négligents ont été « noirs » et la police a déposé une plainte
Use of node template engine
Solve the Chinese garbled code of URL in JS - decoding
Scripy tutorial - (2) write a simple crawler
Commit and ROLLBACK in DCL of 16mysql
Solution: NPM err! code ELIFECYCLE npm ERR! errno 1
Research on open source OCR engine
Unity Odin ProgressBar add value column
Commande dos pour la pénétration de l'Intranet
bounding box iou
LeetCode 20、有效的括号
Implementation of mypromise
Leetcode 1351. Negative numbers in statistical ordered matrices