📄 pgpkeysvc_s.c
字号:
/* this ALWAYS GENERATED file contains the RPC server stubs */
/* File created by MIDL compiler version 5.01.0164 */
/* at Tue Apr 11 11:48:48 2000
*/
/* Compiler settings for pgpkeysvc.idl:
Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
error checks: allocation ref bounds_check enum stub_data
*/
//@@MIDL_FILE_HEADING( )
#include <string.h>
#include "pgpkeysvc.h"
#define TYPE_FORMAT_STRING_SIZE 47
#define PROC_FORMAT_STRING_SIZE 21
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: PgpKeyService, ver. 1.0,
GUID={0x15cd3850,0x28ca,0x11ce,{0xa4,0xe8,0x00,0xaa,0x00,0x61,0x16,0xcb}} */
extern RPC_DISPATCH_TABLE PgpKeyService_v1_0_DispatchTable;
static const RPC_SERVER_INTERFACE PgpKeyService___RpcServerInterface =
{
sizeof(RPC_SERVER_INTERFACE),
{{0x15cd3850,0x28ca,0x11ce,{0xa4,0xe8,0x00,0xaa,0x00,0x61,0x16,0xcb}},{1,0}},
{{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
&PgpKeyService_v1_0_DispatchTable,
0,
0,
0,
0,
0
};
RPC_IF_HANDLE PgpKeyService_v1_0_s_ifspec = (RPC_IF_HANDLE)& PgpKeyService___RpcServerInterface;
extern const MIDL_STUB_DESC PgpKeyService_StubDesc;
void __RPC_STUB
PgpKeyService_Ping(
PRPC_MESSAGE _pRpcMessage )
{
handle_t Binding;
error_status_t _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
RPC_STATUS _Status;
((void)(_Status));
NdrServerInitializeNew(
_pRpcMessage,
&_StubMsg,
&PgpKeyService_StubDesc);
Binding = _pRpcMessage->Handle;
RpcTryFinally
{
RpcTryExcept
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
if(_StubMsg.Buffer > _StubMsg.BufferEnd)
{
RpcRaiseException(RPC_X_BAD_STUB_DATA);
}
}
RpcExcept( RPC_BAD_STUB_DATA_EXCEPTION_FILTER )
{
RpcRaiseException(RPC_X_BAD_STUB_DATA);
}
RpcEndExcept
_RetVal = Ping(Binding);
_StubMsg.BufferLength = 4U;
_pRpcMessage->BufferLength = _StubMsg.BufferLength;
_Status = I_RpcGetBuffer( _pRpcMessage );
if ( _Status )
RpcRaiseException( _Status );
_StubMsg.Buffer = (unsigned char __RPC_FAR *) _pRpcMessage->Buffer;
*(( error_status_t __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
void __RPC_STUB
PgpKeyService_GetPGPBuf(
PRPC_MESSAGE _pRpcMessage )
{
handle_t Binding;
byte ( __RPC_FAR *Buffer )[ ];
unsigned long BufferLength;
error_status_t _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
BUFFER _pBufferM;
unsigned long okayToBlock;
BUFFER __RPC_FAR *pBuffer;
RPC_STATUS _Status;
((void)(_Status));
NdrServerInitializeNew(
_pRpcMessage,
&_StubMsg,
&PgpKeyService_StubDesc);
Binding = _pRpcMessage->Handle;
Buffer = 0;
( BUFFER __RPC_FAR * )pBuffer = 0;
RpcTryFinally
{
RpcTryExcept
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[4] );
NdrConformantArrayUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&Buffer,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2],
(unsigned char)0 );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
BufferLength = *(( unsigned long __RPC_FAR * )_StubMsg.Buffer)++;
okayToBlock = *(( unsigned long __RPC_FAR * )_StubMsg.Buffer)++;
if(_StubMsg.Buffer > _StubMsg.BufferEnd)
{
RpcRaiseException(RPC_X_BAD_STUB_DATA);
}
}
RpcExcept( RPC_BAD_STUB_DATA_EXCEPTION_FILTER )
{
RpcRaiseException(RPC_X_BAD_STUB_DATA);
}
RpcEndExcept
pBuffer = &_pBufferM;
pBuffer -> Buffer = 0;
_RetVal = GetPGPBuf(
Binding,
*Buffer,
BufferLength,
okayToBlock,
pBuffer);
_StubMsg.BufferLength = 0U + 11U;
NdrSimpleStructBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)pBuffer,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[26] );
_StubMsg.BufferLength += 16;
_pRpcMessage->BufferLength = _StubMsg.BufferLength;
_Status = I_RpcGetBuffer( _pRpcMessage );
if ( _Status )
RpcRaiseException( _Status );
_StubMsg.Buffer = (unsigned char __RPC_FAR *) _pRpcMessage->Buffer;
NdrSimpleStructMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)pBuffer,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[26] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( error_status_t __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)pBuffer,
&__MIDL_TypeFormatString.Format[12] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
static const MIDL_STUB_DESC PgpKeyService_StubDesc =
{
(void __RPC_FAR *)& PgpKeyService___RpcServerInterface,
MIDL_user_allocate,
MIDL_user_free,
0,
0,
0,
0,
0,
__MIDL_TypeFormatString.Format,
1, /* -error bounds_check flag */
0x10001, /* Ndr library version */
0,
0x50100a4, /* MIDL Version 5.1.164 */
0,
0,
0, /* notify & notify_flag routine table */
1, /* Flags */
0, /* Reserved3 */
0, /* Reserved4 */
0 /* Reserved5 */
};
static RPC_DISPATCH_FUNCTION PgpKeyService_table[] =
{
PgpKeyService_Ping,
PgpKeyService_GetPGPBuf,
0
};
RPC_DISPATCH_TABLE PgpKeyService_v1_0_DispatchTable =
{
2,
PgpKeyService_table
};
#if !defined(__RPC_WIN32__)
#error Invalid build platform for this stub.
#endif
static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
{
0,
{
0x4e, /* FC_IN_PARAM_BASETYPE */
0xf, /* FC_IGNORE */
/* 2 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x10, /* FC_ERROR_STATUS_T */
/* 4 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
0xf, /* FC_IGNORE */
/* 6 */
0x4d, /* FC_IN_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 8 */ NdrFcShort( 0x2 ), /* Type Offset=2 */
/* 10 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 12 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 14 */
0x51, /* FC_OUT_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 16 */ NdrFcShort( 0xc ), /* Type Offset=12 */
/* 18 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x10, /* FC_ERROR_STATUS_T */
0x0
}
};
static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
{
0,
{
NdrFcShort( 0x0 ), /* 0 */
/* 2 */
0x1b, /* FC_CARRAY */
0x0, /* 0 */
/* 4 */ NdrFcShort( 0x1 ), /* 1 */
/* 6 */ 0x29, /* Corr desc: parameter, FC_ULONG */
0x0, /* */
#ifndef _ALPHA_
/* 8 */ NdrFcShort( 0x8 ), /* x86, MIPS, PPC Stack size/offset = 8 */
#else
NdrFcShort( 0x10 ), /* Alpha Stack size/offset = 16 */
#endif
/* 10 */ 0x1, /* FC_BYTE */
0x5b, /* FC_END */
/* 12 */
0x11, 0x4, /* FC_RP [alloced_on_stack] */
/* 14 */ NdrFcShort( 0xc ), /* Offset= 12 (26) */
/* 16 */
0x1b, /* FC_CARRAY */
0x0, /* 0 */
/* 18 */ NdrFcShort( 0x1 ), /* 1 */
/* 20 */ 0x19, /* Corr desc: field pointer, FC_ULONG */
0x0, /* */
/* 22 */ NdrFcShort( 0x0 ), /* 0 */
/* 24 */ 0x1, /* FC_BYTE */
0x5b, /* FC_END */
/* 26 */
0x16, /* FC_PSTRUCT */
0x3, /* 3 */
/* 28 */ NdrFcShort( 0x8 ), /* 8 */
/* 30 */
0x4b, /* FC_PP */
0x5c, /* FC_PAD */
/* 32 */
0x46, /* FC_NO_REPEAT */
0x5c, /* FC_PAD */
/* 34 */ NdrFcShort( 0x4 ), /* 4 */
/* 36 */ NdrFcShort( 0x4 ), /* 4 */
/* 38 */ 0x12, 0x0, /* FC_UP */
/* 40 */ NdrFcShort( 0xffffffe8 ), /* Offset= -24 (16) */
/* 42 */
0x5b, /* FC_END */
0x8, /* FC_LONG */
/* 44 */ 0x8, /* FC_LONG */
0x5b, /* FC_END */
0x0
}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -