6#define TYPE_FORMAT_STRING_SIZE 23
7#define PROC_FORMAT_STRING_SIZE 21
8#define TRANSMIT_AS_TABLE_SIZE 0
9#define WIRE_MARSHAL_TABLE_SIZE 0
45 printf(
"\n*******************************************************************\n");
46 printf(
"**** CtxOpen() ***\n");
47 printf(
"*******************************************************************\n\n");
81 *pphContext = (
void *)0;
87 ctx = (
char*)*pphContext;
88 printf(
"\nNdrClientContextUnmarshall returned: handle=0x%p\n",
ctx);
89 printf(
"00: 0x%x <- obviously pointer to binding handle copyed from _Handle\n", *((
int*)
ctx));
91 printf(
"04: 0x%x <- unknown field\n", *((
int*)
ctx));
94 for(
ctx+=4,
i = 0;
i < 20;
i++)
146 *pphContext = (
void *)0;
219 printf(
"\n*******************************************************************\n");
220 printf(
"**** CtxHello() ***\n");
221 printf(
"*******************************************************************\n\n");
249 printf(
"After NdrClientContextMarshall: Buflen=%d\nBuffer: ", _StubMsg.
BufferLength );
279 printf(
"\n*******************************************************************\n");
280 printf(
"**** CtxClose() ***\n");
281 printf(
"*******************************************************************\n\n");
316 printf(
"Before NdrClientContextUnmarshall: Buflen=%d\nBuffer: ", _StubMsg.
BufferLength );
327 printf(
"\nNdrClientContextUnmarshall returned: handle=0x%p\n", *pphContext);
345 printf(
"\nPress any key to continue...");
354 unsigned long ulCode;
356 char *pszStringBinding =
NULL;
365 printf(
"USAGE: client.exe <test_number> [test_value] [interactive]\n"
368 "1. NULL pointer test\n"
369 "2. Context rundown routine");
414 printf(
"NDRCContextBinding(NULL) returned %p\n",
Handle);
428 printf(
"NDRCContextMarshall(NULL) returned %p\n",
Handle);
443 printf(
"Unknown test %d\n", test_num);
void CtxOpen(PCTXTYPE __RPC_FAR *pphContext, long Value)
CTXTYPE __RPC_FAR * PCTXTYPE
VOID WINAPI ExitProcess(IN UINT uExitCode)
void WINAPI NdrClientContextMarshall(PMIDL_STUB_MESSAGE pStubMsg, NDR_CCONTEXT ContextHandle, int fCheck)
void WINAPI NdrClientContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg, NDR_CCONTEXT *pContextHandle, RPC_BINDING_HANDLE BindHandle)
void WINAPI NdrConvert(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat)
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
void m_CtxHello(PCTXTYPE phContext)
void m_CtxOpen2(PCTXTYPE __RPC_FAR *pphContext, long Value)
void m_CtxClose(PCTXTYPE __RPC_FAR *pphContext)
const MIDL_STUB_DESC hello_StubDesc
#define PROC_FORMAT_STRING_SIZE
struct _MIDL_PROC_FORMAT_STRING MIDL_PROC_FORMAT_STRING
const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString
void m_CtxOpen(PCTXTYPE __RPC_FAR *pphContext, long Value)
#define TYPE_FORMAT_STRING_SIZE
struct _MIDL_TYPE_FORMAT_STRING MIDL_TYPE_FORMAT_STRING
void WINAPI NdrClientInitializeNew(PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum)
void WINAPI NdrFreeBuffer(PMIDL_STUB_MESSAGE pStubMsg)
unsigned char *WINAPI NdrGetBuffer(PMIDL_STUB_MESSAGE stubmsg, ULONG buflen, RPC_BINDING_HANDLE handle)
unsigned char *WINAPI NdrSendReceive(PMIDL_STUB_MESSAGE stubmsg, unsigned char *buffer)
RPC_BINDING_HANDLE WINAPI NDRCContextBinding(NDR_CCONTEXT CContext)
void WINAPI NDRCContextUnmarshall(NDR_CCONTEXT *CContext, RPC_BINDING_HANDLE hBinding, void *pBuff, ULONG DataRepresentation)
void WINAPI NDRCContextMarshall(NDR_CCONTEXT CContext, void *pBuff)
RPC_STATUS WINAPI RpcBindingFree(RPC_BINDING_HANDLE *Binding)
#define RpcStringBindingCompose
#define RpcBindingFromStringBinding
#define NDR_LOCAL_DATA_REPRESENTATION
const unsigned char * PFORMAT_STRING
void DECLSPEC_NORETURN WINAPI RpcRaiseException(RPC_STATUS exception)
_Check_return_ _CRTIMP int __cdecl getch(void)
#define RpcExceptionCode()
#define midl_user_allocate
unsigned char * BufferEnd
unsigned char * BufferStart
unsigned int BufferLength
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
#define RPC_X_SS_IN_NULL_CONTEXT
#define RPC_X_NULL_REF_POINTER