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.

50 lines
1.3 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // TaskVerifyIPAddress.h
  7. //
  8. // Description:
  9. // CTaskVerifyIPAddress implementation.
  10. //
  11. // Maintained By:
  12. // Galen Barbee (GalenB) 14-JUL-1999
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. // CTaskVerifyIPAddress
  17. class
  18. CTaskVerifyIPAddress :
  19. public ITaskVerifyIPAddress
  20. {
  21. private:
  22. // IUnknown
  23. LONG m_cRef;
  24. // ITaskVerifyIPAddress
  25. OBJECTCOOKIE m_cookie; // Cookie to signal when done.
  26. DWORD m_dwIPAddress; // IP address to verify
  27. CTaskVerifyIPAddress( void );
  28. ~CTaskVerifyIPAddress( void );
  29. STDMETHOD( Init )( void );
  30. public: // Methods
  31. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  32. // IUnknown
  33. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  34. STDMETHOD_( ULONG, AddRef )( void );
  35. STDMETHOD_( ULONG, Release )( void );
  36. // IDoTask / ITaskVerifyIPAddress
  37. STDMETHOD( BeginTask )( void );
  38. STDMETHOD( StopTask )( void );
  39. STDMETHOD( SetIPAddress )( DWORD dwIPAddressIn );
  40. STDMETHOD( SetCookie )( OBJECTCOOKIE cookieIn );
  41. }; // class CTaskVerifyIPAddress