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.

98 lines
2.9 KiB

  1. /*
  2. File: Dispatch.h
  3. Copyright (c) 1997-1999 Microsoft Corporation. All Rights Reserved.
  4. Abstract:
  5. Dispatch helpers.
  6. */
  7. // Defines
  8. #define VTS_I2 "\x02"
  9. #define VTS_I4 "\x03"
  10. #define VTS_BSTR "\x08"
  11. #define VTS_DISPATCH "\x09"
  12. #define VTS_BOOL "\x0b"
  13. #define VTS_VARIANT "\x0c"
  14. #define VTS_UNKNOWN "\x0d"
  15. #define VTS_I2_BYREF "\x42"
  16. #define VTS_I4_BYREF "\x43"
  17. #define VTS_BSTR_BYREF "\x48"
  18. #define VTS_DISPATCH_BYREF "\x49"
  19. #define VTS_BOOL_BYREF "\x4b"
  20. #define VTS_VARIANT_BYREF "\x4c"
  21. #define VTS_UNKNOWN_BYREF "\x4d"
  22. #define VTS_I2_RETURN "\x82"
  23. #define VTS_I4_RETURN "\x83"
  24. #define VTS_BSTR_RETURN "\x88"
  25. #define VTS_DISPATCH_RETURN "\x89"
  26. #define VTS_BOOL_RETURN "\x8b"
  27. #define VTS_UNKNOWN_RETURN "\x8d"
  28. #define VTS_BYREF_FLAG 0x40
  29. #define VTS_RETURN_FLAG 0x80
  30. // Functions
  31. HRESULT CallDispatchMethod(
  32. IDispatch * pDisp,
  33. DISPID dispid,
  34. VARIANT * pvarFirst,
  35. char * pstrSig,
  36. va_list val);
  37. HRESULT __cdecl CallDispatchMethod(
  38. IDispatch * pDisp,
  39. DISPID dispid,
  40. char * pstrSig,
  41. ...);
  42. HRESULT CallDispatchMethod(
  43. IDispatch * pDisp,
  44. WCHAR * pstrMethod,
  45. VARIANT * pvarFirst,
  46. char * pstrSig,
  47. va_list val);
  48. HRESULT __cdecl CallDispatchMethod(
  49. IDispatch * pDisp,
  50. WCHAR * pstrMethod,
  51. char * pstrSig,
  52. ...);
  53. HRESULT __cdecl CallDispatchMethod(
  54. IDispatch * pDisp,
  55. WCHAR * pstrMethod,
  56. VARIANT * pvarFirst,
  57. char * pstrSig,
  58. ...);
  59. HRESULT GetDispatchProperty(
  60. IDispatch * pDisp,
  61. WCHAR * pstrProperty,
  62. VARENUM vt,
  63. void * pv);
  64. HRESULT GetDispatchProperty(
  65. IDispatch * pDisp,
  66. DISPID dispidProperty,
  67. VARENUM vt,
  68. void * pv);
  69. HRESULT __cdecl PutDispatchProperty(
  70. IDispatch * pDisp,
  71. WCHAR * pstrProperty,
  72. VARENUM vt,
  73. ...);
  74. HRESULT __cdecl PutDispatchProperty(
  75. IDispatch * pDisp,
  76. DISPID dispidProperty,
  77. VARENUM vt,
  78. ...);