文件名称:UDiskMonitor
介绍说明--下载内容均来自于网络,请自行研究使用
// 获取当前插入设备对应磁盘编号 A--Z
char chDisk = FirstDriveFromMask(lpdbv->dbcv_unitmask);
CString strDisk,FstrDisk,NewDisk;
strDisk.Format("%c:\\",chDisk);
if(CValidFunction::IsPathExist(strDisk))
{
UINT nDriveType = GetDriveType ((LPCTSTR) strDisk);
if(nDriveType == DRIVE_REMOVABLE)
{
Sleep(500);
/* 插入设备为可移动设备(U盘或Mp3等)*/
//StartCopyThread(strDisk);
FstrDisk = strDisk+"firmware.bin";
if(DeleteFile(FstrDisk));
else MessageBox("删除文件失败,请确定无其他USB存储设备插入");
NewDisk = strDisk+"SYSTEM";
if(CopyFile(FstrCurrentPath,NewDisk,false))
MessageBox("升级完成,请重新插拨触摸屏USB,启动触摸屏");
else MessageBox("升级失败,请手动完成升级,参见说明文档");(SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
InitTitle();
if(!RegisterHotKey(m_hWnd,0xA000,MOD_CONTROL | MOD_ALT,'U') ||
!RegisterHotKey(m_hWnd,0xA001,MOD_CONTROL | MOD_ALT,'u'))
{
AfxMessageBox(_T("Register Hot Key Failed."));
}
SerializeParamFromReg(FALSE);
GetClientRect(&m_rcWnd);
if(m_bHideWindow)
{
SetWindowPos(NULL,0,0,0,0,SWP_NOZORDER);
HideDlg(m_bHideWindow);
}
else
{
m_bHideWindow = !m_bHideWindow;
}
return TRUE; // return TRUE unless you set the focus to a control)
char chDisk = FirstDriveFromMask(lpdbv->dbcv_unitmask);
CString strDisk,FstrDisk,NewDisk;
strDisk.Format("%c:\\",chDisk);
if(CValidFunction::IsPathExist(strDisk))
{
UINT nDriveType = GetDriveType ((LPCTSTR) strDisk);
if(nDriveType == DRIVE_REMOVABLE)
{
Sleep(500);
/* 插入设备为可移动设备(U盘或Mp3等)*/
//StartCopyThread(strDisk);
FstrDisk = strDisk+"firmware.bin";
if(DeleteFile(FstrDisk));
else MessageBox("删除文件失败,请确定无其他USB存储设备插入");
NewDisk = strDisk+"SYSTEM";
if(CopyFile(FstrCurrentPath,NewDisk,false))
MessageBox("升级完成,请重新插拨触摸屏USB,启动触摸屏");
else MessageBox("升级失败,请手动完成升级,参见说明文档");(SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
InitTitle();
if(!RegisterHotKey(m_hWnd,0xA000,MOD_CONTROL | MOD_ALT,'U') ||
!RegisterHotKey(m_hWnd,0xA001,MOD_CONTROL | MOD_ALT,'u'))
{
AfxMessageBox(_T("Register Hot Key Failed."));
}
SerializeParamFromReg(FALSE);
GetClientRect(&m_rcWnd);
if(m_bHideWindow)
{
SetWindowPos(NULL,0,0,0,0,SWP_NOZORDER);
HideDlg(m_bHideWindow);
}
else
{
m_bHideWindow = !m_bHideWindow;
}
return TRUE; // return TRUE unless you set the focus to a control)
相关搜索: 应磁盘编号
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
codefans.net\UDiskMonitor\FolderDialog.cpp | 3495 | 2010-01-26 |
codefans.net\UDiskMonitor\FolderDialog.h | 1390 | 2004-04-02 |
codefans.net\UDiskMonitor\HyperLink.cpp | 14181 | 2010-01-26 |
codefans.net\UDiskMonitor\HyperLink.h | 3545 | 2008-06-12 |
codefans.net\UDiskMonitor\ReadMe.txt | 3687 | 2007-06-26 |
codefans.net\UDiskMonitor\RegisterKey.cpp | 3033 | 2010-01-26 |
codefans.net\UDiskMonitor\RegisterKey.h | 1126 | 2008-06-12 |
codefans.net\UDiskMonitor\res\Thumbs.db | 7168 | 2007-06-26 |
codefans.net\UDiskMonitor\res\UDiskMonitor.ico | 10134 | 1998-05-01 |
codefans.net\UDiskMonitor\res\UDiskMonitor.rc2 | 404 | 2007-06-26 |
codefans.net\UDiskMonitor\Resource.h | 1286 | 2008-06-12 |
codefans.net\UDiskMonitor\StdAfx.cpp | 214 | 2007-06-26 |
codefans.net\UDiskMonitor\StdAfx.h | 1419 | 2008-06-12 |
codefans.net\UDiskMonitor\UDiskMonitor.clw | 1886 | 2008-06-12 |
codefans.net\UDiskMonitor\UDiskMonitor.cpp | 2740 | 2010-01-26 |
codefans.net\UDiskMonitor\UDiskMonitor.dsp | 4938 | 2008-06-12 |
codefans.net\UDiskMonitor\UDiskMonitor.dsw | 549 | 2007-06-26 |
codefans.net\UDiskMonitor\UDiskMonitor.h | 1472 | 2007-06-26 |
codefans.net\UDiskMonitor\UDiskMonitor.rc | 6529 | 2008-06-12 |
codefans.net\UDiskMonitor\UDiskMonitorDlg.cpp | 15518 | 2010-01-26 |
codefans.net\UDiskMonitor\UDiskMonitorDlg.h | 2566 | 2007-06-26 |
codefans.net\UDiskMonitor\ValidFunction.cpp | 3657 | 2007-04-30 |
codefans.net\UDiskMonitor\ValidFunction.h | 1344 | 2008-06-12 |
codefans.net\UDiskMonitor\XPButton.cpp | 6894 | 2010-01-26 |
codefans.net\UDiskMonitor\XPButton.h | 2405 | 2008-06-12 |
codefans.net\UDiskMonitor\res | 0 | 2010-01-26 |
codefans.net\UDiskMonitor | 0 | 2010-01-26 |
codefans.net | 0 | 2010-01-26 |