473,763 Members | 3,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with Network/Web Cam active

Ray
I'm using VB6, I am a little more then a novice but not much..
and my question is - Is there a way to detect and possibly notify
(me/mycomputer) if someone is using a Web Cam mainly MSN on my LAN with out
the user knowing it? Even if I have to install software on the user
computer..

I not sure if this is the right way to go about this

I can get the WM_CAP_DRIVER_C ONNECT to return a True/False but this brings
up a (Video Source window) if False, I just want the value (T/F)

I am unable to get the WM_CAP_GET_STAT US to work.

Any help or sources would be appreciated.

Thanks..
Ray
Jul 17 '05 #1
7 5155
I don't think that's what you want ... the MSDN states that particular
message is used to retrieve the status of the capture window -- the
CAPSTATUS structure contains information regarding the dimensions of the
image, scroll position, and whether overlay or preview of the image is
enabled.

This of course presumes that there is a capture window on-screen.

As far as the calling syntax, that looks like it should be a simple
SendMessage call. I don't have a camera, but off the top of my head I'd be
inclined to start with:

const WM_CAP_GET_STAT US = whatever value it is

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
UINT wNumAudioAlloca ted
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 success as long
dim cap as CAPSATUS

success = sendmessage (hwnd, wm_cap_get_stat us, len(cap), cap)

if success <> 0 then
? "it worked"
? cap.uiImageWidt h
? cap.uiImageHeig ht
end if

The problem is the hwnd parameter ... no idea what to put there.

I'm wondering, reading the MSDN, if the WM_CAP_DRIVER_G ET_NAME message may
not be more appropriate? Its description is "returns the name of the
capture driver connected to the capture window." This implies to me that if
the capture window exists and is connected to a device you get a name, and
if it does not exist you get no info.

There's also WM_CAP_GET_SEQU ENCE_SETUP -- "retrieves the current settings of
the streaming capture parameters" into a CAPTUREPARAMS structure containing
info such as dwMCIStartTime and dwMCIStopTime.

Problem here again though is in order to use SendMessage you have to direct
it to the hwnd of the capture window. A catch-22.

I also wonder if this is the path to go down? After all, a web cam can be
in use without a media player (for example) session on screen. It seems to
me these messages target the GUI aspect of video, not the use of a web cam.

I guess you're looking for the equivalent of a "WM_IS_CAMERA_I N_USE"
message, which I don't see as being available.

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Ray" <No@mail.net> wrote in message
news:UK******** ************@ad elphia.com...
: I'm using VB6, I am a little more then a novice but not much..
: and my question is - Is there a way to detect and possibly notify
: (me/mycomputer) if someone is using a Web Cam mainly MSN on my LAN with
out
: the user knowing it? Even if I have to install software on the user
: computer..
:
: I not sure if this is the right way to go about this
:
: I can get the WM_CAP_DRIVER_C ONNECT to return a True/False but this brings
: up a (Video Source window) if False, I just want the value (T/F)
:
: I am unable to get the WM_CAP_GET_STAT US to work.
:
: Any help or sources would be appreciated.
:
: Thanks..
: Ray
:
:

Jul 17 '05 #2
Ray
Hi Randy,
I tried your program, But I got an error..
Statement invalid inside Type Block
(UINT wNumAudioAlloca ted )

Thanks for your time to help...
Ray
const WM_CAP_GET_STAT US = 54 <--- (I believe)

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
--> UINT wNumAudioAlloca ted <------------------
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 success as long
dim cap as CAPSATUS

success = sendmessage (hwnd, wm_cap_get_stat us, len(cap), cap)

if success <> 0 then
? "it worked"
? cap.uiImageWidt h
? cap.uiImageHeig ht
end if

The problem is the hwnd parameter ... no idea what to put there.

I'm wondering, reading the MSDN, if the WM_CAP_DRIVER_G ET_NAME message may
not be more appropriate? Its description is "returns the name of the
capture driver connected to the capture window." This implies to me that if the capture window exists and is connected to a device you get a name, and
if it does not exist you get no info.

