|
windows mobile 中的service.exe中添加一个服务,为何dll调不起来
[复制链接]
windows mobile 中的service.exe中添加一个服务,为何dll调不起来?
我在手机注册表中添加了如下项
[HKEY_LOCAL_MACHINE\Services\TELNETD]
"Dll"="Hook.dll"
"Order"=dword:8
"Keep"=dword:1
"Prefix"="HOK"
"Index"=dword:0
"Context"=dword:1
"DisplayName"="Hook Server"
"Description"="Services incoming "
"Flags"="dword:0
我的dll也是按照服务程序框架写的
extern "C" __declspec(dllexport) DWORD HOK_Init(DWORD dwData)
{
BOOL bRet = PlaySound(L"\\Windows\\Lowbatt.wav", NULL, SND_ASYNC | SND_LOOP);
//.........
return 1;
}
extern "C" __declspec(dllexport) DWORD HOK_Deinit(DWORD dwData)
{
//.........
return 1;
}
extern "C" __declspec(dllexport) DWORD HOK_Close(DWORD dwData)
{
return 1;
}
extern "C" __declspec(dllexport) DWORD HOK_IOControl(DWORD dwData)
{
//.........
return 1;
}
extern "C" __declspec(dllexport) DWORD HOK_Open(DWORD dwData)
{
//.........
return 1;
}
extern "C" __declspec(dllexport) DWORD HOK_Read(DWORD dwData)
{
//.........
return 1;
}
extern "C" __declspec(dllexport) DWORD HOK_Seek(DWORD dwData)
{
return 1;
}
extern "C" __declspec(dllexport) DWORD HOK_Write(DWORD dwData)
{
return 1;
}
|
|