Re: Limited user doesn't get into sub main

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Björn Holmgren (bjohol_at_hotmail.com)
Date: 11/05/04


Date: Fri, 5 Nov 2004 07:40:10 +0100


"Richard Boehme" <boehme@newsgroups.nospam> wrote in message
news:OEvIhArwEHA.3492@TK2MSFTNGP11.phx.gbl...
> Hi there. We have a VB 6 application which works fine as an administrative
user. However, as a limited user, it will work fine, and then after
> recompilation, it will not even go into sub main -- we have a message box
to check if it gets there. It just displays "Windows cannot access the
> specified device, path, or file. You may not have the appropriate
permissions to access the item." The application icon has changed from the
normal
> icon to a command line program icon, and brings up the standard DOS
program settings. When it works, it works consistently, and when it doesn't
work,
> it doesn't work, it's also consistantly not working.
>
> Does anyone have any ideas why it would do this?
>

That's exactly the effect you'd get if the user had "List folder contents"
access on the folder containing the exe file, but no access to the exe file
itself. The file would be visible in explorer, but since the user has no
read access, the system can not even show the proper icon (since it's part
of the exe).

--
Björn Holmgren


Relevant Pages

  • UpdateResource Failure
    ... I would like to modify icon resoures in a exe file. ... I load the icon file to a byte array and then i pass it to the ... After that, I look into the exe file with the resource hacker, and the icon ...
    (microsoft.public.vb.winapi)
  • Re: COM/GUIProblem
    ... > The reason I asked for more information is that I'm not aware of any ... > user doesn't run anything at all until they drop a file on a desktop icon. ... settings to be used. ... But I suppose I could create a small .exe file ...
    (microsoft.public.win32.programmer.ui)
  • Starpacks - Setting Description, Company, File Version, etc... information
    ... When I create a starpack the .exe file has some information encoded ... Hovering over the ... icon produces a tooltip with this info: ...
    (comp.lang.tcl)
  • wrong add/remove program icon after install of new project
    ... program icon for the project to the icon in the target .exe file as well. ... When I install the product on the target machine, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Define the Icon to custom file with custom extension..
    ... I know that each exe file have its own icon saved in file.. ... The shell can open it an draw it as icon in explorer.. ... in shell and then the data in my file must have some special header.. ...
    (alt.comp.lang.borland-delphi)