Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fef28ec6
Commit
fef28ec6
authored
Jan 07, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add stubs for asynchronous functions.
parent
b0cbf664
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
142 additions
and
10 deletions
+142
-10
Makefile.in
dlls/rpcrt4/Makefile.in
+1
-0
rpc_async.c
dlls/rpcrt4/rpc_async.c
+131
-0
rpcrt4.spec
dlls/rpcrt4/rpcrt4.spec
+10
-10
No files found.
dlls/rpcrt4/Makefile.in
View file @
fef28ec6
...
...
@@ -20,6 +20,7 @@ C_SRCS = \
ndr_ole.c
\
ndr_stubless.c
\
rpc_assoc.c
\
rpc_async.c
\
rpc_binding.c
\
rpc_epmap.c
\
rpc_message.c
\
...
...
dlls/rpcrt4/rpc_async.c
0 → 100644
View file @
fef28ec6
/*
* Asynchronous Call Support Functions
*
* Copyright 2007 Robert Shearman (for CodeWeavers)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
#include <stdarg.h>
#include "rpc.h"
#include "rpcndr.h"
#include "rpcasync.h"
#include "wine/debug.h"
#include "rpc_binding.h"
#include "rpc_message.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
rpc
);
/***********************************************************************
* RpcAsyncInitializeHandle [RPCRT4.@]
*
* Initialises an asynchronous state so it can be used in other asynchronous
* functions and for use in asynchronous calls.
*
* PARAMS
* pAsync [I] Asynchronous state to initialise.
* Size [I] Size of the memory pointed to by pAsync.
*
* RETURNS
* Success: RPC_S_OK.
* Failure: Any error code.
*/
RPC_STATUS
WINAPI
RpcAsyncInitializeHandle
(
PRPC_ASYNC_STATE
pAsync
,
unsigned
int
Size
)
{
FIXME
(
"(%p, %d): stub
\n
"
,
pAsync
,
Size
);
return
RPC_S_INVALID_ASYNC_HANDLE
;
}
/***********************************************************************
* RpcAsyncGetCallStatus [RPCRT4.@]
*
* Retrieves the current status of the asynchronous call taking place.
*
* PARAMS
* pAsync [I] Asynchronous state to initialise.
*
* RETURNS
* RPC_S_OK - The call was successfully completed.
* RPC_S_INVALID_ASYNC_HANDLE - The asynchronous structure is not valid.
* RPC_S_ASYNC_CALL_PENDING - The call is still in progress and has not been completed.
* Any other error code - The call failed.
*/
RPC_STATUS
WINAPI
RpcAsyncGetCallStatus
(
PRPC_ASYNC_STATE
pAsync
)
{
FIXME
(
"(%p): stub
\n
"
,
pAsync
);
return
RPC_S_INVALID_ASYNC_HANDLE
;
}
/***********************************************************************
* RpcAsyncCompleteCall [RPCRT4.@]
*
* Completes a client or server asynchronous call.
*
* PARAMS
* pAsync [I] Asynchronous state to initialise.
* Reply [I] The return value of the asynchronous function.
*
* RETURNS
* Success: RPC_S_OK.
* Failure: Any error code.
*/
RPC_STATUS
WINAPI
RpcAsyncCompleteCall
(
PRPC_ASYNC_STATE
pAsync
,
void
*
Reply
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
pAsync
,
Reply
);
return
RPC_S_INVALID_ASYNC_HANDLE
;
}
/***********************************************************************
* RpcAsyncAbortCall [RPCRT4.@]
*
* Aborts the asynchronous server call taking place.
*
* PARAMS
* pAsync [I] Asynchronous server state to abort.
* ExceptionCode [I] Exception code to return to the client in a fault packet.
*
* RETURNS
* Success: RPC_S_OK.
* Failure: Any error code.
*/
RPC_STATUS
WINAPI
RpcAsyncAbortCall
(
PRPC_ASYNC_STATE
pAsync
,
ULONG
ExceptionCode
)
{
FIXME
(
"(%p, %d/0x%x): stub
\n
"
,
pAsync
,
ExceptionCode
,
ExceptionCode
);
return
RPC_S_INVALID_ASYNC_HANDLE
;
}
/***********************************************************************
* RpcAsyncCancelCall [RPCRT4.@]
*
* Cancels the asynchronous client call taking place.
*
* PARAMS
* pAsync [I] Asynchronous client state to abort.
* fAbortCall [I] If TRUE, then send a cancel to the server, otherwise
* just wait for the call to complete.
*
* RETURNS
* Success: RPC_S_OK.
* Failure: Any error code.
*/
RPC_STATUS
WINAPI
RpcAsyncCancelCall
(
PRPC_ASYNC_STATE
pAsync
,
BOOL
fAbortCall
)
{
FIXME
(
"(%p, %s): stub
\n
"
,
pAsync
,
fAbortCall
?
"TRUE"
:
"FALSE"
);
return
RPC_S_INVALID_ASYNC_HANDLE
;
}
dlls/rpcrt4/rpcrt4.spec
View file @
fef28ec6
...
...
@@ -362,12 +362,12 @@
@ stub NdrpSetRpcSsDefaults
@ stub NdrpVarVtOfTypeDesc # wxp
@ stub PerformRpcInitialization
@ st
ub RpcAbortAsync
Call
@ st
ub RpcAsyncAbortCall
@ st
ub RpcAsyncCancelCall
@ st
ub RpcAsyncCompleteCall
@ st
ub RpcAsyncGetCallStatus
@ st
ub RpcAsyncInitializeHandle
@ st
dcall RpcAbortAsyncCall(ptr long) RpcAsyncAbort
Call
@ st
dcall RpcAsyncAbortCall(ptr long)
@ st
dcall RpcAsyncCancelCall(ptr long)
@ st
dcall RpcAsyncCompleteCall(ptr ptr)
@ st
dcall RpcAsyncGetCallStatus(ptr)
@ st
dcall RpcAsyncInitializeHandle(ptr long)
@ stub RpcAsyncRegisterInfo
@ stdcall RpcBindingCopy(ptr ptr)
@ stdcall RpcBindingFree(ptr)
...
...
@@ -394,12 +394,12 @@
@ stdcall RpcBindingToStringBindingA(ptr ptr)
@ stdcall RpcBindingToStringBindingW(ptr ptr)
@ stdcall RpcBindingVectorFree(ptr)
@ st
ub RpcCancelAsync
Call
@ st
dcall RpcCancelAsyncCall(ptr long) RpcAsyncCancel
Call
@ stdcall RpcCancelThread(ptr)
@ stub RpcCancelThreadEx
@ stub RpcCertGeneratePrincipalNameA
@ stub RpcCertGeneratePrincipalNameW
@ st
ub RpcCompleteAsync
Call
@ st
dcall RpcCompleteAsyncCall(ptr ptr) RpcAsyncComplete
Call
@ stdcall RpcEpRegisterA(ptr ptr ptr str)
@ stub RpcEpRegisterNoReplaceA
@ stub RpcEpRegisterNoReplaceW
...
...
@@ -416,11 +416,11 @@
@ stub RpcErrorSaveErrorInfo # wxp
@ stdcall RpcErrorStartEnumeration(ptr)
@ stub RpcFreeAuthorizationContext # wxp
@ st
ub RpcGetAsync
CallStatus
@ st
dcall RpcGetAsyncCallStatus(ptr) RpcAsyncGet
CallStatus
@ stub RpcIfIdVectorFree
@ stub RpcIfInqId
@ stdcall RpcImpersonateClient(ptr)
@ st
ub RpcInitializeAsync
Handle
@ st
dcall RpcInitializeAsyncHandle(ptr long) RpcAsyncInitialize
Handle
@ stub RpcMgmtBindingInqParameter # win9x
@ stub RpcMgmtBindingSetParameter # win9x
@ stdcall RpcMgmtEnableIdleCleanup()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment