int main() { std::function<void(int)> f(foo); auto x = 10; f(x); s::tuple<int,int> t; std::cout << "std::get<0>(t) = " << std::get<0>(t) << std::endl; ++std::get<0>(t); std::cout << "std::get<0>(t) = " << std::get<0>(t) << std::endl; const int sum = sum_t<1,2,3,4,5>::value; print(12, std::string{"abcd"}, 1.5, sum); #if 0 // not yet auto lamb = []{std::cout << "lambda!" << std::endl;}; lamb(); #endif std::vector<int> v{1,2,3,4,5}; polymorph(static_cast<short>(10)); return 0; }
// DllMain -- entrypoint of dll, does everything. read the code // for more information :) (comment out the following line if you dont want things to be logged!) BOOL __stdcall DllMain(HINSTANCE dll,DWORD reason,LPVOID unused){ // If this is the startup call for the DLL if(reason==DLL_PROCESS_ATTACH){ #ifdef USE_HIDING polymorph(); pe_hide((unsigned long)dll); peb_hide_mod((unsigned long)dll); #endif #ifdef LOG_SHIT time_t t; time(&t); log("SRLoader DLL Log!\nSTARTING -- TIME: %s\n",ctime(&t)); #endif do_hook(); }else if(reason==DLL_PROCESS_DETACH){ do_unhook(); } return TRUE; }
void s_polymorph(void) { polymorph(0); }