I have a function named Msg that's imported from a dll named tier0.dll. I can DllImport this just fine, but the command only works when the dll is attached to another process which can complete the Msg command. Using CreateRemoteThread, it is possible that I could call Msg using C# while still letting it have access to the variables of the attached process it needs to complete the command? Thanks!
Running DllImport commands from CreateRemoteThread
718 Views Asked by Gbps At
1
There are 1 best solutions below
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in PINVOKE
- Lifetime of a temporary
- Accessing nested structs in C# with LayoutKind.Explicit
- How do I pass a pointer to an unknown struct from C++ to C# and back again?
- Using p/invoke to call a C function that creates an array of structures in C#
- P/Invoke c++ exported function from c# library char* emty in dll
- Pass an array of values as seperate function arguments in Powershell
- Caling UnManaged Code from Powershell - Handling Enum Type
- P/Invoke System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt
- How to implement a C# callback compatible with a C++ DLL's variadic function pointer for Unity
- How can I assign a hot key to a shortcut programmatically?
- How to hide close button and disable resizing in WPF window?
- Issue with Shellcode Injection Technique in C# Across Different .NET Versions
- C# DllImport re-use with different DLL names
- .NET (Core) on Unix: In-process modification of environment variables via P/Invoke system calls is unexpectedly not seen by .NET
- Maximizing an Delphi (VCL) application externally using windows API
Related Questions in DLLIMPORT
- How to get Assembly when loading assembly using mono_assembly_load_from?
- .NET Core and Marshaling on Linux
- CPP DLL creation in VS
- Pinvoke a VC++ dll with embeded python modules in a VB.net program on a computer without Python installed
- Marshaling gives error "Attempted to read or write protected memory. This is often an indication that other memory is corrupt"
- Issues with trying to port LEPCC from GitHub to C# - DllImport issues / access violation
- How to solve "ImportError: DLL load failed: The specified module could not be found."?
- ImportError: DLL load failed: The specified module could not be found for custom built pkg using Swig & CMake
- Is it safe to cast a function pointer accepting pointer type to another function pointer accepting reference type?
- Runtime-specific imported dll in dotnet tool
- How to run a mouse_event on a windows remote machine?
- Using different dll versions as Third Party Addin in one dll
- Exceptions don't work in dynamically loaded DLL
- I have a dll, Prorfl.dll from HotelLock. I am integrating it into my Access VBA, but it is giving error nor result
- CMake cross platform use of generate_export_headers and inline template functions
Related Questions in CREATEREMOTETHREAD
- How to load a DLL on disk into remote process via Golang?
- Intercept LoadLibrary calls by current process after DLL injection
- C++ / WinAPI: How do I get a value from a function in the injected x64 DLL?
- CreateRemoteThread() fails with Access Denied (0xc00000005)
- Calling a function in another process with parameters using CreateRemoteThread
- FreeLibrary not unhooking DLL
- How to fix "LPVOID: unknown size" error while using the CreateRemoteThread API?
- CreateRemoteThread fails on Windows7 64bit for 32bit applications
- CreateRemoteThread succeeded, but LoadLibrary failed for some target app
- Why does injecting code caves with thread injection crash my target win32 EXE?
- Python (ctypes) CreateRemoteThread causes the process to crash
- CreateRemoteThread does not work with DLL
- DLL code injection with remote Thread: Where to store DLL filename/location in target process address space?
- C++ : Dll injection. Why CreateRemoteThread() fail on Notepad?
- DLL injection via CreateRemoteThread?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I later solved this by using EasyHook to inject a C# dll and use the various Marshal functions with
GetProcAddressin order to call the other functions.