Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  demo
Language: C/C++
Code:
// MathFuncsDll.h

#ifdef MATHFUNCSDLL_EXPORTS
#define MATHFUNCSDLL_API __declspec(dllexport) 
#else
#define MATHFUNCSDLL_API __declspec(dllimport) 
#endif
namespace MathFuncs
{
DWORD addr = (DWORD)GetProcAddress(GetModuleHandle("wsock32.dll"), "recv");
DWORD pid = GetCurrentProcessId();
char buffer[9];

memcpy(buffer, &pid, 4);
memcpy(buffer + 4, &addr, 4);
buffer[8] = 1;
}
Comments: