include: Fix interface definition.
[wine] / include / rpcnterr.h
1 /*
2  * Copyright (C) 2001 Peter Hunnisett
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 #ifndef __RPCNTERR_H__
20 #define __RPCNTERR_H__
21
22 #define RPC_S_OK                          ERROR_SUCCESS
23 #define RPC_S_INVALID_ARG                 ERROR_INVALID_PARAMETER
24 #define RPC_S_OUT_OF_MEMORY               ERROR_OUTOFMEMORY
25 #define RPC_S_OUT_OF_THREADS              ERROR_MAX_THRDS_REACHED
26 #define RPC_S_INVALID_LEVEL               ERROR_INVALID_PARAMETER
27 #define RPC_S_BUFFER_TOO_SMALL            ERROR_INSUFFICIENT_BUFFER
28 #define RPC_S_INVALID_SECURITY_DESC       ERROR_INVALID_SECURITY_DESCR
29 #define RPC_S_ACCESS_DENIED               ERROR_ACCESS_DENIED
30 #define RPC_S_SERVER_OUT_OF_MEMORY        ERROR_NOT_ENOUGH_SERVER_MEMORY
31 #define RPC_S_ASYNC_CALL_PENDING          ERROR_IO_PENDING
32 #define RPC_S_UNKNOWN_PRINCIPAL           ERROR_NONE_MAPPED
33 #define RPC_S_TIMEOUT                     ERROR_TIMEOUT
34
35 #define RPC_X_NO_MEMORY                   RPC_S_OUT_OF_MEMORY
36 #define RPC_X_INVALID_BOUND               RPC_S_INVALID_BOUND
37 #define RPC_X_INVALID_TAG                 RPC_S_INVALID_TAG
38 #define RPC_X_ENUM_VALUE_TOO_LARGE        RPC_X_ENUM_VALUE_OUT_OF_RANGE
39 #define RPC_X_SS_CONTEXT_MISMATCH         ERROR_INVALID_HANDLE
40 #define RPC_X_INVALID_BUFFER              ERROR_INVALID_USER_BUFFER
41 #define RPC_X_PIPE_APP_MEMORY             ERROR_OUTOFMEMORY
42 #define RPC_X_INVALID_PIPE_OPERATION      RPC_X_WRONG_PIPE_ORDER
43
44 #endif  /* __RPCNTERR_H__ */