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.

69 lines
1.2 KiB

  1. #include "dnproti.h"
  2. // Now, a little bit of probably unnecesary junk for our lower edge
  3. /*
  4. * DNSP_QueryInterface
  5. */
  6. #undef DPF_MODNAME
  7. #define DPF_MODNAME "DNSP_QueryInterface"
  8. STDMETHODIMP DNSP_QueryInterface(
  9. IDP8SPCallback *pDNPI,
  10. REFIID riid,
  11. LPVOID *ppvObj )
  12. {
  13. HRESULT hr = S_OK;
  14. #ifndef DPNBUILD_LIBINTERFACE
  15. if ((! IsEqualIID(riid, IID_IUnknown)) &&
  16. (! IsEqualIID(riid, IID_IDP8SPCallback)))
  17. {
  18. *ppvObj = NULL;
  19. hr = E_NOINTERFACE;
  20. }
  21. else
  22. #endif // ! DPNBUILD_LIBINTERFACE
  23. {
  24. #ifdef DPNBUILD_LIBINTERFACE
  25. DNASSERT(! "Querying interface when using DPNBUILD_LIBINTERFACE!");
  26. #endif // DPNBUILD_LIBINTERFACE
  27. *ppvObj = pDNPI;
  28. }
  29. return hr;
  30. }
  31. /*
  32. * DNP_AddRef
  33. */
  34. #undef DPF_MODNAME
  35. #define DPF_MODNAME "DNSP_AddRef"
  36. STDMETHODIMP_(ULONG) DNSP_AddRef( IDP8SPCallback *pDNPI)
  37. {
  38. return 1;
  39. }
  40. /*
  41. * DNP_Release
  42. */
  43. #undef DPF_MODNAME
  44. #define DPF_MODNAME "DNSP_Release"
  45. STDMETHODIMP_(ULONG) DNSP_Release( IDP8SPCallback *pDNPI )
  46. {
  47. return 1;
  48. }
  49. IDP8SPCallbackVtbl DNPLowerEdgeVtbl =
  50. {
  51. DNSP_QueryInterface,
  52. DNSP_AddRef,
  53. DNSP_Release,
  54. DNSP_IndicateEvent,
  55. DNSP_CommandComplete
  56. };