home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
netds
/
rpc
/
dynout
/
dynout_c.c
next >
Wrap
C/C++ Source or Header
|
1998-03-30
|
6KB
|
199 lines
/* this ALWAYS GENERATED file contains the RPC client stubs */
/* File created by MIDL compiler version 3.03.0110 */
/* at Mon Mar 30 03:06:59 1998
*/
/* Compiler settings for dynout.idl:
Os (OptLev=s), W1, Zp1, env=Win32, ms_ext, c_ext
error checks: none
*/
//@@MIDL_FILE_HEADING( )
#include <string.h>
#if defined( _ALPHA_ )
#include <stdarg.h>
#endif
#include "dynout.h"
#define TYPE_FORMAT_STRING_SIZE 23
#define PROC_FORMAT_STRING_SIZE 11
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;
/* Standard interface: MemStuff, ver. 1.0,
GUID={0x8b4c8b20,0xfec6,0x11ce,{0xb4,0xeb,0x00,0x80,0xc7,0x79,0xfc,0x83}} */
static const RPC_CLIENT_INTERFACE MemStuff___RpcClientInterface =
{
sizeof(RPC_CLIENT_INTERFACE),
{{0x8b4c8b20,0xfec6,0x11ce,{0xb4,0xeb,0x00,0x80,0xc7,0x79,0xfc,0x83}},{1,0}},
{{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
0,
0,
0,
0,
0,
0
};
RPC_IF_HANDLE MemStuff_v1_0_c_ifspec = (RPC_IF_HANDLE)& MemStuff___RpcClientInterface;
extern const MIDL_STUB_DESC MemStuff_StubDesc;
static RPC_BINDING_HANDLE MemStuff__MIDL_AutoBindHandle;
short GrabChunk(
/* [out] */ long __RPC_FAR *lSize,
/* [size_is][size_is][out] */ unsigned char __RPC_FAR *__RPC_FAR *ppData)
{
short _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
RpcTryFinally
{
NdrClientInitializeNew(
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&MemStuff_StubDesc,
0);
_StubMsg.BufferLength = 0U;
NdrNsGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, MemStuff__MIDL_AutoBindHandle );
NdrNsSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer, (RPC_BINDING_HANDLE __RPC_FAR *) &MemStuff__MIDL_AutoBindHandle );
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
*lSize = *(( long __RPC_FAR * )_StubMsg.Buffer)++;
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppData,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4],
(unsigned char)0 );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 1) & ~ 0x1);
_RetVal = *(( short __RPC_FAR * )_StubMsg.Buffer)++;
}
RpcFinally
{
NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
}
RpcEndFinally
return _RetVal;
}
static const MIDL_STUB_DESC MemStuff_StubDesc =
{
(void __RPC_FAR *)& MemStuff___RpcClientInterface,
MIDL_user_allocate,
MIDL_user_free,
&MemStuff__MIDL_AutoBindHandle,
0,
0,
0,
0,
__MIDL_TypeFormatString.Format,
0, /* -error bounds_check flag */
0x10001, /* Ndr library version */
0,
0x303006e, /* MIDL Version 3.3.110 */
0,
0,
0, /* Reserved1 */
0, /* Reserved2 */
0, /* Reserved3 */
0, /* Reserved4 */
0 /* Reserved5 */
};
#if !defined(__RPC_WIN32__)
#error Invalid build platform for this stub.
#endif
static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
{
0,
{
0x51, /* FC_OUT_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 2 */ NdrFcShort( 0x0 ), /* Type Offset=0 */
/* 4 */
0x51, /* FC_OUT_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 6 */ NdrFcShort( 0x4 ), /* Type Offset=4 */
/* 8 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x6, /* FC_SHORT */
0x0
}
};
static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
{
0,
{
0x11, 0xc, /* FC_RP [alloced_on_stack] [simple_pointer] */
/* 2 */ 0x8, /* FC_LONG */
0x5c, /* FC_PAD */
/* 4 */
0x11, 0x14, /* FC_RP [alloced_on_stack] */
/* 6 */ NdrFcShort( 0x2 ), /* Offset= 2 (8) */
/* 8 */
0x12, 0x0, /* FC_UP */
/* 10 */ NdrFcShort( 0x2 ), /* Offset= 2 (12) */
/* 12 */
0x1b, /* FC_CARRAY */
0x0, /* 0 */
/* 14 */ NdrFcShort( 0x1 ), /* 1 */
/* 16 */ 0x28, /* 40 */
0x54, /* FC_DEREFERENCE */
#ifndef _ALPHA_
/* 18 */ NdrFcShort( 0x0 ), /* x86, MIPS, PPC Stack size/offset = 0 */
#else
NdrFcShort( 0x0 ), /* Alpha Stack size/offset = 0 */
#endif
/* 20 */ 0x2, /* FC_CHAR */
0x5b, /* FC_END */
0x0
}
};