Discussion:
How to disable Work Offline
(too old to reply)
mehmet
2006-03-16 09:50:28 UTC
Permalink
Hi Everybody,
For our project we need to do the followings for MS internet Explorer ;
1) Change to menu item's File, Work offline to be checked and disabled.
2) Disable connecting MS internet Explorer to Internet.
How can we achive these things using windows setup and programiticaly ?
We are not using object language. Can we do these things with windows api ?
Best Regards.
Mehmet
Scherbina Vladimir
2006-03-16 12:51:24 UTC
Permalink
Hello, Mehmet.

1. Unfortunatly, AFAIR there is no documented way to manage existing IE menu
items - you can create your own, but not manage existing (disable, enable,
etc...), but you can try undocumented way - look at
http://www.browsersentinel.com/help/tools.htm - it contains (documented)
examples how to add extensions menu items, most likely it's performed via
COM - a COM object impelements handler logic - (i.e. what to do when user
clicked on item) and maybe you will have a chance to get HMENU handle from
those COM object. Another solution is to hook Menu management functions in
the IE process (but this way is really not a good suggestion).

2. You can disable IE connection to the internet using wininet function
InternetSetOption. Look at example avialable at
http://msdn.microsoft.com/workshop/components/offline/offline.asp
(SetGlobalOffline function).
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Everybody,
For our project we need to do the followings for MS internet Explorer ;
1) Change to menu item's File, Work offline to be checked and disabled.
2) Disable connecting MS internet Explorer to Internet.
How can we achive these things using windows setup and programiticaly ?
We are not using object language. Can we do these things with windows api ?
Best Regards.
Mehmet
mehmet
2006-03-16 14:58:28 UTC
Permalink
Thanks Vladmir for your kind help.
Mehmet
Post by Scherbina Vladimir
Hello, Mehmet.
1. Unfortunatly, AFAIR there is no documented way to manage existing IE menu
items - you can create your own, but not manage existing (disable, enable,
etc...), but you can try undocumented way - look at
http://www.browsersentinel.com/help/tools.htm - it contains (documented)
examples how to add extensions menu items, most likely it's performed via
COM - a COM object impelements handler logic - (i.e. what to do when user
clicked on item) and maybe you will have a chance to get HMENU handle from
those COM object. Another solution is to hook Menu management functions in
the IE process (but this way is really not a good suggestion).
2. You can disable IE connection to the internet using wininet function
InternetSetOption. Look at example avialable at
http://msdn.microsoft.com/workshop/components/offline/offline.asp
(SetGlobalOffline function).
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Everybody,
For our project we need to do the followings for MS internet Explorer ;
1) Change to menu item's File, Work offline to be checked and disabled.
2) Disable connecting MS internet Explorer to Internet.
How can we achive these things using windows setup and programiticaly ?
We are not using object language. Can we do these things with windows api ?
Best Regards.
Mehmet
Vladimir Scherbina
2006-03-16 15:04:25 UTC
Permalink
You're welcome, if you'll have questions feel free to ask them here.
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Thanks Vladmir for your kind help.
Mehmet
Post by Scherbina Vladimir
Hello, Mehmet.
1. Unfortunatly, AFAIR there is no documented way to manage existing IE menu
items - you can create your own, but not manage existing (disable, enable,
etc...), but you can try undocumented way - look at
http://www.browsersentinel.com/help/tools.htm - it contains (documented)
examples how to add extensions menu items, most likely it's performed via
COM - a COM object impelements handler logic - (i.e. what to do when user
clicked on item) and maybe you will have a chance to get HMENU handle from
those COM object. Another solution is to hook Menu management functions in
the IE process (but this way is really not a good suggestion).
2. You can disable IE connection to the internet using wininet function
InternetSetOption. Look at example avialable at
http://msdn.microsoft.com/workshop/components/offline/offline.asp
(SetGlobalOffline function).
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Everybody,
For our project we need to do the followings for MS internet Explorer ;
1) Change to menu item's File, Work offline to be checked and disabled.
2) Disable connecting MS internet Explorer to Internet.
How can we achive these things using windows setup and programiticaly ?
We are not using object language. Can we do these things with windows
api
?
Best Regards.
Mehmet
mehmet
2006-03-16 17:36:26 UTC
Permalink
Hi Vladmir,
How can I aware that IE started ?
Which win32 api can aware me that IE has started ?
Regards.
Mehmet
Post by Vladimir Scherbina
You're welcome, if you'll have questions feel free to ask them here.
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Thanks Vladmir for your kind help.
Mehmet
Post by Scherbina Vladimir
Hello, Mehmet.
1. Unfortunatly, AFAIR there is no documented way to manage existing IE menu
items - you can create your own, but not manage existing (disable, enable,
etc...), but you can try undocumented way - look at
http://www.browsersentinel.com/help/tools.htm - it contains (documented)
examples how to add extensions menu items, most likely it's performed via
COM - a COM object impelements handler logic - (i.e. what to do when user
clicked on item) and maybe you will have a chance to get HMENU handle from
those COM object. Another solution is to hook Menu management functions in
the IE process (but this way is really not a good suggestion).
2. You can disable IE connection to the internet using wininet function
InternetSetOption. Look at example avialable at
http://msdn.microsoft.com/workshop/components/offline/offline.asp
(SetGlobalOffline function).
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Everybody,
For our project we need to do the followings for MS internet Explorer ;
1) Change to menu item's File, Work offline to be checked and disabled.
2) Disable connecting MS internet Explorer to Internet.
How can we achive these things using windows setup and programiticaly ?
We are not using object language. Can we do these things with windows
api
?
Best Regards.
Mehmet
Scherbina Vladimir
2006-03-16 19:11:28 UTC
Permalink
There are several ways to achieve this.

