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.

70 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. Revision History:
  4. --*/
  5. #if !defined(AFX_SELECTINSTANCENAME_H__CB4E370C_8DD5_11D1_9905_006008C3A19A__INCLUDED_)
  6. #define AFX_SELECTINSTANCENAME_H__CB4E370C_8DD5_11D1_9905_006008C3A19A__INCLUDED_
  7. #if _MSC_VER >= 1000
  8. #pragma once
  9. #endif // _MSC_VER >= 1000
  10. // SelectInstanceName.h : header file
  11. //
  12. #pragma warning (once : 4200)
  13. #include <wmium.h>
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CSelectInstanceName dialog
  16. class CSelectInstanceName : public CDialog
  17. {
  18. // Construction
  19. public:
  20. virtual ~CSelectInstanceName();
  21. LPDWORD nameOffsets;
  22. LPTSTR namePtr[0x100];
  23. BYTE XyzBuffer[0x8000];
  24. DWORD Select();
  25. CSelectInstanceName(LPGUID lpGuid, PTCHAR lpInstanceName, LPDWORD lpSize, CWnd* pParent /*=NULL*/);
  26. // Dialog Data
  27. //{{AFX_DATA(CSelectInstanceName)
  28. enum { IDD = IDD_SELECT_INSTANCE };
  29. CListBox lstInstance;
  30. //}}AFX_DATA
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CSelectInstanceName)
  34. protected:
  35. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. protected:
  39. PWNODE_ALL_DATA pWnode;
  40. void EnumerateInstances();
  41. DWORD dwError;
  42. PTCHAR buffer;
  43. LPGUID lpGuid;
  44. LPDWORD lpSize;
  45. // Generated message map functions
  46. //{{AFX_MSG(CSelectInstanceName)
  47. virtual BOOL OnInitDialog();
  48. virtual void OnOK();
  49. afx_msg void OnDblclkInstanceList();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_SELECTINSTANCENAME_H__CB4E370C_8DD5_11D1_9905_006008C3A19A__INCLUDED_)