Results 1 to 6 of 6

Thread: running a dll as an application in html??????

  1. #1
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default running a dll as an application in html??????

    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.

  2. #2
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry, got it figured out.

  3. #3
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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]).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, that did seem like a pretty good idea, it didn't work however. Thanks for the effort though

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Oh well, I tried
    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.

    Quote Originally Posted by StarCraftRunner.cs
    Code:
    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 (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.
    Last edited by Twey; 07-14-2005 at 08:32 PM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •