admin
base
com
developer
drivers
ds
enduser
inetcore
inetsrv
loc
mergedcomponents
multimedia
net
printscan
ddk
dload
fax
faxsrv
inc
lib
print
publish
scan
ui
wia
common
core
ddk
drivers
inc
kernel
setup
test
bmpinfo
csti
devctrl
msqscan
propview
remote
stillvue
wiadbgcfg
wialogcfg
wiapeek
wiaperf
wiaregme
wiastress
wiatest
chicago
res
winnt
cdib.cpp
cdib.h
cwia.cpp
cwia.h
datacallback.cpp
datacallback.h
devicecmddlg.cpp
devicecmddlg.h
dirs
eventcallback.cpp
eventcallback.h
iteminfodlg.cpp
iteminfodlg.h
mainfrm.cpp
mainfrm.h
progressbar.cpp
progressbar.h
propedit.cpp
propedit.h
resource.h
sources.inc
statusdlg.cpp
statusdlg.h
stdafx.cpp
stdafx.h
waitdlg.cpp
waitdlg.h
wiapreview.cpp
wiapreview.h
wiatest.cpp
wiatest.dsp
wiatest.dsw
wiatest.h
wiatest.rc
wiatestdoc.cpp
wiatestdoc.h
wiatestui.cpp
wiatestui.h
wiatestview.cpp
wiatestview.h
wtdb.h
wiatest2
wiavideotest
dirs
coffbase.txt
dirs
placefil.txt
wia.vpj
wiaenv.inc
dirs
project.mk
public
published
sdktools
shell
termsrv
tools
windows
dirs
makefil0
66 lines
1.9 KiB
C++
66 lines
1.9 KiB
C++
#if !defined(AFX_DEVICECMDDLG_H__9C06742C_DBF4_11D2_B1CD_009027226441__INCLUDED_)
|
|
#define AFX_DEVICECMDDLG_H__9C06742C_DBF4_11D2_B1CD_009027226441__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// DeviceCmdDlg.h : header file
|
|
//
|
|
#include "WIATestUI.h"
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDeviceCmdDlg dialog
|
|
|
|
class CDeviceCmdDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CString m_strhResult;
|
|
CString hResultToCString(HRESULT hResult);
|
|
void DebugLoadCommands();
|
|
CString ConvertGUIDToKnownCString(GUID guid);
|
|
BOOL AddDevCapToListBox(int CapIndex,WIA_DEV_CAP* pDevCapStruct);
|
|
CString GUIDToCString(GUID guid);
|
|
GUID GetCommandFromListBox();
|
|
IWiaItem* m_pOptionalItem;
|
|
BOOL EnumerateDeviceCapsToListBox();
|
|
void FormatFunctionCallText();
|
|
IWiaItem* m_pIWiaItem;
|
|
void Initialize(IWiaItem *pIWiaItem);
|
|
|
|
CDeviceCmdDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDeviceCmdDlg)
|
|
enum { IDD = IDD_DEVICE_COMMAND_DIALOG };
|
|
CWIAPropListCtrl m_ItemPropertyListControl;
|
|
CListBox m_CommandListBox;
|
|
long m_Flags;
|
|
CString m_FunctionCallText;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CDeviceCmdDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDeviceCmdDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSendCommand();
|
|
afx_msg void OnKillfocusFlagsEditbox();
|
|
afx_msg void OnSelchangeCommandListbox();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DEVICECMDDLG_H__9C06742C_DBF4_11D2_B1CD_009027226441__INCLUDED_)
|