I want to implement Service Provider (SP) for WOSA/XFS ?
What I have tried:
I make DLL with export sum function such this
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 Service Provider Call my dll but i can't return any response !!!
My response is
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;
}
}