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.

88 lines
2.0 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. #if !defined(AFX_TLSHUNT_H__9C41393C_53C6_11D2_BDDF_00C04FA3080D__INCLUDED_)
  3. #define AFX_TLSHUNT_H__9C41393C_53C6_11D2_BDDF_00C04FA3080D__INCLUDED_
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // TlsHunt.h : header file
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CTlsHunt dialog
  11. class CMainFrame;
  12. typedef struct __ServerEnumData {
  13. CDialog* pWaitDlg;
  14. CMainFrame* pMainFrm;
  15. DWORD dwNumServer;
  16. long dwDone;
  17. } ServerEnumData;
  18. #define WM_DONEDISCOVERY (WM_USER+0x666)
  19. class CTlsHunt : public CDialog
  20. {
  21. static BOOL
  22. ServerEnumCallBack(
  23. TLS_HANDLE hHandle,
  24. LPCTSTR pszServerName,
  25. HANDLE dwUserData
  26. );
  27. static DWORD WINAPI
  28. DiscoveryThread(PVOID ptr);
  29. ServerEnumData m_EnumData;
  30. HANDLE m_hThread;
  31. // Construction
  32. public:
  33. BOOL
  34. IsUserCancel() {
  35. return m_EnumData.dwDone;
  36. }
  37. DWORD
  38. GetNumServerFound() {
  39. return m_EnumData.dwNumServer;
  40. }
  41. CTlsHunt(CWnd* pParent = NULL); // standard constructor
  42. ~CTlsHunt(); // standard constructor
  43. // Dialog Data
  44. //{{AFX_DATA(CTlsHunt)
  45. enum { IDD = IDD_DISCOVERY };
  46. // NOTE: the ClassWizard will add data members here
  47. //}}AFX_DATA
  48. // Overrides
  49. // ClassWizard generated virtual function overrides
  50. //{{AFX_VIRTUAL(CTlsHunt)
  51. public:
  52. virtual BOOL PreTranslateMessage(MSG* pMsg);
  53. protected:
  54. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  55. //}}AFX_VIRTUAL
  56. // Implementation
  57. protected:
  58. // Generated message map functions
  59. //{{AFX_MSG(CTlsHunt)
  60. virtual BOOL OnInitDialog();
  61. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  62. virtual void OnCancel();
  63. afx_msg void OnDoneDiscovery();
  64. afx_msg void OnClose();
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. };
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_TLSHUNT_H__9C41393C_53C6_11D2_BDDF_00C04FA3080D__INCLUDED_)