browse.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. #ifndef BROWSE_H_INCLUDED
  2. #define BROWSE_H_INCLUDED
  3. #include "dialog.h"
  4. // CNoDsBrowseDialog
  5. //  Invoked to find computers with shares on a network, even without a DS
  6. //  Used when the computer is not a member of an NT5 domain or anytime a
  7. //  DS isn't available
  8. class CNoDsBrowseDialog: public CDialog
  9. {
  10. public:
  11.     CNoDsBrowseDialog(NETPLACESDATA* pdata, TCHAR* pszBuffer, int cchBuffer): 
  12.       m_pdata(pdata), m_pszBuffer(pszBuffer), m_cchBuffer(cchBuffer)
  13.       {}
  14.         
  15. protected:
  16.     // Message handlers
  17.     virtual INT_PTR DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  18.     BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam);
  19.     BOOL OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
  20.     BOOL OnNotify(HWND hwnd, int idCtrl, LPNMHDR pnmh);
  21.     BOOL OnDestroy(HWND hwnd);
  22.     BOOL OnSetCursor(HWND hwnd, HWND hwndCursor, UINT codeHitTest, UINT msg);
  23.     // Helpers
  24.     BOOL AddServerNamesToList(HWND hwndList);
  25.     void EnableOKButton(HWND hwnd, BOOL fEnable);
  26.     void OnOK(HWND hwnd, int iItem);
  27.     static DWORD WINAPI AddServerNamesThread(LPVOID lpParam);
  28. private:
  29.     TCHAR* m_pszBuffer;
  30.     int m_cchBuffer;
  31.     NETPLACESDATA* m_pdata;
  32.     
  33.     // Some data needed by the 'Add server names to listview' thread
  34.     HWND m_hwndList;
  35.     BOOL m_fShowWaitCursor;
  36. };
  37. #endif //!BROWSE_H_INCLUDED