Mobile API Reference  MicroStrategy 2019
PDCrpc.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : PDCrpc.h
3 // AUTHOR : yma
4 // CREATION : 7/19/02
5 // Copyright (C) MicroStrategy, Inc. 2002
6 //==============================================================================================
7 #ifndef PDCrpc_h
8 #define PDCrpc_h
9 
10 // this must be the *first* file included
11 #include "ProtectedSource/Prolog.h"
12 
13 #if defined(WIN32) && !defined(_USE_MSI_COM)
14  #include <rpc.h>
15  #include "ProtectedSource/UndefineWin32APIAliases.h"
16 #else
17  //==============================================================================================
18  // FILENAME : rpc.h
19  // AUTHOR : Will Hurwood
20  // CREATION : 7/17/2001
21  // Copyright (C) 2001 MicroStrategy Incorporated 2001
22  // All rights reserved
23  //==============================================================================================
24  // This header file stands in for the standard 'rpc.h' header file used in VC++
25  // We make minimal effort to declare symbols and functions in the same file as
26  // used in Windows.
27 
28  // We need this file so we can include MIDL generated output without modification
29  // The MIDL generated header files include "rpc.h" so we need to have a file.
30  // However since the COM port does not need to support remote procedure call
31  // all we do is define some symbols used in the MIDL output
32 
33  // This file is intended to include basic definitions needed by any rpc application.
34  #ifndef __RPC_H__
35  #define __RPC_H__
36 
37  // Stub out these commonly used symbols
38  #define __RPC_FAR
39  #define __RPC_API
40  #define __RPC_USER
41  #define __RPC_STUB
42  #define RPC_ENTRY
43 
44  #include "PDCrpcdce.h"
45 
46  // Some RPC platforms don't define DECLSPEC_IMPORT
47  #if !defined(DECLSPEC_IMPORT)
48  #if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS)
49  #define DECLSPEC_IMPORT __declspec(dllimport)
50  #else
51  #define DECLSPEC_IMPORT
52  #endif
53  #endif
54  #endif /* __RPC_H__ */
55 #endif // WIN32 && !_USE_MSI_COM
56 
57 // this must be the *last* file included
58 #include "ProtectedSource/Epilog.h"
59 
60 #endif // PDCrpc_h