Fix data type
This commit is contained in:
parent
a3087309d6
commit
d849b79975
@ -163,9 +163,9 @@ int GetWeChatVersion(wchar_t *version)
|
||||
return ret;
|
||||
}
|
||||
|
||||
UINT64 GetWeChatPid()
|
||||
DWORD GetWeChatPid()
|
||||
{
|
||||
UINT64 pid = 0;
|
||||
DWORD pid = 0;
|
||||
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
|
||||
PROCESSENTRY32 pe32 = { sizeof(PROCESSENTRY32) };
|
||||
while (Process32Next(hSnapshot, &pe32)) {
|
||||
@ -179,7 +179,7 @@ UINT64 GetWeChatPid()
|
||||
return pid;
|
||||
}
|
||||
|
||||
int OpenWeChat(UINT64 *pid)
|
||||
int OpenWeChat(DWORD *pid)
|
||||
{
|
||||
*pid = GetWeChatPid();
|
||||
if (*pid) {
|
||||
|
@ -20,8 +20,8 @@ typedef struct PortPath {
|
||||
char path[MAX_PATH];
|
||||
} PortPath_t;
|
||||
|
||||
UINT64 GetWeChatPid();
|
||||
int OpenWeChat(UINT64 *pid);
|
||||
DWORD GetWeChatPid();
|
||||
int OpenWeChat(DWORD *pid);
|
||||
int GetWeChatVersion(wchar_t *version);
|
||||
size_t GetWstringByAddress(UINT64 address, wchar_t *buffer, UINT64 buffer_size);
|
||||
UINT32 GetMemoryIntByAddress(HANDLE hProcess, UINT64 address);
|
||||
|
Loading…
Reference in New Issue
Block a user