Source code of Windows XP (NT5)
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.

54 lines
1.6 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: addbase.cpp
  6. * Content: DirectPlay8Address Internal interace file
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 02/04/2000 rmt Created
  12. * 02/17/2000 rmt Parameter validation work
  13. * 03/21/2000 rmt Renamed all DirectPlayAddress8's to DirectPlay8Addresses
  14. *@@END_MSINTERNAL
  15. *
  16. ***************************************************************************/
  17. #include "dnaddri.h"
  18. typedef STDMETHODIMP InternalQueryInterface( IDirectPlay8AddressInternal *pInterface, REFIID riid, LPVOID *ppvObj );
  19. typedef STDMETHODIMP_(ULONG) InternalAddRef( IDirectPlay8AddressInternal *pInterface );
  20. typedef STDMETHODIMP_(ULONG) InternalRelease( IDirectPlay8AddressInternal *pInterface );
  21. //
  22. // VTable for client interface
  23. //
  24. IDirectPlay8AddressInternalVtbl DP8A_InternalVtbl =
  25. {
  26. (InternalQueryInterface*) DP8A_QueryInterface,
  27. (InternalAddRef*) DP8A_AddRef,
  28. (InternalRelease*) DP8A_Release,
  29. DP8AINT_Lock,
  30. DP8AINT_UnLock
  31. };
  32. #undef DPF_MODNAME
  33. #define DPF_MODNAME "DP8AINT_Lock"
  34. STDMETHODIMP DP8AINT_Lock( IDirectPlay8AddressInternal *pInterface )
  35. {
  36. DP8ADDRESSOBJECT *pdp8Address = (DP8ADDRESSOBJECT *) GET_OBJECT_FROM_INTERFACE( pInterface );
  37. return pdp8Address->Lock();
  38. }
  39. #undef DPF_MODNAME
  40. #define DPF_MODNAME "DP8AINT_UnLock"
  41. STDMETHODIMP DP8AINT_UnLock( IDirectPlay8AddressInternal *pInterface )
  42. {
  43. DP8ADDRESSOBJECT *pdp8Address = (DP8ADDRESSOBJECT *) GET_OBJECT_FROM_INTERFACE( pInterface );
  44. return pdp8Address->UnLock();
  45. }