Log in

View Full Version : running a dll as an application in html??????



TinmanIII
07-07-2005, 03:12 AM
Hi all,
I am new to being a member on the forum, but it's helped me much in the past.

running winxp pro, SP2 using IE6 as my browser.

here's the background to my problem
I have set multiple users on my computer with an "active desktop".
I am not using MS "active desktop".
I load my mebsite in system processes to those users who logon using "fast user switching".
I run under admin, and have several users on this computer.

My problem lies here.....
I want a hyperlink on the webpage that will enable users to "switch user".

My solution to this was to make a shortcut in c drive with "target" =
%windir%\system32\rundll32.exe user32.dll LockWorkStation
using "new shortcut" from desktop.
then put the "hyperlink" on the website to this afore-mentioned shortcut.
That works, except one HUGE problem.
upon clickin the link, I get the "file download security warning" window.
That is not acceptable for me.
It's my own personal computer with just a few users at home.
This website will never run online. ( lol obviously )

Is there a way to get rid of the file download warning and just accept the download,
OR
is there another way to skin the cat as they say.
All I am shooting for is a hyperlink that enables me to "switch user".
I am open to any method to achieve this as long as it does use a hyperlink.
I do run the website for the other "users" in "fullscreen mode" so the right click on "start" menu is not an option for me, and I don't want to use the "MS keyboard button and "L", and I do not wish to switch browsers.

I desire a hyperlink in my html using IE6

I have also modified my registry a bit to even get this far.
( added "my computer" to the "security" tab in IE6 )
um... i think that's the only registry modification I made *grin*

From my days spent on google, I gather there is really no way to bypass the "file download" warning, but hey....I'm no expert.
So..can I code the command somehow into my html (%windir%\system32\rundll32.exe user32.dll LockWorkStation).
I also run an ftp server on the web and ppl can right click "copy" from my computer and then "paste" on their computer without the "file download" security window, which seems to make my little dilemma here all the more aggrevating.

Signed TinmanIII,
I would appreciate input for this one folks, so thanks in advance.

TinmanIII
07-11-2005, 02:31 AM
sorry, got it figured out.

johnnyxonfire
07-14-2005, 09:09 AM
I am also trying to use a hyperlink to link to an executeable file. I am trying to get a hyperlink on a page that I'm making to run my games. For example. I want it to run StarCraft. I tell it to open C:\Program Files\Starcraft\starcraft.exe. It works, except I get that security warning. Its on my own computer, and I trust it 100% I play the game often, and I'm just trying to make a more creative desktop experience using a different method than windows shortcuts which tend to become very cluttering over time. How do I turn off this menacing Secuirty warning for at least my own files, on my own computer?

Twey
07-14-2005, 05:54 PM
Not sure of this, as I don't have a Windows machine to test it on, but try adding "127.0.0.1" to your "Trusted" list in Internet Explorer (right-click the IE icon, properties, privacy & security [or something like that]).

johnnyxonfire
07-14-2005, 07:50 PM
Well, that did seem like a pretty good idea, it didn't work however. Thanks for the effort though :)

Twey
07-14-2005, 08:29 PM
Oh well, I tried :p
Hm.
The only thing I can think of is to compile a .NET application that runs the command.
This should work as long as you have the .NET framework installed.




class StarCraftRunner {
public static void Main() {
System.Diagnostics.Process myproc = new System.Diagnostics.Proce
ss();
myproc.StartInfo.FileName = "starcraft.exe";
myproc.StartInfo.WorkingDirectory = "C:\\Program Files\\Starcraf
t\\";
myproc.Start();
}
}


Precompiled version here (http://www.crystalinity.net/StarCraftRunner.exe) (warning: executable filetype, some firewalls/antivirus programs might not like it very much).
IE has built-in support for running .NET, and although this isn't always a good thing, it does come in useful. .NET's security handling is far more advanced than IE's, and it shouldn't throw a tantrum.
Again, might not work.

I'm sure someone's going to point out that I'm overcomplicating this.