This code returns the volume serial for a hard drive (VB6). Code Public Declare Function GetVolumeSerialNumber Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As Long, ByVal nVolumeNameSize...
In VB6, in order for you to make the Printer object in VB6 recognize the return of the CommonDialog.ShowPrinter method, you have to set something like: Printer.TrackDefault = True ' then show the printer dialog commonDialog1.ShowPrinter The only problem...