Oops ... sorry. Try msnews.microsof t.com as the newsgroup server in Outlook
Express, then look for the vc or visual c or sdk groups.
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Ray" <ra*@nomail.net > wrote in message
news:gL******** ************@ad elphia.com...
: Randy,
:
: Thanks for all of your help, I'm not sure where to find the
: groups you spoke of but I will try to find them and post a message.
:
:
:
: Thanks Again,
:
: Ray
:
:
:
:
:
: "Randy Birch" <rg************ @mvps.org> wrote in message
: news:Oa******** ************@ro gers.com...
: > Right ... that's what I meant about hwnd. In the context you use it,
hwnd
: > without any qualifier or declaration refers to the hwnd of the form the
: > code
: > is executing in. I suspect that what is required is the hwnd to some
sort
: > of capture window, which I stated I had no idea how to obtain. I suspect
: > that you will not be able to do what you want ... like I said, you want
a
: > IS_CAMERA_IN_US E message which simply doesn't exist that I can see (in a
: > quick scan of the msdn). You might want to ask in the multimedia groups
: > or
: > possibly the visual C group for recommendations on whether this is even
: > possible. Those guys in the C group would be able to tell you if it is
: > ...
: > don't expect VB code from them but with a snippet of C code you at least
: > have a starting point. My demo was to show you what I *suspected* the
: > code
: > you requested might look like in VB. Without a camera to test it, the
code
: > was only an educated guess.
: >
: > If you decide to post to the C group (or the SDK group who operate on an
: > even higher level than the C gang) I would phrase the question as: Does
: > anyone know if there is a notification broadcast, or alternatively a
: > message
: > that can be sent to the system, that would inform me that a web camera
: > attached to the local computer was in use, or not?
: >
: > --
: >
: >
: > Randy Birch
: > MS MVP Visual Basic
: >
http://vbnet.mvps.org/
: >
: >
: > "Ray" <No@mail.net> wrote in message
: > news:VL******** ************@ad elphia.com...
: > : Randy ,
: > : I think I got the code right but it not working this is what I have
so
: > far.
: > :
: > : Ray
: > :
: > : 3 text boxes 1 command button
: > :
: > : Const WM_CAP As Integer = &H400
: > :
: > : Const WM_CAP_GET_STAT US As Long = WM_CAP + 54
: > :
: > : Private Type POINTAPI
: > : x As Long
: > : y As Long
: > : End Type
: > :
: > : Private Type CAPSTATUS
: > : uiImageWidth As Long
: > : uiImageHeight As Long
: > : fLiveWindow As Long
: > : fOverlayWindow As Long
: > : fScale As Long
: > : ptScroll As POINTAPI
: > : fUsingDefaultPa lette As Long
: > : fAudioHardware As Long
: > : fCapFileExists As Long
: > : dwCurrentVideoF rame As Long
: > : dwCurrentVideoF ramesDropped As Long
: > : dwCurrentWaveSa mples As Long
: > : dwCurrentTimeEl apsedMS As Long
: > : hPalCurrent As Long
: > : fCapturingNow As Long
: > : dwReturn As Long
: > : wNumVideoAlloca ted As Long
: > : wNumAudioAlloca ted As Long
: > : End Type
: > :
: > : Private Declare Function SendMessage Lib "user32" Alias "SendMessag eA"
_
: > : (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _
: > : lParam As Any) As Long
: > :
: > : Dim cap As CAPSTATUS
: > :
: > : Private Sub Command1_Click( )
: > : Dim success As Long
: > :
: > : success = SendMessage(hwn d, WM_CAP_GET_STAT US, Len(cap), cap)
: > :
: > : If success <> 0 Then
: > : Text1.Text = "True"
: > : Text2.Text = cap.uiImageWidt h
: > : Text3.Text = cap.uiImageHeig ht
: > : Else
: > : Text1.Text = "False"
: > : Text2.Text = 0
: > : Text3.Text = 0
: > : End If
: > :
: > :
: > : End Sub
: > :
: > :
: > :
: > :
: >
:
: