From 21e7db1fe7fc4a885604f4c3c467ea71a4df93ad Mon Sep 17 00:00:00 2001 From: Saveliy Tretiakov Date: Thu, 13 Apr 2006 15:23:34 +0000 Subject: [PATCH] Add more stubs svn path=/trunk/; revision=21582 --- reactos/dll/win32/rpcrt4/ndr_contexth.c | 111 +++++++++++++++++++----- reactos/dll/win32/rpcrt4/rpcrt4.spec | 12 +-- 2 files changed, 95 insertions(+), 28 deletions(-) diff --git a/reactos/dll/win32/rpcrt4/ndr_contexth.c b/reactos/dll/win32/rpcrt4/ndr_contexth.c index 66c909122ed..60b7ab5f902 100644 --- a/reactos/dll/win32/rpcrt4/ndr_contexth.c +++ b/reactos/dll/win32/rpcrt4/ndr_contexth.c @@ -31,10 +31,10 @@ */ RPC_BINDING_HANDLE WINAPI NDRCContextBinding(NDR_CCONTEXT CContext) { - if(!CContext) + if(!CContext) RpcRaiseException(ERROR_INVALID_HANDLE); - return (RPC_BINDING_HANDLE)((CContextHandle*)CContext)->Binding; + return (RPC_BINDING_HANDLE)((CContextHandle*)CContext)->Binding; } /*********************************************************************** @@ -53,7 +53,6 @@ void WINAPI NdrClientContextMarshall(PMIDL_STUB_MESSAGE pStubMsg, NDR_CCONTEXT ContextHandle, int fCheck) { - if(!ContextHandle) RpcRaiseException(ERROR_INVALID_HANDLE); @@ -145,25 +144,6 @@ void WINAPI RpcSsDestroyClientContext(void** ContextHandle) RpcRaiseException(status); } -/*********************************************************************** - * NdrServerContextMarshall - */ -void WINAPI NdrServerContextMarshall(PMIDL_STUB_MESSAGE pStubMsg, - NDR_SCONTEXT ContextHandle, - NDR_RUNDOWN RundownRoutine ) -{ - FIXME("(%p, %p, %p): stub\n", pStubMsg, ContextHandle, RundownRoutine); -} - -/*********************************************************************** - * NdrServerContextUnmarshall - */ -NDR_SCONTEXT WINAPI NdrServerContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg) -{ - FIXME("(%p): stub\n", pStubMsg); - return NULL; -} - /*********************************************************************** * NdrContextHandleSize */ @@ -184,6 +164,51 @@ NDR_SCONTEXT WINAPI NdrContextHandleInitialize(PMIDL_STUB_MESSAGE pStubMsg, return NULL; } +/*********************************************************************** + * NDRSContextMarshall2 + */ +void WINAPI NDRSContextMarshall2(IN RPC_BINDING_HANDLE BindingHandle, + IN NDR_SCONTEXT CContext, + OUT void *pBuff, + IN NDR_RUNDOWN userRunDownIn, + IN void *CtxGuard, + IN unsigned long Flags) +{ + FIXME("stub\n"); +} + +/*********************************************************************** + * NDRSContextUnmarshall2 + */ +NDR_SCONTEXT WINAPI NDRSContextUnmarshall2(IN RPC_BINDING_HANDLE BindingHandle, + IN void *pBuff, + IN unsigned long DataRepresentation, + IN void *CtxGuard, + IN unsigned long Flags) +{ + FIXME("stub\n"); + return NULL; +} + +/*********************************************************************** + * NdrServerContextMarshall + */ +void WINAPI NdrServerContextMarshall(PMIDL_STUB_MESSAGE pStubMsg, + NDR_SCONTEXT ContextHandle, + NDR_RUNDOWN RundownRoutine) +{ + FIXME("(%p, %p, %p): stub\n", pStubMsg, ContextHandle, RundownRoutine); +} + +/*********************************************************************** + * NdrServerContextUnmarshall + */ +NDR_SCONTEXT WINAPI NdrServerContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg) +{ + FIXME("(%p): stub\n", pStubMsg); + return NULL; +} + /*********************************************************************** * NdrServerContextNewMarshall */ @@ -204,3 +229,45 @@ NDR_SCONTEXT WINAPI NdrServerContextNewUnmarshall(PMIDL_STUB_MESSAGE pStubMsg, FIXME("(%p, %p): stub\n", pStubMsg, pFormat); return NULL; } + +/*********************************************************************** + * NDRSContextMarshall + */ +void WINAPI NDRSContextMarshall(IN NDR_SCONTEXT CContext, + OUT void *pBuff, + IN NDR_RUNDOWN userRunDownIn) +{ + FIXME("stub\n"); +} + +/*********************************************************************** + * NDRSContextUnmarshall + */ +NDR_SCONTEXT WINAPI NDRSContextUnmarshall(IN void *pBuff, + IN unsigned long DataRepresentation) +{ + FIXME("stub\n"); + return NULL; +} + +/*********************************************************************** + * NDRSContextMarshallEx + */ +void WINAPI NDRSContextMarshallEx(IN RPC_BINDING_HANDLE BindingHandle, + IN NDR_SCONTEXT CContext, + OUT void *pBuff, + IN NDR_RUNDOWN userRunDownIn) +{ + FIXME("stub\n"); +} + +/*********************************************************************** + * NDRSContextUnmarshallEx + */ +NDR_SCONTEXT WINAPI NDRSContextUnmarshallEx(IN RPC_BINDING_HANDLE BindingHandle, + IN void *pBuff, + IN unsigned long DataRepresentation) +{ + FIXME("stub\n"); + return NULL; +} diff --git a/reactos/dll/win32/rpcrt4/rpcrt4.spec b/reactos/dll/win32/rpcrt4/rpcrt4.spec index 9feecd7fd7a..37192a30e95 100644 --- a/reactos/dll/win32/rpcrt4/rpcrt4.spec +++ b/reactos/dll/win32/rpcrt4/rpcrt4.spec @@ -140,12 +140,12 @@ @ stdcall NDRCContextBinding(ptr) @ stdcall NDRCContextMarshall(ptr ptr) @ stdcall NDRCContextUnmarshall(ptr ptr ptr long) -@ stub NDRSContextMarshall2 -@ stub NDRSContextMarshall -@ stub NDRSContextMarshallEx -@ stub NDRSContextUnmarshall2 -@ stub NDRSContextUnmarshall -@ stub NDRSContextUnmarshallEx +@ stdcall NDRSContextMarshall2(ptr ptr ptr ptr ptr long) +@ stdcall NDRSContextMarshall(ptr ptr ptr) +@ stdcall NDRSContextMarshallEx(ptr ptr ptr ptr) +@ stdcall NDRSContextUnmarshall2(ptr ptr ptr ptr long) +@ stdcall NDRSContextUnmarshall(ptr long) +@ stdcall NDRSContextUnmarshallEx(ptr ptr long) @ stub NDRcopy @ stdcall NdrAllocate(ptr long) @ stub NdrAsyncClientCall