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 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __RPCNTERR_H__
|
---|
29 | #define __RPCNTERR_H__
|
---|
30 |
|
---|
31 | #define RPC_S_OK ERROR_SUCCESS
|
---|
32 | #define RPC_S_INVALID_ARG ERROR_INVALID_PARAMETER
|
---|
33 | #define RPC_S_OUT_OF_MEMORY ERROR_OUTOFMEMORY
|
---|
34 | #define RPC_S_OUT_OF_THREADS ERROR_MAX_THRDS_REACHED
|
---|
35 | #define RPC_S_INVALID_LEVEL ERROR_INVALID_PARAMETER
|
---|
36 | #define RPC_S_BUFFER_TOO_SMALL ERROR_INSUFFICIENT_BUFFER
|
---|
37 | #define RPC_S_INVALID_SECURITY_DESC ERROR_INVALID_SECURITY_DESCR
|
---|
38 | #define RPC_S_ACCESS_DENIED ERROR_ACCESS_DENIED
|
---|
39 | #define RPC_S_SERVER_OUT_OF_MEMORY ERROR_NOT_ENOUGH_SERVER_MEMORY
|
---|
40 | #define RPC_S_ASYNC_CALL_PENDING ERROR_IO_PENDING
|
---|
41 | #define RPC_S_UNKNOWN_PRINCIPAL ERROR_NONE_MAPPED
|
---|
42 | #define RPC_S_TIMEOUT ERROR_TIMEOUT
|
---|
43 |
|
---|
44 | #define RPC_X_NO_MEMORY RPC_S_OUT_OF_MEMORY
|
---|
45 | #define RPC_X_INVALID_BOUND RPC_S_INVALID_BOUND
|
---|
46 | #define RPC_X_INVALID_TAG RPC_S_INVALID_TAG
|
---|
47 | #define RPC_X_ENUM_VALUE_TOO_LARGE RPC_X_ENUM_VALUE_OUT_OF_RANGE
|
---|
48 | #define RPC_X_SS_CONTEXT_MISMATCH ERROR_INVALID_HANDLE
|
---|
49 | #define RPC_X_INVALID_BUFFER ERROR_INVALID_USER_BUFFER
|
---|
50 | #define RPC_X_PIPE_APP_MEMORY ERROR_OUTOFMEMORY
|
---|
51 | #define RPC_X_INVALID_PIPE_OPERATION RPC_X_WRONG_PIPE_ORDER
|
---|
52 |
|
---|
53 | #endif /* __RPCNTERR_H__ */
|
---|