home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / programacao / cwin / c.exe / $INSTDIR / include / rpc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-12-15  |  1.2 KB  |  60 lines

  1. #ifndef RPC_NO_WINDOWS_H
  2. #include <windows.h>
  3. #endif
  4.  
  5. #ifndef _RPC_H
  6. #define _RPC_H
  7. #if __GNUC__ >=3
  8. #pragma GCC system_header
  9. #endif
  10.  
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #define __RPC_WIN32__
  15. #ifndef _WIN95
  16. #define __RPC_NT__
  17. #define RPC_UNICODE_SUPPORTED
  18. #endif
  19.  
  20. #ifndef __MIDL_USER_DEFINED
  21. #define midl_user_allocate MIDL_user_allocate
  22. #define midl_user_free     MIDL_user_free
  23. #define __MIDL_USER_DEFINED
  24. #endif
  25. #define RPC_UNICODE_SUPPORTED
  26. #define __RPC_FAR
  27. #define __RPC_API  __stdcall
  28. #define __RPC_USER __stdcall
  29. #define __RPC_STUB __stdcall
  30. #define RPC_ENTRY  __stdcall
  31. typedef void *I_RPC_HANDLE;
  32. typedef long RPC_STATUS;
  33.  
  34. #include <rpcdce.h>
  35. #include <rpcnsi.h>
  36. #include <rpcnterr.h>
  37.  
  38. #include <winerror.h>
  39.  
  40. /* SEH is not supported */
  41. #if 0
  42. #include <excpt.h>
  43. #define RpcTryExcept __try {
  44. #define RpcExcept(x) } __except (x) {
  45. #define RpcEndExcept }
  46. #define RpcTryFinally __try {
  47. #define RpcFinally } __finally {
  48. #define RpcEndFinally }
  49. #define RpcExceptionCode() GetExceptionCode()
  50. #define RpcAbnormalTermination() AbnormalTermination()
  51. #endif /* 0 */
  52.  
  53. RPC_STATUS RPC_ENTRY RpcImpersonateClient(RPC_BINDING_HANDLE);
  54. RPC_STATUS RPC_ENTRY RpcRevertToSelf(void);
  55. long RPC_ENTRY I_RpcMapWin32Status(RPC_STATUS);
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif
  60.