Click here to Skip to main content
15,906,645 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralwaveOutGetDevCaps Pin
mivey417-Aug-04 5:14
mivey417-Aug-04 5:14 
GeneralRe: waveOutGetDevCaps Pin
Dave Kreskowiak17-Aug-04 5:37
mveDave Kreskowiak17-Aug-04 5:37 
GeneralRe: waveOutGetDevCaps Pin
mivey417-Aug-04 7:38
mivey417-Aug-04 7:38 
GeneralRe: waveOutGetDevCaps Pin
Dave Kreskowiak17-Aug-04 10:22
mveDave Kreskowiak17-Aug-04 10:22 
GeneralRe: waveOutGetDevCaps Pin
mivey418-Aug-04 5:52
mivey418-Aug-04 5:52 
GeneralRe: waveOutGetDevCaps Pin
Dave Kreskowiak18-Aug-04 6:27
mveDave Kreskowiak18-Aug-04 6:27 
GeneralRe: waveOutGetDevCaps Pin
Dave Kreskowiak18-Aug-04 12:21
mveDave Kreskowiak18-Aug-04 12:21 
GeneralRe: waveOutGetDevCaps Pin
Anonymous17-Aug-04 6:34
Anonymous17-Aug-04 6:34 
mivey4, try this:

Imports System.Runtime.InteropServices

Public Class Form1
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code removed here"


Public Const MAXPNAMELEN = 32

<structlayout(layoutkind.sequential, charset:="CharSet.Auto)"> _
Structure WAVEOUTCAPS
Public wMid As Short
Public wPid As Short
Public vDriverVersion As Integer
<marshalas(unmanagedtype.byvaltstr, sizeconst:="MAXPNAMELEN)"> _
Public szPname As String
Public dwFormats As Integer
Public wChannel As Short
Public wReserved1 As Short
Public dwSupport As Integer
End Structure


Declare Auto Function waveOutGetDevCaps Lib "winmm.dll" _
(ByVal uDeviceID As Integer, _
ByRef lpCaps As WAVEOUTCAPS, _
ByVal uSize As Integer) As Integer


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load


Dim caps As New WAVEOUTCAPS
Dim dev, hWaveOut, hwnd As Integer
Dim buffer As String = (MAXPNAMELEN)

dev = waveOutGetDevCaps(0, caps, Len(caps))

TextBox1.Text = "Device = " & caps.szPname
TextBox2.Text = "Driver Version = " & caps.vDriverVersion
TextBox3.Text = "Channel = " & caps.wChannel

End Sub
End Class
GeneralRe: waveOutGetDevCaps Pin
Anonymous17-Aug-04 6:53
Anonymous17-Aug-04 6:53 
GeneralRe: waveOutGetDevCaps Pin
mivey417-Aug-04 9:11
mivey417-Aug-04 9:11 
GeneralRe: waveOutGetDevCaps Pin
Anonymous17-Aug-04 9:34
Anonymous17-Aug-04 9:34 
GeneralRe: waveOutGetDevCaps Pin
Anonymous17-Aug-04 9:59
Anonymous17-Aug-04 9:59 
GeneralRe: waveOutGetDevCaps Pin
Anonymous17-Aug-04 10:24
Anonymous17-Aug-04 10:24 
GeneralRe: waveOutGetDevCaps Pin
mivey418-Aug-04 6:25
mivey418-Aug-04 6:25 
GeneralNeed to switch between Applications Pin
awhucks17-Aug-04 4:49
awhucks17-Aug-04 4:49 
GeneralRe: Need to switch between Applications Pin
Pablo.ar17-Aug-04 6:48
Pablo.ar17-Aug-04 6:48 
GeneralRe: Need to switch between Applications Pin
awhucks17-Aug-04 7:36
awhucks17-Aug-04 7:36 
GeneralRe: Need to switch between Applications Pin
awhucks17-Aug-04 7:51
awhucks17-Aug-04 7:51 
GeneralRe: Need to switch between Applications Pin
Pablo.ar17-Aug-04 16:16
Pablo.ar17-Aug-04 16:16 
Generaltransactions causing exceptions Pin
kowplunk17-Aug-04 4:45
kowplunk17-Aug-04 4:45 
GeneralRe: transactions causing exceptions Pin
Dave Kreskowiak17-Aug-04 5:29
mveDave Kreskowiak17-Aug-04 5:29 
GeneralRe: transactions causing exceptions Pin
kowplunk17-Aug-04 10:23
kowplunk17-Aug-04 10:23 
Questionreload datagrid? Pin
Lisana17-Aug-04 4:40
Lisana17-Aug-04 4:40 
Questionrecieving data in a network stream?? Pin
ineedhelp17-Aug-04 0:04
ineedhelp17-Aug-04 0:04 
AnswerRe: recieving data in a network stream?? Pin
Dave Kreskowiak17-Aug-04 4:16
mveDave Kreskowiak17-Aug-04 4:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.