vc生成dll

阅读 49

2022-05-20

#include "stdafx.h"

#include <process.h>

BOOL APIENTRY DllMain( HANDLE hModule,

                       DWORD  ul_reason_for_call,

                       LPVOID lpReserved

      )

{

    return TRUE;

}

extern "C" void __declspec(dllexport)rundos(char cmd[])

{

 system(cmd);

}




精彩评论(0)

0 0 举报