You can create an application that makes snapshot of all processes using
CreateToolhelp32Snapshot and then finds "iexplorer.exe" in the list of
processes in a system, but this way is inefficient. A better solution is to
make an Internet Explorer add-in called BHO (Browser Helper Object).

BHO will be loaded in each instance of IE and can handle such events as
beforenavigate, documentcomplete, etc...BHO is implemented as inproc COM
server (dll), take a look at
http://msdn.microsoft.com/library/en-us/dnwebgen/html/bho.asp for more
details.
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Vladmir,
How can I aware that IE started ?
Which win32 api can aware me that IE has started ?
Regards.
Mehmet
Post by Vladimir Scherbina
You're welcome, if you'll have questions feel free to ask them here.
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Thanks Vladmir for your kind help.
Mehmet
Post by Scherbina Vladimir
Hello, Mehmet.
1. Unfortunatly, AFAIR there is no documented way to manage existing
IE
menu
items - you can create your own, but not manage existing (disable, enable,
etc...), but you can try undocumented way - look at
http://www.browsersentinel.com/help/tools.htm - it contains (documented)
examples how to add extensions menu items, most likely it's performed via
COM - a COM object impelements handler logic - (i.e. what to do when user
clicked on item) and maybe you will have a chance to get HMENU handle from
those COM object. Another solution is to hook Menu management
functions
in
the IE process (but this way is really not a good suggestion).
2. You can disable IE connection to the internet using wininet function
InternetSetOption. Look at example avialable at
http://msdn.microsoft.com/workshop/components/offline/offline.asp
(SetGlobalOffline function).
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Everybody,
For our project we need to do the followings for MS internet Explorer ;
1) Change to menu item's File, Work offline to be checked and disabled.
2) Disable connecting MS internet Explorer to Internet.
How can we achive these things using windows setup and
programiticaly ?
We are not using object language. Can we do these things with windows
api
?
Best Regards.
Mehmet
mehmet
2006-03-16 20:30:52 UTC
Permalink
Again many thanks Vladimir.
Mehmet
Post by Scherbina Vladimir
There are several ways to achieve this.
You can create an application that makes snapshot of all processes using
CreateToolhelp32Snapshot and then finds "iexplorer.exe" in the list of
processes in a system, but this way is inefficient. A better solution is to
make an Internet Explorer add-in called BHO (Browser Helper Object).
BHO will be loaded in each instance of IE and can handle such events as
beforenavigate, documentcomplete, etc...BHO is implemented as inproc COM
server (dll), take a look at
http://msdn.microsoft.com/library/en-us/dnwebgen/html/bho.asp for more
details.
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Vladmir,
How can I aware that IE started ?
Which win32 api can aware me that IE has started ?
Regards.
Mehmet
Post by Vladimir Scherbina
You're welcome, if you'll have questions feel free to ask them here.
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Thanks Vladmir for your kind help.
Mehmet
Post by Scherbina Vladimir
Hello, Mehmet.
1. Unfortunatly, AFAIR there is no documented way to manage existing
IE
menu
items - you can create your own, but not manage existing (disable, enable,
etc...), but you can try undocumented way - look at
http://www.browsersentinel.com/help/tools.htm - it contains (documented)
examples how to add extensions menu items, most likely it's performed via
COM - a COM object impelements handler logic - (i.e. what to do when user
clicked on item) and maybe you will have a chance to get HMENU handle from
those COM object. Another solution is to hook Menu management
functions
in
the IE process (but this way is really not a good suggestion).
2. You can disable IE connection to the internet using wininet function
InternetSetOption. Look at example avialable at
http://msdn.microsoft.com/workshop/components/offline/offline.asp
(SetGlobalOffline function).
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Everybody,
For our project we need to do the followings for MS internet Explorer ;
1) Change to menu item's File, Work offline to be checked and disabled.
2) Disable connecting MS internet Explorer to Internet.
How can we achive these things using windows setup and
programiticaly ?
We are not using object language. Can we do these things with windows
api
?
Best Regards.
Mehmet
Loading...