2007-03-06 11:34:03 +00:00
|
|
|
|
|
|
|
#pragma warning( disable: 4049 ) /* more than 64k source lines */
|
|
|
|
|
|
|
|
/* this ALWAYS GENERATED file contains the RPC client stubs */
|
|
|
|
|
|
|
|
|
|
|
|
/* File created by MIDL compiler version 5.03.0280 */
|
|
|
|
/* at Fri Mar 24 18:32:16 2006
|
|
|
|
*/
|
|
|
|
/* Compiler settings for ctx.idl:
|
|
|
|
Os (OptLev=s), W1, Zp8, env=Win32 (32b run), ms_ext, c_ext
|
2007-10-19 23:01:40 +00:00
|
|
|
error checks: allocation ref bounds_check enum stub_data
|
|
|
|
VC __declspec() decoration level:
|
2007-03-06 11:34:03 +00:00
|
|
|
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
|
|
|
|
DECLSPEC_UUID(), MIDL_INTERFACE()
|
|
|
|
*/
|
|
|
|
//@@MIDL_FILE_HEADING( )
|
|
|
|
|
|
|
|
#if !defined(_M_IA64) && !defined(_M_AXP64)
|
|
|
|
#include <string.h>
|
|
|
|
#if defined( _ALPHA_ )
|
|
|
|
#include <stdarg.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "ctx.h"
|
|
|
|
|
2007-10-19 23:01:40 +00:00
|
|
|
#define TYPE_FORMAT_STRING_SIZE 23
|
|
|
|
#define PROC_FORMAT_STRING_SIZE 21
|
|
|
|
#define TRANSMIT_AS_TABLE_SIZE 0
|
|
|
|
#define WIRE_MARSHAL_TABLE_SIZE 0
|
2007-03-06 11:34:03 +00:00
|
|
|
|
|
|
|
typedef struct _MIDL_TYPE_FORMAT_STRING
|
|
|
|
{
|
|
|
|
short Pad;
|
|
|
|
unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
|
|
|
|
} MIDL_TYPE_FORMAT_STRING;
|
|
|
|
|
|
|
|
typedef struct _MIDL_PROC_FORMAT_STRING
|
|
|
|
{
|
|
|
|
short Pad;
|
|
|
|
unsigned char Format[ PROC_FORMAT_STRING_SIZE ];
|
|
|
|
} MIDL_PROC_FORMAT_STRING;
|
|
|
|
|
|
|
|
|
|
|
|
extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
|
|
|
|
extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
|
|
|
|
|
2007-10-19 23:01:40 +00:00
|
|
|
#define GENERIC_BINDING_TABLE_SIZE 0
|
2007-03-06 11:34:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Standard interface: hello, ver. 1.0,
|
|
|
|
GUID={0x7a98c250,0x6808,0x11cf,{0xb7,0x3b,0x00,0xaa,0x00,0xb6,0x77,0xa7}} */
|
|
|
|
|
|
|
|
handle_t hBinding;
|
|
|
|
|
|
|
|
|
|
|
|
static const RPC_CLIENT_INTERFACE hello___RpcClientInterface =
|
|
|
|
{
|
|
|
|
sizeof(RPC_CLIENT_INTERFACE),
|
|
|
|
{{0x7a98c250,0x6808,0x11cf,{0xb7,0x3b,0x00,0xaa,0x00,0xb6,0x77,0xa7}},{1,0}},
|
|
|
|
{{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0
|
|
|
|
};
|
|
|
|
RPC_IF_HANDLE hello_v1_0_c_ifspec = (RPC_IF_HANDLE)& hello___RpcClientInterface;
|
|
|
|
|
|
|
|
extern const MIDL_STUB_DESC hello_StubDesc;
|
|
|
|
|
|
|
|
RPC_BINDING_HANDLE hello__MIDL_AutoBindHandle;
|
|
|
|
|
|
|
|
|
2007-10-19 23:01:40 +00:00
|
|
|
void CtxOpen(
|
2007-03-06 11:34:03 +00:00
|
|
|
/* [out] */ PCTXTYPE __RPC_FAR *pphContext,
|
|
|
|
/* [in] */ long Value)
|
|
|
|
{
|
|
|
|
|
|
|
|
RPC_BINDING_HANDLE _Handle = 0;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
RPC_MESSAGE _RpcMessage;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
MIDL_STUB_MESSAGE _StubMsg;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
if(!pphContext)
|
|
|
|
{
|
|
|
|
RpcRaiseException(RPC_X_NULL_REF_POINTER);
|
|
|
|
}
|
|
|
|
RpcTryFinally
|
|
|
|
{
|
|
|
|
NdrClientInitializeNew(
|
|
|
|
( PRPC_MESSAGE )&_RpcMessage,
|
|
|
|
( PMIDL_STUB_MESSAGE )&_StubMsg,
|
|
|
|
( PMIDL_STUB_DESC )&hello_StubDesc,
|
|
|
|
0);
|
2007-10-19 23:01:40 +00:00
|
|
|
|
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
_Handle = hBinding;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
_StubMsg.BufferLength = 4U;
|
|
|
|
NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
*(( long __RPC_FAR * )_StubMsg.Buffer)++ = Value;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
|
|
|
|
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
*pphContext = (void *)0;
|
|
|
|
NdrClientContextUnmarshall(
|
|
|
|
( PMIDL_STUB_MESSAGE )&_StubMsg,
|
|
|
|
( NDR_CCONTEXT __RPC_FAR * )pphContext,
|
|
|
|
_Handle);
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
|
|
|
RpcFinally
|
|
|
|
{
|
|
|
|
NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
|
|
|
RpcEndFinally
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-10-19 23:01:40 +00:00
|
|
|
void CtxHello(
|
2007-03-06 11:34:03 +00:00
|
|
|
/* [in] */ PCTXTYPE phContext)
|
|
|
|
{
|
|
|
|
|
|
|
|
RPC_BINDING_HANDLE _Handle = 0;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
RPC_MESSAGE _RpcMessage;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
MIDL_STUB_MESSAGE _StubMsg;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
RpcTryFinally
|
|
|
|
{
|
|
|
|
NdrClientInitializeNew(
|
|
|
|
( PRPC_MESSAGE )&_RpcMessage,
|
|
|
|
( PMIDL_STUB_MESSAGE )&_StubMsg,
|
|
|
|
( PMIDL_STUB_DESC )&hello_StubDesc,
|
|
|
|
1);
|
2007-10-19 23:01:40 +00:00
|
|
|
|
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
if(phContext != 0)
|
|
|
|
{
|
|
|
|
_Handle = NDRCContextBinding(( NDR_CCONTEXT )phContext);;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
RpcRaiseException(RPC_X_SS_IN_NULL_CONTEXT);
|
|
|
|
}
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
_StubMsg.BufferLength = 20U;
|
|
|
|
NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
NdrClientContextMarshall(
|
|
|
|
( PMIDL_STUB_MESSAGE )&_StubMsg,
|
|
|
|
( NDR_CCONTEXT )phContext,
|
|
|
|
1);
|
|
|
|
NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
|
|
|
RpcFinally
|
|
|
|
{
|
|
|
|
NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
|
|
|
RpcEndFinally
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-10-19 23:01:40 +00:00
|
|
|
void CtxClose(
|
2007-03-06 11:34:03 +00:00
|
|
|
/* [out][in] */ PCTXTYPE __RPC_FAR *pphContext)
|
|
|
|
{
|
|
|
|
|
|
|
|
RPC_BINDING_HANDLE _Handle = 0;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
RPC_MESSAGE _RpcMessage;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
MIDL_STUB_MESSAGE _StubMsg;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
if(!pphContext)
|
|
|
|
{
|
|
|
|
RpcRaiseException(RPC_X_NULL_REF_POINTER);
|
|
|
|
}
|
|
|
|
RpcTryFinally
|
|
|
|
{
|
|
|
|
NdrClientInitializeNew(
|
|
|
|
( PRPC_MESSAGE )&_RpcMessage,
|
|
|
|
( PMIDL_STUB_MESSAGE )&_StubMsg,
|
|
|
|
( PMIDL_STUB_DESC )&hello_StubDesc,
|
|
|
|
2);
|
2007-10-19 23:01:40 +00:00
|
|
|
|
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
if(*pphContext != 0)
|
|
|
|
{
|
|
|
|
_Handle = NDRCContextBinding(( NDR_CCONTEXT )*pphContext);;
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
_StubMsg.BufferLength = 20U;
|
|
|
|
NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
NdrClientContextMarshall(
|
|
|
|
( PMIDL_STUB_MESSAGE )&_StubMsg,
|
|
|
|
( NDR_CCONTEXT )*pphContext,
|
|
|
|
0);
|
|
|
|
NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
|
|
|
|
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[14] );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
NdrClientContextUnmarshall(
|
|
|
|
( PMIDL_STUB_MESSAGE )&_StubMsg,
|
|
|
|
( NDR_CCONTEXT __RPC_FAR * )pphContext,
|
|
|
|
_Handle);
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
|
|
|
RpcFinally
|
|
|
|
{
|
|
|
|
NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
|
|
|
RpcEndFinally
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-10-19 23:01:40 +00:00
|
|
|
const MIDL_STUB_DESC hello_StubDesc =
|
2007-03-06 11:34:03 +00:00
|
|
|
{
|
|
|
|
(void __RPC_FAR *)& hello___RpcClientInterface,
|
|
|
|
MIDL_user_allocate,
|
|
|
|
MIDL_user_free,
|
|
|
|
&hBinding,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
__MIDL_TypeFormatString.Format,
|
|
|
|
1, /* -error bounds_check flag */
|
|
|
|
0x10001, /* Ndr library version */
|
|
|
|
0,
|
|
|
|
0x5030118, /* MIDL Version 5.3.280 */
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0, /* notify & notify_flag routine table */
|
|
|
|
0x1, /* MIDL flag */
|
|
|
|
0, /* Reserved3 */
|
|
|
|
0, /* Reserved4 */
|
|
|
|
0 /* Reserved5 */
|
|
|
|
};
|
|
|
|
|
|
|
|
#if !defined(__RPC_WIN32__)
|
|
|
|
#error Invalid build platform for this stub.
|
|
|
|
#endif
|
|
|
|
|
|
|
|
const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
|
|
|
|
{
|
|
|
|
0,
|
|
|
|
{
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-06 11:34:03 +00:00
|
|
|
0x51, /* FC_OUT_PARAM */
|
|
|
|
#ifndef _ALPHA_
|
|
|
|
0x1, /* x86, MIPS & PPC stack size = 1 */
|
|
|
|
#else
|
|
|
|
0x2, /* Alpha stack size = 2 */
|
|
|
|
#endif
|
|
|
|
/* 2 */ NdrFcShort( 0x2 ), /* Type Offset=2 */
|
|
|
|
/* 4 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
|
|
|
|
0x8, /* FC_LONG */
|
|
|
|
/* 6 */ 0x5b, /* FC_END */
|
|
|
|
0x5c, /* FC_PAD */
|
2007-10-19 23:01:40 +00:00
|
|
|
/* 8 */
|
2007-03-06 11:34:03 +00:00
|
|
|
0x4d, /* FC_IN_PARAM */
|
|
|
|
#ifndef _ALPHA_
|
|
|
|
0x1, /* x86, MIPS & PPC stack size = 1 */
|
|
|
|
#else
|
|
|
|
0x2, /* Alpha stack size = 2 */
|
|
|
|
#endif
|
|
|
|
/* 10 */ NdrFcShort( 0xa ), /* Type Offset=10 */
|
|
|
|
/* 12 */ 0x5b, /* FC_END */
|
|
|
|
0x5c, /* FC_PAD */
|
2007-10-19 23:01:40 +00:00
|
|
|
/* 14 */
|
2007-03-06 11:34:03 +00:00
|
|
|
0x50, /* FC_IN_OUT_PARAM */
|
|
|
|
#ifndef _ALPHA_
|
|
|
|
0x1, /* x86, MIPS & PPC stack size = 1 */
|
|
|
|
#else
|
|
|
|
0x2, /* Alpha stack size = 2 */
|
|
|
|
#endif
|
|
|
|
/* 16 */ NdrFcShort( 0xe ), /* Type Offset=14 */
|
|
|
|
/* 18 */ 0x5b, /* FC_END */
|
|
|
|
0x5c, /* FC_PAD */
|
|
|
|
|
|
|
|
0x0
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
|
|
|
|
{
|
|
|
|
0,
|
|
|
|
{
|
|
|
|
NdrFcShort( 0x0 ), /* 0 */
|
2007-10-19 23:01:40 +00:00
|
|
|
/* 2 */
|
2007-03-06 11:34:03 +00:00
|
|
|
0x11, 0x0, /* FC_RP */
|
|
|
|
/* 4 */ NdrFcShort( 0x2 ), /* Offset= 2 (6) */
|
|
|
|
/* 6 */ 0x30, /* FC_BIND_CONTEXT */
|
|
|
|
0xa0, /* Ctxt flags: via ptr, out, */
|
|
|
|
/* 8 */ 0x0, /* 0 */
|
|
|
|
0x0, /* 0 */
|
|
|
|
/* 10 */ 0x30, /* FC_BIND_CONTEXT */
|
|
|
|
0x41, /* Ctxt flags: in, can't be null */
|
|
|
|
/* 12 */ 0x0, /* 0 */
|
|
|
|
0x0, /* 0 */
|
2007-10-19 23:01:40 +00:00
|
|
|
/* 14 */
|
2007-03-06 11:34:03 +00:00
|
|
|
0x11, 0x0, /* FC_RP */
|
|
|
|
/* 16 */ NdrFcShort( 0x2 ), /* Offset= 2 (18) */
|
|
|
|
/* 18 */ 0x30, /* FC_BIND_CONTEXT */
|
|
|
|
0xe1, /* Ctxt flags: via ptr, in, out, can't be null */
|
|
|
|
/* 20 */ 0x0, /* 0 */
|
|
|
|
0x0, /* 0 */
|
|
|
|
|
|
|
|
0x0
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* !defined(_M_IA64) && !defined(_M_AXP64)*/
|
|
|
|
|