How can I display the TCP/IP settings dialog programmatically?

G

Guest

Hello,

to set the IP-Adress, Subnet mask etc. I can go to

Control panel -> Network connections -> Local Aerea Connection -> Internet
Protocoll (TCP/IP) -> Properties

The dialog, which pops up then, I want to display programmatically from my
custom shell, to let the user configure IP-Adr., Subnet mask, Gateway etc. I
want that the user sees this dialog only, not the one, which is displayed
before. I want, that the user is able, to set TCP/IP related settings only,
but not able to configure the network card for instance.

So, does anybody know, how to display the "TCP/IP settings dialog" only?

Any hints are welcome.
Klaus
 
M

Martin Grossen, eMVP [AVNET Silica]

Hi Klaus

With the control.exe in "Control Panel Comamnd Line Support" component, you
are able to pop up the Net dialog box.
here the command:

control inetcpl.cpl,@0,4

but.. this shows the whole net config dialog.
If you only want to change IP config, you have to write
your own application. You can find some scrips in this newsgrous
how to change the IP settings. It's a common thing to change the IP with a
script during FBA.

--

Martin Grossen, eMVP

AVNET EMG Silica
Franchise Manager Microsoft Embedded Europe

Your competent partner for Microsoft Embedded licencing

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
G

Guest

Hi Martin,

thank you for your answer. The command
control inetcpl.cpl,@0,4

is very interesting. I didn't know that it's possible to display a certain
Property Page with "@0,4". Thats useful. But unfortunately that is not the
page which I want to display to the user. I need the page where you can setup
IP-Adress, Subnet mask, default gateway and DNS server. I fear, that I have
to code my own dialog, which inquires IP Adress etc. from user and then set
the parameter with netshell. For me it's like reinventing the wheel, because
the system already has an applicable dialog, but I'm not able to display it,
without displaying other stuff, which I don't want the user to see.

Another example is

control sysdm.cpl,@0,1

this dialog page is useful for me, to let the user set the computer name and
workgroup, which is needed to setup the network correctly. But when I display
this dialog, unfortunately the user is able to click on the "Hardware" tab
and start the device manager. But I want to hide the device manager from the
user. Is it perhaps possible to display only certain pages from such a
"cpl-Dialog"?

Klaus
 
M

Martin Grossen, eMVP [AVNET Silica]

not with control.exe.
The dialog boxes inside the cpls
are coded in the dll files with the same name.
So you have to write your own box.


--

Martin Grossen, eMVP

AVNET EMG Silica
Franchise Manager Microsoft Embedded Europe

Your competent partner for Microsoft Embedded licencing

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
G

Guest

Hello Martin,

thank you for clarifying this. I will code my own dialog boxes. Fortunately
this is not very complicated.

Have a nice day,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top