Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: security disallows App from loading DLLs from directory

05 Jan 2010   #1
astropirit

windows 7
 
 
security disallows App from loading DLLs from directory

What security feature disallows applications from loading DLLs from their own directory?

I have two DLLs named ws2_32.dll and wsock32.dll. I also have an application that i want to utilize these two dlls rather then the ones in system32 but it apears that it doesn't. I ran a dependency scanner and found that in fact the application does load these two DLLs rather then the ones in system32 folder.

How i know its not working: the dlls are suppose to make a log file. It succeeded in making the log file on winXP but not Win7.
I found some one else having same problem but with vista but that could be fixed by doing the following:

'set the registry key "HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Image File Execution Options\DevOverrideEnable" to 1" '

However, i can't find the DevOverrideEnable field in my win7 registry. so upon the suggestions of some friends i added the field in manually and set the value that didnt work either.

What i have tried:
On Admin account
Run as Admin
Set compatibility to xp
take ownership
turn off all security features that i could get my hands on

all of that and no luck please advise.

Thank you,
Astropirit


My System SpecsSystem Spec
.

05 Jan 2010   #2
logicearth

Windows 10 Pro (x64)
 
 

Check in C:\Users\[username]\AppData\Local\VirtualStore for your log files.
My System SpecsSystem Spec
06 Jan 2010   #3
astropirit

windows 7
 
 

i looked in there but nothing is there.

does the registry entry " HKLM\ SYSTEM\CurrentControlSet\Control\Session Manager\KnownDLLs" have any thing to do with this problem? i tried taking off the dll with the same name off the list but it denied my permission.
My System SpecsSystem Spec
.


06 Jan 2010   #4
Capt.Jack Sparrow

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

Quote   Quote: Originally Posted by astropirit View Post
i looked in there but nothing is there.

does the registry entry " HKLM\ SYSTEM\CurrentControlSet\Control\Session Manager\KnownDLLs" have any thing to do with this problem? i tried taking off the dll with the same name off the list but it denied my permission.
Could tell me what are those dll and what program they are related too ??
My System SpecsSystem Spec
06 Jan 2010   #5
astropirit

windows 7
 
 

Those DLLs are bassicaly pointer DLLs which i am using to make a tool for an application that is widly used but no longer supported. they are ws2_32.dll and wsock32.dll. the program is suppose to call these DLLs instead of the one in the system32 folder (which it does on my xp machine) and these DLLs create a packet log. basically recording the communication data between the application and a remote node. well that part is irrelevant, only telling because you asked.

I even ran 2 different dependency scanners on the applications and they tell me that the program will call the DLLs in the same directory which it apparently isn't, because if it did i would have the logs generated too.

Any suggestion would be very appreciated.
My System SpecsSystem Spec
06 Jan 2010   #6
logicearth

Windows 10 Pro (x64)
 
 

The DLLs are made for Windows XP and not with Windows 7, is that correct?
My System SpecsSystem Spec
07 Jan 2010   #7
astropirit

windows 7
 
 

they were made IN windows xp but they are designed to work with all versions of windows. there is nothing in the code that would stop it from working with windows 7. as long as bot operating systems operate on the same bit number it doesn't really matter.
My System SpecsSystem Spec
Reply

 security disallows App from loading DLLs from directory




Thread Tools





Similar help and support threads
Thread Forum
Help with error extermination: Application disallows
Friends I have a repetitive error that I get on every bootup/run of my trusty thinkpad: this is Win7 Home Prem x64. I paste below the whole error. First, is this a legitimate error or something that is a known red herring in Windows 7? Secondly, how do I track down and fix the offending...
Software
.dlls needed
Hi does anyone have the following .dll's they can upload for Win 7 x64 I would need the system32 and syswow64 .dlls all from a clean copy. It appears my backups have eluded me and I cannot locate them. :( I would highly appreciate it..Thanks Seth Imageres.dll Shell32.dll ...
Customization
path used to search for DLLs? Install.exe can't find DLLs on DVD?
I just looked at my environment PATH setting, and the only thing that's there is the path to UltraEdit. I was trying to install new software from a DVD (setup.exe at the outer layer), and it could not find any of the DLLs that were located in folder on the same DVD. How do I set up...
General Discussion
W7 - Onboard NIC disallows USB Wifi adapter to work simultaneously?
This question is similar to "no network access on 2nd nic" by drowe, buy since it is old, the post suggested asking in a new thread. I have an HP W7 (Home Premium) PC. I have a wired connection (on-systemboard network interface) to a Belkin 54g router, but the router is not physically...
Network & Sharing
Replace files in multiple directory, from a single directory
I have a 10 files that have all been categorised into about 40 folders. These files have been damaged. I have a backup of all these files, but they are not categorised and sit in a single directory. Does anyone know of an easy technique to batch replace the damaged files with the originals? ...
General Discussion
Windows DLL-loading security flaw puts Microsoft in a bind
More. Windows DLL-loading security flaw puts Microsoft in a bind
News

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 02:22.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App