提交 6c9e22c9 编写于 作者: P pc-ls

rundll32例子

上级 5be56ac7
// dllmain.cpp : 定义 DLL 应用程序的入口点。 // dllmain.cpp : 定义 DLL 应用程序的入口点。
#include "stdafx.h" #include "stdafx.h"
extern "C"
{
// CALLBACK
__declspec(dllexport) void Foo(HWND hWindow, HINSTANCE hInstance, LPSTR lpszCommandLine, int nCmdShow)
{
if (strlen(lpszCommandLine) != 0)
{
::MessageBoxA(hWindow, lpszCommandLine, "我是标题", MB_OK);
}
else
{
::MessageBoxA(hWindow, "lpszCommandLine is NULL", "我是标题", MB_OK);
}
}
}
BOOL APIENTRY DllMain( HMODULE hModule, BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call, DWORD ul_reason_for_call,
LPVOID lpReserved LPVOID lpReserved
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册