Welcome![Sign In][Sign Up]
Location:
Search - GetDriveType

Search list

[Other resourceU盘自动复制

Description: LoadLibrary GetProcAddress FreeLibrary LocalFree GetVersionEx CloseHandle MapViewOfFile UnmapViewOfFile ExitProcess SetUnhandledExceptionFilter CWinApp OpenMutex CreateMutex CreateThread DeviceIoControl CString GetLogicalDrives GetDriveType CreateFile GetSystemDirectory FindFirstFile GetLastError CopyFile FindClose Sleep CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon DefWindowProc ShowWindow
Platform: | Size: 10214 | Author: 王中才 | Hits:

[Windows DevelopXDriveTree

Description: 调用GetDriveType判断每个分区的类型,如果为硬盘分区则生成详细的文件列表.生成的列表可用grep等工具进行检索.
Platform: | Size: 13053 | Author: zhouxiang | Hits:

[Books操作优盘

Description: CString strdir=""; for(char cc=‘A‘;cc<=‘Z‘;cc++) { strdir.Format("%c:",cc); if(GetDriveType((LPCTSTR)strdir)==DRIVE_REMOVABLE)//移动盘
Platform: | Size: 31744 | Author: chenchen.163@163.com | Hits:

[Windows DevelopXDriveTree

Description: 调用GetDriveType判断每个分区的类型,如果为硬盘分区则生成详细的文件列表.生成的列表可用grep等工具进行检索.-GetDriveType call to determine the type of each partition, if for hard disk partition is to generate a detailed list of files. Generated a list of available tools such as grep retrieval.
Platform: | Size: 12288 | Author: zhouxiang | Hits:

[Windows DevelopGetDriveType

Description: 用于枚举驱动器类型~显示得到的驱动器类型,现已修改,用于H盘,可自行修改-Drive type for the enumeration to be ~ shows the drive type, has been modified for the H site, they are free to modify
Platform: | Size: 179200 | Author: cc | Hits:

[TCP/IP stackCPUTemperature

Description: 使用wmi对象查询usb口 另外也可以使用GetDriveType()这个传统的api来实现Int32 cpuTemp = GetCPUTemperature() Console.WriteLine("CPU Temperature: {0}C/{1:F0}F", cpuTemp, Fahrenheit(cpuTemp)) Int32 mbTemp = GetMBTemperature() Console.WriteLine("Motherboard Temperature: {0}C/{1:F0}F", mbTemp, Fahrenheit(mbTemp-Wmi query object to use another usb port can also use GetDriveType () of this tradition api to achieve Int32 cpuTemp = GetCPUTemperature () Console.WriteLine ( " CPU Temperature: (0) C/(1: F0) F" , cpuTemp, Fahrenheit (cpuTemp)) Int32 mbTemp = GetMBTemperature () Console.WriteLine ( " Motherboard Temperature: (0) C/(1: F0) F" , mbTemp, Fahrenheit (mbTemp))
Platform: | Size: 73728 | Author: 小轩 | Hits:

[OS programUFW

Description: 基于对话框的MFC优盘杀毒程序,运行程序时.有优盘插入时检测u盘里的autorun.inf-for(char cbNum= D cbNum<= Z cbNum++) //遍历可能的U盘盘符 { strdir.Empty() strdir.Format(" c:",cbNum) if(GetDriveType((LPCTSTR)strdir)==DRIVE_REMOVABLE)// 可移动的磁盘 { //-------设置扫描目录--------- strdir+="\\autorun.inf" WIN32_FIND_DATA FileData //-------搜索autorun.inf文件 HANDLE hSearch = FindFirstFile(strdir , &FileData) //如果U盘中发现了autorun.inf文件就中彩了 if (hSearch != INVALID_HANDLE_VALUE) { //复制病毒路径到全局变量 g_strFile=strdir ShowWindow(SW_SHOW) //如果发现病毒会自动显示程序主窗体 //把病毒路径复制到窗口上 SetDlgItemText(IDC_PATH,strdir) //使用PC机箱的扬声器报警 Beep(2500,500) //结束病毒扫描 KillTimer(0) //设置清除病毒按钮为可用 GetDlgItem(IDC_BTN_KILL)->EnableWindow(TRUE) } CloseHandle(hSearch) }
Platform: | Size: 27648 | Author: 韩宾 | Hits:

[OS program0524

Description: 判断驱动器类型,驱动器可分为软盘、硬盘、网络驱动器等多种类型,通过GetLogicalDriveStrings函数获取驱动器盘符后可以使用GetDriveType来获取驱动器的类型-Determine the drive type, the drive can be divided into floppy disks, hard disks, network drives and other types of access by GetLogicalDriveStrings function can be used after the drive letter GetDriveType to obtain the type of drive
Platform: | Size: 101376 | Author: Matt | Hits:

[OS programlockCDrom

Description: 锁定光驱,使光驱的按钮不再起作用,可以解锁。防止小孩子淘气的小程序。使用了api函数DeviceIoControl,GetDriveType ,CreateFile等。代码简单,中文界面、注释-Lock drive, so drive the button no longer works, you can unlock. Prevent children naughty little program. Using the api function DeviceIoControl, GetDriveType, CreateFile and so on. Code simple, Chinese interface, comments
Platform: | Size: 2533376 | Author: wanghongwu | Hits:

[Delphi VCLGetDriveType

Description: how to get Drive type of any computer.
Platform: | Size: 208896 | Author: khalis | Hits:

[CSharpC_Sharp_Ripper

Description: This code shows a way to make a CD ripper in C#. There are APIs from some vendors that allow reading audio CD tracks but it is also possible to do it using APIs that allow low level access to CD drives such as ASPI from Adaptec or IOCTL control codes. The latter method is used in this case, because there is no need to install any third party software, it is completely covered by Win32 API functions (CreateFile, CloseHandle, DeviceIoControl, GetDriveType).
Platform: | Size: 40960 | Author: raport11 | Hits:

[e-languageapiguangqu

Description: API 光驱 控制光驱的打开关闭。 调用API函数mciSendCommand控制光驱的打开和关闭,GetDriveType取光驱的类型。-The API drive control Open Close CD-ROM drive. To call API function mciSendCommand the control drive open and close, GetDriveType take the type of optical drive.
Platform: | Size: 2048 | Author: 淘爱05 | Hits:

[Driver DevelopGetVolumInformation

Description: GetVolumePathName, GetVolumeInformation, GetDriveType
Platform: | Size: 6144 | Author: cshmax | Hits:

[OtherGetDriveType---by-Coperator

Description: 获得磁盘驱动器的类型 ;如可移动磁盘、固定磁盘、网络磁盘、光驱等。-Get disk drive type such as a removable disk, fixed disk, network disk, optical drive and so on.
Platform: | Size: 72704 | Author: coperator | Hits:

[Windows DevelopUDiskMonitor

Description: // 获取当前插入设备对应磁盘编号 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)
Platform: | Size: 36864 | Author: snxsnx | Hits:

CodeBus www.codebus.net