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.

48 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 CTaskVerifyIPAddress
  18. : public ITaskVerifyIPAddress
  19. {
  20. private:
  21. // IUnknown
  22. LONG m_cRef;
  23. // ITaskVerifyIPAddress
  24. OBJECTCOOKIE m_cookie; // Cookie to signal when done.
  25. DWORD m_dwIPAddress; // IP address to verify
  26. CTaskVerifyIPAddress( void );
  27. ~CTaskVerifyIPAddress( void );
  28. STDMETHOD( HrInit )( void );
  29. public: // Methods
  30. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  31. // IUnknown
  32. STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
  33. STDMETHOD_( ULONG, AddRef )( void );
  34. STDMETHOD_( ULONG, Release )( void );
  35. // IDoTask / ITaskVerifyIPAddress
  36. STDMETHOD( BeginTask )( void );
  37. STDMETHOD( StopTask )( void );
  38. STDMETHOD( SetIPAddress )( DWORD dwIPAddressIn );
  39. STDMETHOD( SetCookie )( OBJECTCOOKIE cookieIn );
  40. }; //*** class CTaskVerifyIPAddress