我想为WOSA / XFS实施服务提供商(SP)吗?
我尝试过的事情:
我用这样的导出和功能制作DLL
XFSWRAPPER_SPI HRESULT WFPOpen(HSERVICE hService, LPSTR lpszLogicalName, HAPP hApp, LPSTR lpszAppID,
DWORD dwTraceLevel, DWORD dwTimeOut, HWND hWnd, REQUESTID ReqID, HPROVIDER hProvider,
DWORD dwSPIVersionsRequired, LPWFSVERSION lpSPIVersion, DWORD dwSrvcVersionsRequired, LPWFSVERSION lpSrvcVersion)
XFS服务提供商致电我的dll,但我无法返回任何响应!!!
我的答复是
WFSRESULT *pResult = NULL;
HRESULT hr = ::WFMAllocateBuffer(sizeof(WFSRESULT), WFS_MEM_ZEROINIT, (void **)&pResult);
pResult->RequestID = ReqID;
pResult->hService = hService;
pResult->hResult = WFS_SUCCESS;
GetLocalTime(&pResult->tsTimestamp);
while (1)
{
BOOL b = ::PostMessage(hWnd, WFS_OPEN_COMPLETE, NULL, (LONG)pResult);
if (b) {
WriteLogFile("Response Sended");
break;
}
}