Welcome to Lockergnome.com!
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Apparently permissions preventing VB code access to Window..

 
   Home -> Vista -> Account Administration RSS
Next:  Account Administration: Internet Information Services Does not appearing in Turn W..  
Author Message
Rick

External


Since: Sep 02, 2006
Posts: 6



(Msg. 1) Posted: Thu Aug 09, 2007 11:04 am
Post subject: Apparently permissions preventing VB code access to WindowsSystem32 folder
Archived from groups: microsoft>public>windows>vista>administration_accounts_passwords, others (more info?)

Apparently my Access VB Code does not have permission to access the
"C:\Windows\System32" folder. This code ran perfectly under Windows XP SP2
before upgrading to Windows Vista.

When trying to call a function from a dll file using VB for Access 2007 I
receive the following error:
Run time error '53': File not found: emdaz32.dll

Normally the following code accesses the dll file:
Declare Function DAZOptions Lib "emdaz32.dll" (ByVal lngHandle As Long)
As Long

However, even a full path returns "File not found" error message.
Declare Function DAZOptions Lib " C:\Windows\System32\emdaz32.dll"
(ByVal lngHandle As Long) As Long

The 32-bit dll file exists in the "C:\Windows\System32" folder. If I
copy the emdaz32.dll file to the "C\Users\Rick\Documents" folder and
reference
this full path in my VB code the dll file IS accessed when the code runs,
however, this particular dll file must call another function from a second
dll file which is presently located in the "C:\Windows\System32" folder AND
the "C\Users\Rick\Documents" folder. I then receive the same "File not
found" error for the second dll file.

I'm the only user on this Vista 64-bit computer and of course have
administer privileges. I get the same results with User Account Control
turned on or off.

The Current Owner of the "C:\Windows|System32" folder is "TrustedInstaller".
As a member of the "Users" group I have "Read & execute", "List folder
contents" and "Read" permissions. These are the default permissions and I
can't change them. At least not while "TrustedInstaller" is the owner. I
haven't tried to take ownership of the folder.

Does anyone have any ideas what I might do to correct this problem?

Thanks so much to anyone who offers help.

Rick
Back to top
Login to vote
Kerry Brown

External


Since: Jun 12, 2006
Posts: 1622



(Msg. 2) Posted: Thu Aug 09, 2007 3:32 pm
Post subject: Re: Apparently permissions preventing VB code access to WindowsSystem32 folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Rick" <rick.TakeThisOut@nospam.com> wrote in message
news:ONFQSap2HHA.1100@TK2MSFTNGP06.phx.gbl...
> Apparently my Access VB Code does not have permission to access the
> "C:\Windows\System32" folder. This code ran perfectly under Windows XP
> SP2
> before upgrading to Windows Vista.
>
> When trying to call a function from a dll file using VB for Access 2007 I
> receive the following error:
> Run time error '53': File not found: emdaz32.dll
>
> Normally the following code accesses the dll file:
> Declare Function DAZOptions Lib "emdaz32.dll" (ByVal lngHandle As Long)
> As Long
>
> However, even a full path returns "File not found" error message.
> Declare Function DAZOptions Lib " C:\Windows\System32\emdaz32.dll"
> (ByVal lngHandle As Long) As Long
>
> The 32-bit dll file exists in the "C:\Windows\System32" folder. If I
> copy the emdaz32.dll file to the "C\Users\Rick\Documents" folder and
> reference
> this full path in my VB code the dll file IS accessed when the code runs,
> however, this particular dll file must call another function from a second
> dll file which is presently located in the "C:\Windows\System32" folder
> AND
> the "C\Users\Rick\Documents" folder. I then receive the same "File not
> found" error for the second dll file.
>
> I'm the only user on this Vista 64-bit computer and of course have
> administer privileges. I get the same results with User Account Control
> turned on or off.
>
> The Current Owner of the "C:\Windows|System32" folder is
> "TrustedInstaller".
> As a member of the "Users" group I have "Read & execute", "List folder
> contents" and "Read" permissions. These are the default permissions and I
> can't change them. At least not while "TrustedInstaller" is the owner. I
> haven't tried to take ownership of the folder.
>
> Does anyone have any ideas what I might do to correct this problem?
>
> Thanks so much to anyone who offers help.
>


I don't know the answer but you might find it on the MSDN forums.

http://forums.microsoft.com/msdn/default.aspx?siteid=1


--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca
Back to top
Login to vote
Jon

External


Since: Jan 17, 2007
Posts: 703



(Msg. 3) Posted: Thu Aug 09, 2007 6:38 pm
Post subject: Re: Apparently permissions preventing VB code access to WindowsSystem32 folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Rick" <rick.DeleteThis@nospam.com> wrote in message
news:ONFQSap2HHA.1100@TK2MSFTNGP06.phx.gbl...
> Apparently my Access VB Code does not have permission to access the
> "C:\Windows\System32" folder. This code ran perfectly under Windows XP
> SP2
> before upgrading to Windows Vista.
>
> When trying to call a function from a dll file using VB for Access 2007 I
> receive the following error:
> Run time error '53': File not found: emdaz32.dll
>
> Normally the following code accesses the dll file:
> Declare Function DAZOptions Lib "emdaz32.dll" (ByVal lngHandle As Long)
> As Long
>
> However, even a full path returns "File not found" error message.
> Declare Function DAZOptions Lib " C:\Windows\System32\emdaz32.dll"
> (ByVal lngHandle As Long) As Long
>
> The 32-bit dll file exists in the "C:\Windows\System32" folder. If I
> copy the emdaz32.dll file to the "C\Users\Rick\Documents" folder and
> reference
> this full path in my VB code the dll file IS accessed when the code runs,
> however, this particular dll file must call another function from a second
> dll file which is presently located in the "C:\Windows\System32" folder
> AND
> the "C\Users\Rick\Documents" folder. I then receive the same "File not
> found" error for the second dll file.
>
> I'm the only user on this Vista 64-bit computer and of course have
> administer privileges. I get the same results with User Account Control
> turned on or off.
>
> The Current Owner of the "C:\Windows|System32" folder is
> "TrustedInstaller".
> As a member of the "Users" group I have "Read & execute", "List folder
> contents" and "Read" permissions. These are the default permissions and I
> can't change them. At least not while "TrustedInstaller" is the owner. I
> haven't tried to take ownership of the folder.
>
> Does anyone have any ideas what I might do to correct this problem?
>
> Thanks so much to anyone who offers help.
>
> Rick
>
>
>
>
>
>


Try running it 'elevated'. Right-click 'Run as administrator'

--
Jon
Back to top
Login to vote
Display posts from previous:   
       Home -> Vista -> Account Administration All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 General
 Microsoft Windows XP
  Microsoft Windows Vista
 Microsoft Windows (other)
 Microsoft Office
 Microsoft Office (other)
 Computer Security
 Linux
 Movies


[ Contact us | Terms of Service/Privacy Policy ]