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