Example #1
0
        internal static void *GetFunctionAddressInternal(void *processHandle, string moduleName, string functionName)
        {
            void *moduleHandle = NativeProcess.GetModuleHandleInternal(processHandle, false, moduleName);

            if (moduleHandle == null)
            {
                return(null);
            }
            return(GetFunctionAddressInternal(processHandle, moduleHandle, functionName));
        }
Example #2
0
        internal static ExportFunctionInfo[] GetFunctionInfosInternal(IntPtr processHandle, string moduleName)
        {
            IntPtr moduleHandle;

            moduleHandle = NativeProcess.GetModuleHandleInternal(processHandle, false, moduleName);
            if (moduleHandle == IntPtr.Zero)
            {
                return(null);
            }
            return(GetFunctionInfosInternal(processHandle, moduleHandle));
        }
Example #3
0
        internal static IEnumerable <ExportFunctionInfo> EnumerateFunctionInfosInternal(IntPtr processHandle, string moduleName)
        {
            IntPtr moduleHandle;

            moduleHandle = (IntPtr)NativeProcess.GetModuleHandleInternal((void *)processHandle, false, moduleName);
            if (moduleHandle == IntPtr.Zero)
            {
                return(null);
            }
            return(EnumerateFunctionInfosInternal(processHandle, moduleHandle));
        }
Example #4
0
        internal static IntPtr GetFunctionAddressInternal(IntPtr processHandle, string moduleName, string functionName)
        {
            IntPtr moduleHandle;

            moduleHandle = NativeProcess.GetModuleHandleInternal(processHandle, false, moduleName);
            if (moduleHandle == IntPtr.Zero)
            {
                return(IntPtr.Zero);
            }
            return(GetFunctionAddressInternal(processHandle, moduleHandle, functionName));
        }