29 lines
516 B
C
29 lines
516 B
C
|
// FakeProcessDll.cpp : <20><><EFBFBD><EFBFBD> DLL Ӧ<>ó<EFBFBD><C3B3><EFBFBD><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
//
|
|||
|
|
|||
|
#include "stdafx.h"
|
|||
|
#include "MyFake.h"
|
|||
|
|
|||
|
/*
|
|||
|
ע<EFBFBD>ⲻʹ<EFBFBD><EFBFBD>Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><EFBFBD>
|
|||
|
C++ -> Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ -> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ
|
|||
|
*/
|
|||
|
|
|||
|
void Fake(DWORD dwPID, TCHAR *lpszPath, TCHAR *lpszCmd)
|
|||
|
{
|
|||
|
if (0 == dwPID)
|
|||
|
{
|
|||
|
// FakeCurrentProcess(lpszPath, lpszCmd);
|
|||
|
FakeOtherProcess(GetCurrentProcessId(), lpszPath, lpszCmd);
|
|||
|
}
|
|||
|
else if (0 < dwPID)
|
|||
|
{
|
|||
|
FakeOtherProcess(dwPID, lpszPath, lpszCmd);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
/*
|
|||
|
ע<EFBFBD>ⲻʹ<EFBFBD><EFBFBD>Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><EFBFBD>
|
|||
|
C++ -> Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ -> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ
|
|||
|
*/
|