There's also WM_CAP_GET_SEQU ENCE_SETUP -- "retrieves the current settings of the streaming capture parameters" into a CAPTUREPARAMS structure containing info such as dwMCIStartTime and dwMCIStopTime.

Problem here again though is in order to use SendMessage you have to direct it to the hwnd of the capture window. A catch-22.

I also wonder if this is the path to go down? After all, a web cam can be
in use without a media player (for example) session on screen. It seems to
me these messages target the GUI aspect of video, not the use of a web cam.
I guess you're looking for the equivalent of a "WM_IS_CAMERA_I N_USE"
message, which I don't see as being available.

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Ray" <No@mail.net> wrote in message
news:UK******** ************@ad elphia.com...
: I'm using VB6, I am a little more then a novice but not much..
: and my question is - Is there a way to detect and possibly notify
: (me/mycomputer) if someone is using a Web Cam mainly MSN on my LAN with
out
: the user knowing it? Even if I have to install software on the user
: computer..
:
: I not sure if this is the right way to go about this
:
: I can get the WM_CAP_DRIVER_C ONNECT to return a True/False but this brings : up a (Video Source window) if False, I just want the value (T/F)
:
: I am unable to get the WM_CAP_GET_STAT US to work.
:
: Any help or sources would be appreciated.
:
: Thanks..
: Ray
:
:

Jul 17 '05 #3
That should have been a long as well, without the UINT. Like I said, air
code.

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Ray" <No@mail.net> wrote in message
news:zr******** ************@ad elphia.com...
: Hi Randy,
: I tried your program, But I got an error..
: Statement invalid inside Type Block
: (UINT wNumAudioAlloca ted )
:
: Thanks for your time to help...
: Ray
:
: > const WM_CAP_GET_STAT US = 54 <--- (I believe)
: >
: >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
: > --> UINT wNumAudioAlloca ted <------------------
: > 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 success as long
: > dim cap as CAPSATUS
: >
: > success = sendmessage (hwnd, wm_cap_get_stat us, len(cap), cap)
: >
: > if success <> 0 then
: > ? "it worked"
: > ? cap.uiImageWidt h
: > ? cap.uiImageHeig ht
: > end if
: >
: > The problem is the hwnd parameter ... no idea what to put there.
: >
: > I'm wondering, reading the MSDN, if the WM_CAP_DRIVER_G ET_NAME message
may
: > not be more appropriate? Its description is "returns the name of the
: > capture driver connected to the capture window." This implies to me
that
: if
: > the capture window exists and is connected to a device you get a name,
and
: > if it does not exist you get no info.
: >
: > There's also WM_CAP_GET_SEQU ENCE_SETUP -- "retrieves the current
settings
: of
: > the streaming capture parameters" into a CAPTUREPARAMS structure
: containing
: > info such as dwMCIStartTime and dwMCIStopTime.
: >
: > Problem here again though is in order to use SendMessage you have to
: direct
: > it to the hwnd of the capture window. A catch-22.
: >
: > I also wonder if this is the path to go down? After all, a web cam can
be
: > in use without a media player (for example) session on screen. It seems
to
: > me these messages target the GUI aspect of video, not the use of a web
: cam.
: >
: > I guess you're looking for the equivalent of a "WM_IS_CAMERA_I N_USE"
: > message, which I don't see as being available.
: >
: > --
: >
: >
: > Randy Birch
: > MS MVP Visual Basic
: > http://vbnet.mvps.org/
: >
: >
: > "Ray" <No@mail.net> wrote in message
: > news:UK******** ************@ad elphia.com...
: > : I'm using VB6, I am a little more then a novice but not much..
: > : and my question is - Is there a way to detect and possibly notify
: > : (me/mycomputer) if someone is using a Web Cam mainly MSN on my LAN
with
: > out
: > : the user knowing it? Even if I have to install software on the user
: > : computer..
: > :
: > : I not sure if this is the right way to go about this
: > :
: > : I can get the WM_CAP_DRIVER_C ONNECT to return a True/False but this
: brings
: > : up a (Video Source window) if False, I just want the value (T/F)
: > :
: > : I am unable to get the WM_CAP_GET_STAT US to work.
: > :
: > : Any help or sources would be appreciated.
: > :
: > : Thanks..
: > : Ray
: > :
: > :
: >
:
:

