

Public Event OnMediaEject(DriveLetter As String)Įnd Property Public Property Let hwnd(lngHwnd As Long)Įnd Property Public Property Get IsMediaAudioCD() As BooleanĮnd Property Public Property Get IsMediaDVDVideo() As BooleanĮnd Property Private Sub SubClass( ByVal hwnd&)
Roms vbag code#
However, see the code of the main class clsROMMonitor below:Ĭopy Code Option Explicit ' Original Window Proc Address Private mlngWinProcOld As Long ' Subclassed hWnd Private mlngHwnd As Long Private mlngHandle As Long Private mstrDriveLetter As String Private mblnMediaAudioCD As Boolean Private mblnMediaDVDVideo As Boolean ' Events Public Event OnMediaInsert(DriveLetter As String) Remember one thing, you might face problems to debug the code from the VB IDE since this is using subclassing. It can be extended to any specific type as you can think. The IsMediaAudioCD and IsMediaDVDVideo properties of the class will help you in this matter. I have implemented AudioCD detection and DVD Video detection logic. You'll also be able to know the type of the content of the media. and it has two events named OnMediaInsert and OnMediaEject, they will fire on arrival and removal of the media as the names imply. The library needs an external hWnd of a "Form" to work. There is one class named clsROMMonitor, the main class responsible for subclassing and event firing. A general module named modROMMonitor holds some useful methods for subclassing and the Win32 API required for the library. I have created an ActiveX DLL project in VB6. As well, you can get the type of content in the media upon arrival. Using the technique and some others, you can write a library that can fire events on arrival and removal of the CD / DVD content. When you insert / eject a CD /DVD, a WM_DEVICECHANGE message occurs in Windows and you can track that in a subclassed application. Using Win32 API, you can track many messages of Windows.

Roms vbag how to#
Ever wondered how to detect the event when you insert a CD / DVD disk in your ROM or the event when you eject the ROM? Have you ever needed to get the type of the content in the CD / DVD that you inserted in the ROM upon insertion of the disk? If the case(s) above is(are) true, the following article is for you. Now, for the game ROMs you can always trust google on that however if you need help, you can try out the following links for the free ROMs in.
Roms vbag install#
I strongly recommend you install vBagX on MMC.
Roms vbag Bluetooth#


Roms vbag full#
