Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to implement Service Provider (SP) for WOSA/XFS ?

What I have tried:

I make DLL with export sum function such this
C++
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
C++
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;
	}
	}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900