Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

  1. //+-------------------------------------------------------------------
  2. //
  3. // File: comhndl.h
  4. //
  5. // Contents: Implicit COM parameters on raw RPCcalls
  6. //
  7. // History: 24 Apr 95 AlexMit Created
  8. //
  9. //--------------------------------------------------------------------
  10. #ifndef _COMHNDL_H_
  11. #define _COMHNDL_H_
  12. // Define the implicit COM RPC parameters.
  13. #ifdef RAW
  14. #define COM_HANDLE \
  15. [in] handle_t rpc, \
  16. [in, ref] ORPCTHIS *orpcthis, \
  17. [in, ref] LOCALTHIS *localthis, \
  18. [out, ref] ORPCTHAT *orpcthat,
  19. #else
  20. #define COM_HANDLE
  21. #endif
  22. // Define some extra stuff.
  23. #ifdef DO_NO_IMPORTS
  24. #define IMPORT_OBASE
  25. #else
  26. #define IMPORT_OBASE import "obase.idl";
  27. #endif
  28. #ifdef DO_NO_IMPORTS
  29. #define IMPORT_UNKNOWN
  30. #else
  31. #define IMPORT_UNKNOWN import "unknwn.idl";
  32. #endif
  33. // These dummy members adjust the procedure number.
  34. // Since these exist on the raw side, the names have to be
  35. // unique in all interfaces.
  36. #ifdef RAW
  37. #define COM_DEFINES(X) \
  38. IMPORT_OBASE \
  39. HRESULT DummyQueryInterface##X( COM_HANDLE [in] DWORD dummy ); \
  40. HRESULT DummyAddRef##X( COM_HANDLE [in] DWORD dummy ); \
  41. HRESULT DummyRelease##X( COM_HANDLE [in] DWORD dummy );
  42. #else
  43. #define COM_DEFINES(X) IMPORT_UNKNOWN
  44. #endif
  45. #endif // _COMHNDL_H_