|
#ifndef __COOP__FRAME__H__
#define __COOP__FRAME__H__
#ifdef COOP_EXPORTS
#define COOP_API2 __declspec(dllexport)
#else
#define COOP_API2 __declspec(dllimport)
#endif
#define STDCALL __stdcall
DECLARE_HANDLE(HCOOPSESSION);
typedef VOID (CALLBACK* COOPPROC)(LPCVOID pData, UINT nSize, LPVOID pParam);
#ifdef __cplusplus
extern "C" {
#endif
//
// If current process is created by co-operator, the return value is not NULL
//
COOP_API2 HCOOPSESSION STDCALL GetCoopSession(COOPPROC fnCoopProc, LPVOID pParam);
//
// Create a process
//
COOP_API2 HCOOPSESSION STDCALL StartCoopSession(COOPPROC fnCoopProc, LPVOID pParam, LPCTSTR szPath, LPCVOID pData, UINT nSize);
//
// Set callback function
//
COOP_API2 VOID STDCALL SetCoopSessionProc(HCOOPSESSION hCoopSession, COOPPROC fnCoopProc, LPVOID pParam);
//
// Is co-operator still running
//
COOP_API2 BOOL STDCALL IsCoopSessionValid(HCOOPSESSION hCoopSession);
//
// Release session
//
COOP_API2 VOID STDCALL CloseCoopSession(HCOOPSESSION hCoopSession);
//
// Send data to co-operator
//
COOP_API2 VOID STDCALL SendToCoopSession(HCOOPSESSION hCoopSession, LPCVOID pData, UINT nSize);
#ifdef __cplusplus
}
#endif
#endif//__COOP__FRAME__H__
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.