Fix data type

This commit is contained in:
Changhua 2024-05-02 16:05:58 +08:00
parent a3087309d6
commit d849b79975
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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);