Jul 17 '05 #4
Ray
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


Jul 17 '05 #5
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
:
:
:
:

Jul 17 '05 #6
Ray
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
:
:
:
:

Jul 17 '05 #7
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
: > :
: > :
: > :
: > :
: >
:
:

Jul 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3474
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed Pentagjetvedeh karuvificials madhla reachathe strategy in karkun campaign deshatinst terrorism. "mudivae maretu winning or losing karkun global varti jetvedeh terror?" Mr. Rumsfeld adugued in a recent memormariyuum. vede velli jetvedeh madhla...
3
814
by: Zeno Lee | last post by:
I'm trying to authenticate a user against a windows network. I want it to work across any kind of windows network from NT 4.0 up to Windows 2003 ADS. So far I've been using DirectoryEntry and DirectorySearcher and doing a search on Active Directory. With the addition of a customer on an NT 4.0 network, I've had to add DllImport using LogonUser() from advapi32.dll in addition to the directory search. To simplify my code, Is it...
2
2741
by: Edh | last post by:
Is there a system event or notification that I can catch in my application to know when any network connection has become active (WiFi, Dial Up, LAN etc...)? Example: I have a service that sits idle until it gets a "Network Active Event". This service runs on a laptop that may roam in and out of wifi coverage. When the user walks into a hotspot area, I want my application to realize this, and now check for new files. Thanks,
2
2909
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public users). If user is from intranet, web server should recognize it and application should create additional options in controls regarding groups the user belongs to. If user is from extranet it should be logged in as anonymous and a link to login page...
8
3031
by: BJ | last post by:
Problem: How can I code up a client side process to detect if the network is available? Synopsis: I am writing ASP.NET input forms for a Panasonic Tuff book. The users will be walking around the plant with a wireless connection. There are some pockets of non-connectivity. I've been tasked with disabling the submit button on the form if the network is unavailable. Possible solution: I can instantiate a timed process (VB.NET 2.0
5
11162
by: Paul Bromley | last post by:
How do I know which IP address is active?? I have created the following class and this works well, but the first address it obtains on my machine is not the active one - in fact I do not know what NIC it refers to the second one in the addresslist is the current one (mIpAddr(1).ToString()). How can I test for the current active IP address?? Many thanks in anticipation. Many thanks
2
1405
by: Ming | last post by:
I do not understand the sample code on php.net for curl_multi_exec. Any help? Many thanks! <?php // create both cURL resources $ch1 = curl_init(); $ch2 = curl_init(); // set URL and other appropriate options curl_setopt($ch1, CURLOPT_URL, "http://www.example.com/");
2
3527
by: violeta123 | last post by:
I am stuck! Please help It might be difficult to explain the problem via email, but I will try. I have a Win 2003 Enterprise server running with the only purpose of a membership web site that uses SQL server 2000 database. I had the site for over 5 years, but the problem started about 6 months ago. At random times (at least I have not found yet any particular time or event when it happens), the Web site Times-out and so the SQL server....
3
1247
by: nomad | last post by:
Hi, I need to be able to check the logon credentials of a Windows XP machine, so I can then check these against active directory so that I can pull off their groups, which can then be checked in my ASP.Net site to authenticate against certain pages. Is this possible? Appreciate any help on this
41
10367
by: saurabh9gupta | last post by:
I want ot generate a Network Diagram based on the information Stored in my Database IP ADRESS STATUS 128.98.76.6 Active 128.96.35.21 Active 128.5.68.9 Not Active I want to generate a network diagram in which the Active nodes are shown by a green link and non active in Red link. How should i do this in C#
0
9386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10145
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9998
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.