By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,422 Members | 1,615 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,422 IT Pros & Developers. It's quick & easy.

Wireless Networks - Is this even possible?

P: n/a
I'm wanting to create a simple program for my computer at home. I would
like to keep my wireless network disabled and then only enable it when
a certain program starts (internet explorer or firefox), and then
disable the network when the program closes. Trapping when ie or
firefox starts isn't a problem, I just can't figure out how to enable
and disable the wireless network. Does anyone have any ideas on how to
do this?

At the very least could someone tell me if this is even possible (with
VB, C#, or C++) or if I am just wasting my time?

Thanks!

Jan 5 '07 #1
Share this Question
Share on Google+
11 Replies


P: n/a
I'm wanting to create a simple program for my computer at home. I would
like to keep my wireless network disabled and then only enable it when
a certain program starts (internet explorer or firefox), and then
disable the network when the program closes. Trapping when ie or
firefox starts isn't a problem, I just can't figure out how to enable
and disable the wireless network. Does anyone have any ideas on how to
do this?

At the very least could someone tell me if this is even possible (with
VB, C#, or C++) or if I am just wasting my time?
Hi,
I think your best bet is asking in the appropriate platformsdk group.
The groups you posted in are mostly for programming language related
questions.
Not that we don't want to help you, but this is not the place where most
plaform experts hang out.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jan 5 '07 #2

P: n/a
Thanks for your quick reply! I'm guessing from your reply that there is
no quick way of doing this with C++?
I think your best bet is asking in the appropriate platformsdk group.
You don't know what the newsgroup is for the windows XP sdk off hand do
you?

Again, thanks for your time!
Bruno van Dooren [MVP VC++] wrote:
I'm wanting to create a simple program for my computer at home. I would
like to keep my wireless network disabled and then only enable it when
a certain program starts (internet explorer or firefox), and then
disable the network when the program closes. Trapping when ie or
firefox starts isn't a problem, I just can't figure out how to enable
and disable the wireless network. Does anyone have any ideas on how to
do this?

At the very least could someone tell me if this is even possible (with
VB, C#, or C++) or if I am just wasting my time?

Hi,
I think your best bet is asking in the appropriate platformsdk group.
The groups you posted in are mostly for programming language related
questions.
Not that we don't want to help you, but this is not the place where most
plaform experts hang out.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jan 5 '07 #3

P: n/a
I've had a look for you and via an external message board have found
something that might help you. On a similiar topic by a previous poster
Mike Flasko suggested using WMI. The links he provided were out of
date. But I have managed to find a current WMI Networking link into
MSDN.

http://msdn2.microsoft.com/en-us/library/aa394595.aspx

I hope it may be useful in someway,

Gary-
ju*************@yahoo.com wrote:
Thanks for your quick reply! I'm guessing from your reply that there is
no quick way of doing this with C++?
I think your best bet is asking in the appropriate platformsdk group.

You don't know what the newsgroup is for the windows XP sdk off hand do
you?

Again, thanks for your time!
Bruno van Dooren [MVP VC++] wrote:
I'm wanting to create a simple program for my computer at home. I would
like to keep my wireless network disabled and then only enable it when
a certain program starts (internet explorer or firefox), and then
disable the network when the program closes. Trapping when ie or
firefox starts isn't a problem, I just can't figure out how to enable
and disable the wireless network. Does anyone have any ideas on how to
do this?
>
At the very least could someone tell me if this is even possible (with
VB, C#, or C++) or if I am just wasting my time?
Hi,
I think your best bet is asking in the appropriate platformsdk group.
The groups you posted in are mostly for programming language related
questions.
Not that we don't want to help you, but this is not the place where most
plaform experts hang out.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jan 5 '07 #4

P: n/a
On further research into your problem, that might not be the most
useful of links, however... this may.

http://mcpmag.com/columns/article.asp?EditorialsID=619

Gary-

garyuse...@myway.com wrote:
I've had a look for you and via an external message board have found
something that might help you. On a similiar topic by a previous poster
Mike Flasko suggested using WMI. The links he provided were out of
date. But I have managed to find a current WMI Networking link into
MSDN.

http://msdn2.microsoft.com/en-us/library/aa394595.aspx

I hope it may be useful in someway,

Gary-
ju*************@yahoo.com wrote:
Thanks for your quick reply! I'm guessing from your reply that there is
no quick way of doing this with C++?
I think your best bet is asking in the appropriate platformsdk group.
You don't know what the newsgroup is for the windows XP sdk off hand do
you?

Again, thanks for your time!
Bruno van Dooren [MVP VC++] wrote:
I'm wanting to create a simple program for my computer at home. I would
like to keep my wireless network disabled and then only enable it when
a certain program starts (internet explorer or firefox), and then
disable the network when the program closes. Trapping when ie or
firefox starts isn't a problem, I just can't figure out how to enable
and disable the wireless network. Does anyone have any ideas on how to
do this?

At the very least could someone tell me if this is even possible (with
VB, C#, or C++) or if I am just wasting my time?
>
Hi,
I think your best bet is asking in the appropriate platformsdk group.
The groups you posted in are mostly for programming language related
questions.
Not that we don't want to help you, but this is not the place where most
plaform experts hang out.
>
--
>
Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jan 5 '07 #5

P: n/a
Thanks a ton! I just bookmarked both of your links and added you to my
heroes list!

Thanks!
garyuse...@myway.com wrote:
On further research into your problem, that might not be the most
useful of links, however... this may.

http://mcpmag.com/columns/article.asp?EditorialsID=619

Gary-

garyuse...@myway.com wrote:
I've had a look for you and via an external message board have found
something that might help you. On a similiar topic by a previous poster
Mike Flasko suggested using WMI. The links he provided were out of
date. But I have managed to find a current WMI Networking link into
MSDN.

http://msdn2.microsoft.com/en-us/library/aa394595.aspx

I hope it may be useful in someway,

Gary-
ju*************@yahoo.com wrote:
Thanks for your quick reply! I'm guessing from your reply that there is
no quick way of doing this with C++?
>
I think your best bet is asking in the appropriate platformsdk group.
>
You don't know what the newsgroup is for the windows XP sdk off hand do
you?
>
Again, thanks for your time!
>
>
Bruno van Dooren [MVP VC++] wrote:
I'm wanting to create a simple program for my computer at home. I would
like to keep my wireless network disabled and then only enable it when
a certain program starts (internet explorer or firefox), and then
disable the network when the program closes. Trapping when ie or
firefox starts isn't a problem, I just can't figure out how to enable
and disable the wireless network. Does anyone have any ideas on how to
do this?
>
At the very least could someone tell me if this is even possible (with
VB, C#, or C++) or if I am just wasting my time?

Hi,
I think your best bet is asking in the appropriate platformsdk group.
The groups you posted in are mostly for programming language related
questions.
Not that we don't want to help you, but this is not the place where most
plaform experts hang out.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jan 5 '07 #6

P: n/a
ju*************@yahoo.com wrote:
Thanks for your quick reply! I'm guessing from your reply that there is
no quick way of doing this with C++?
It's not that you can't do it with C++. Anything that can be done on a
Windows PC can be done in C++ (or C really). It's just that the people
who know how to do this kind of thing do not typically hang out in the
Visual Studio newsgroups.

David Wilkinson
Jan 5 '07 #7

P: n/a

<ju*************@yahoo.comwrote in message
news:11**********************@i15g2000cwa.googlegr oups.com...
Thanks for your quick reply! I'm guessing from your reply that there is
no quick way of doing this with C++?
>I think your best bet is asking in the appropriate platformsdk group.

You don't know what the newsgroup is for the windows XP sdk off hand do
you?
microsoft.public.win32.programmer.networks
microsoft.public.platformsdk.networking

for other parts of the SDK:

microsoft.public.win32.programmer.{gdi,kernel,ui}
microsoft.public.platformsdk.{base,gdi,shell,ui,wi n_base_svcs}
Jan 5 '07 #8

P: n/a
Thanks for taking the time to list those - I'll be sure to check them
out!

Thanks Again!

Ben Voigt wrote:
<ju*************@yahoo.comwrote in message
news:11**********************@i15g2000cwa.googlegr oups.com...
Thanks for your quick reply! I'm guessing from your reply that there is
no quick way of doing this with C++?
I think your best bet is asking in the appropriate platformsdk group.
You don't know what the newsgroup is for the windows XP sdk off hand do
you?

microsoft.public.win32.programmer.networks
microsoft.public.platformsdk.networking

for other parts of the SDK:

microsoft.public.win32.programmer.{gdi,kernel,ui}
microsoft.public.platformsdk.{base,gdi,shell,ui,wi n_base_svcs}
Jan 5 '07 #9

P: n/a

<ju*************@yahoo.comwrote in message
news:11********************@v33g2000cwv.googlegrou ps.com...
I'm wanting to create a simple program for my computer at home. I would
like to keep my wireless network disabled and then only enable it when
a certain program starts (internet explorer or firefox), and then
disable the network when the program closes. Trapping when ie or
firefox starts isn't a problem, I just can't figure out how to enable
and disable the wireless network. Does anyone have any ideas on how to
do this?

At the very least could someone tell me if this is even possible (with
VB, C#, or C++) or if I am just wasting my time?
That wheel has already been invented -
You could just use a program like ZoneAlarm - and block all programs but the
browser.
You can log into your wireless router with the browser - where you can make
it "connect" or "disconnect" from the internet.
Jan 6 '07 #10

P: n/a
That wheel has already been invented -

I know it has, but since this is a personal project and not a project
for work, budgets/time/etc don't matter. So I would rather reinvent the
wheel and learn something new in the process.

Also, who knows what other programs I might create that will rely on
the ability to enable/disable network access. Therefore, reinventing
the wheel now may in my personnal time may just save me tons of time in
a later work project.

Thanks for your suggestions though!
Hal Rosser wrote:
<ju*************@yahoo.comwrote in message
news:11********************@v33g2000cwv.googlegrou ps.com...
I'm wanting to create a simple program for my computer at home. I would
like to keep my wireless network disabled and then only enable it when
a certain program starts (internet explorer or firefox), and then
disable the network when the program closes. Trapping when ie or
firefox starts isn't a problem, I just can't figure out how to enable
and disable the wireless network. Does anyone have any ideas on how to
do this?

At the very least could someone tell me if this is even possible (with
VB, C#, or C++) or if I am just wasting my time?

That wheel has already been invented -
You could just use a program like ZoneAlarm - and block all programs but the
browser.
You can log into your wireless router with the browser - where you can make
it "connect" or "disconnect" from the internet.
Jan 6 '07 #11

P: n/a
I realize you posted this a while ago, so you may already converted the
vbscript code in one of the above posts. If not, I got bored the other
day and wrote a Code Project article that has that code converted to
Visual Basic .Net

Here's the link:

http://www.codeproject.com/useritems...etworkConn.asp

Thanks,

Seth Rowe
ju*************@yahoo.com wrote:
That wheel has already been invented -

I know it has, but since this is a personal project and not a project
for work, budgets/time/etc don't matter. So I would rather reinvent the
wheel and learn something new in the process.

Also, who knows what other programs I might create that will rely on
the ability to enable/disable network access. Therefore, reinventing
the wheel now may in my personnal time may just save me tons of time in
a later work project.

Thanks for your suggestions though!
Hal Rosser wrote:
<ju*************@yahoo.comwrote in message
news:11********************@v33g2000cwv.googlegrou ps.com...
I'm wanting to create a simple program for my computer at home. I would
like to keep my wireless network disabled and then only enable it when
a certain program starts (internet explorer or firefox), and then
disable the network when the program closes. Trapping when ie or
firefox starts isn't a problem, I just can't figure out how to enable
and disable the wireless network. Does anyone have any ideas on how to
do this?
>
At the very least could someone tell me if this is even possible (with
VB, C#, or C++) or if I am just wasting my time?
>
That wheel has already been invented -
You could just use a program like ZoneAlarm - and block all programs but the
browser.
You can log into your wireless router with the browser - where you can make
it "connect" or "disconnect" from the internet.
Jan 22 '07 #12

This discussion thread is closed

Replies have been disabled for this discussion.