Questions tagged [loadlibrary]
558 questions
-1
votes
1 answer
Windows DLL Loading : Load A 64 Bit Dll Into a 32 bit Process, Is It Possible?
Most people would say that 64bit under 32bit on windows is impossible. However as far as I'm aware Wow64 works by loading a 64bit ntdll, then a 32bit ntdll. Calling the 64bit dll to issue syscalls.
As shown in the Wow64SystemServiceCall, which is a…

Zachary Washburn
- 11
- 2
-1
votes
1 answer
Simple C program loadlibrary returns 193
Preamble: I've been programming in PowerBuilder for 25 years and took one class in C before that so I have no idea what I'm doing and am in serious need of help.
I need to write a VERY simple C program (no user interface) that will load a 32-bit…

Aimee
- 1
-1
votes
1 answer
How can I use LoadLibrary to get the address of a function defined in fileapi.h?
I want to know the name of the DLL/LIB in which functions declared in fileapi.h are kept.
So that I can use LoadLibrary(dllname) (if it is inside DLL).

simplePerson43
- 3,787
- 1
- 15
- 10
-1
votes
2 answers
Can't unload an injected dll with loadlibrary (C++)
Today I got an LoadLibraryA injector that works perfectly but it doesn't let delete the dll after injection (loadlibrary things) and I tried doing FreeLibraryAndExitThread but it didnt work.
The code I tried:
FreeLibraryAndExitThread(hThread,…

Daniel TG
- 29
- 1
- 3
-1
votes
1 answer
CreateRemoteThread succeeded, but LoadLibrary failed for some target app
I am using CreateRemoteThread() + LoadLibrary() method to inject code.
Everything is OK when I running my injector in my Windows7 64bit OS laptop, and it still work in Windows Server 2012 R2 64bit for some target app.
BUT, in this Windows Server…

Gang Li
- 37
- 10
-1
votes
1 answer
UnsatisfiedLinkError when trying to load dll in my eclipse project
I have 'xxx.dll' file along with a couple of other dlls at the location -
'C:\Program Files (x86)\abc\xyz\Librerias'
trying to load this dll file in my project using
System.loadLibrary("xxx");
added this path to 'Native library location' in JRE…

Raviteja Reddy
- 109
- 2
- 14
-1
votes
1 answer
How to dynamically load every needed function
I'm trying to find a way to dynamically load every Windows API function I need to use. For example, to use a the printf function, I do something like:
#include
typedef int (*printfPtr)(const char *str, ...);
int main(){
HMODULE…

Luca Reccia
- 578
- 3
- 16
-1
votes
1 answer
EasyHook LoadLibrary fails in crash
I am trying to use EasyHook to detect native LoadLibrary calls.
It indeed detects the loading of libraries, however the process results in freezing.
This is because the LoadLibrary_Hook method below cannot load the dll or library since It returns 0…

DreTaX
- 760
- 2
- 9
- 22
-1
votes
1 answer
A Windows application can't load a DLL library
I have two computers (x64, Windows 10 PRO). I run an application on the first computer. At one point of the execution, the process loads a third party DLL file (call it xyz.dll). Everything works. Then I run the SAME application on the second…

Smurf
- 7
- 4
-1
votes
1 answer
Can I loadlibrary with multiple dlls that has same function names?
If I have a.dll and b.dll, both of them have exactly same function names. for example, foo(), bar() from a.dll and foo(), bar() from b.dll. Will the later loaded one override/replace the former loaded one?

user2706071
- 196
- 9
-1
votes
2 answers
How to set the absolute path of .so files?
I am loading the JNI libraries using System.loadLibrary("xyz") and it works fine. But the thing is, when using java.lang.System.load() to load a library, an attacker can replace or modify the original file with a malicious one if the full path of…

sachi
- 195
- 1
- 2
- 12
-1
votes
1 answer
LoadLibrary failed, return errorcode 127
Suppose:
I have an executable file, named A.exe, it's in path: PathA.
A.exe loadlibrary B.dll, B.dll loadlibrary C.dll.
B.dll is in path: PathB. C.dll have a copy in both PathA and PathB.
So my question is: when A.exe loads B.dll, which path of…

lwiu
- 179
- 1
- 9
-1
votes
1 answer
LoadLibrary Error 126 dependent on user rights
I have a strange issue, where my application that runs at my place doesn't work somewhere at customers place.
In my application I try to load another dll with LoadLibrary() from within the same folder.
If the application is run as normal user a 126…

joerg
- 717
- 2
- 8
- 18
-1
votes
3 answers
How do I programmatically find why a DLL fails to load?
My C++ program calls LoadLibraryEx() to load a third party DLL. The result is a null handle - it fails to load. A call to GetLastError() returns zero afterwards which isn't of much use but at least it's not a missing DLL file.
The code goes…

sharptooth
- 167,383
- 100
- 513
- 979
-1
votes
1 answer
LoadLibrary() error code 998
I’ve got a c++ dll written in visual studio 2012. I’d like to load it in a C# program(VS2012 too) with using of LoadLibrary function.
I set the SetLastError = true to get the probabilistic returned error code by LoadLibrary. When I run my C# program…

s.a.t
- 39
- 8