--- mstools/samples/rpc/handles/cxhndl/cxhndl.idl 2018/08/09 18:22:03 1.1.1.2 +++ mstools/samples/rpc/handles/cxhndl/cxhndl.idl 2018/08/09 18:24:18 1.1.1.3 @@ -1,20 +1,25 @@ [ uuid (A4F1DB00-CA47-1067-B31F-00DD010662DA), version(1.0), - pointer_default(unique)] + pointer_default(unique) +] interface cxhndl { -#define BUFSIZE 1024 -typedef [context_handle] void * PCONTEXT_HANDLE_TYPE; -typedef [ref] PCONTEXT_HANDLE_TYPE * PPCONTEXT_HANDLE_TYPE; +const short BUFSIZE = 1024; -short RemoteOpen([out] PPCONTEXT_HANDLE_TYPE pphContext, - [in, string] unsigned char * pszFile); +typedef [context_handle] void *PCONTEXT_HANDLE_TYPE; -short RemoteRead([in, out] PPCONTEXT_HANDLE_TYPE pphContext, - [out] unsigned char achBuf[BUFSIZE], - [out] short * pcbBuf); +short RemoteOpen( [out] PCONTEXT_HANDLE_TYPE *pphContext, + [in, string] unsigned char *pszFile + ); + +short RemoteRead( [in] PCONTEXT_HANDLE_TYPE phContext, + [out] unsigned char achBuf[BUFSIZE], + [out] short *pcbBuf + ); + +short RemoteClose( [in, out] PCONTEXT_HANDLE_TYPE *pphContext ); -short RemoteClose([in, out] PPCONTEXT_HANDLE_TYPE pphContext); void Shutdown(void); + }