VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Detect CDROM information using VB

ALI JOUNI  (1 Submission)   Files/File Controls/Input/Output   VB 6.0   Unknown Difficulty   Sat 27th July 2002   Mon 8th February 2021

Detect CDROM information using VB

API Declarations




Public Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long
Public Const DRIVE_CDROM = 5


Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Const SW_NORMAL = 1
Global Const SW_SHOW = 5


Declare Function GetVolumeInformation Lib "kernel32" Alias "GetVolumeInformationA" ( _
ByVal lpRootPathName As String, _
ByVal lpVolumeNameBuffer As String, _
ByVal nVolumeNameSize As Long, _
lpVolumeSerialNumber As Long, _
lpMaximumComponentLength As Long, _
lpFileSystemFlags As Long, _
ByVal lpFileSystemNameBuffer As String, _
ByVal nFileSystemNameSize As Long) As Long

Rate Detect CDROM information using VB (2(2 Vote))
Detect CDROM information using VB.bas

Detect CDROM information using VB Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters