rundll32 回调函数

void CALLBACK RundllFuncExample(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
{
USES_CONVERSION;
if (lpszCmdLine)
{
int nArgs = 0;
// 这里用了shell api +_+ 关于这个函数请查看MSDN
LPWSTR* szArglist = ::CommandLineToArgvW(A2W(lpszCmdLine), &nArgs);
if (NULL != szArglist
&& nArgs == REGAPP_ARG_NUM )
{
// 调用真正的dll函数
}
}
}

posted on 2012-11-12 22:45  狼爱上羊  阅读(203)  评论(0编辑  收藏  举报

导航