RhInjectLibrary() private method

private RhInjectLibrary ( Int32 InTargetPID, Int32 InWakeUpTID, Int32 InInjectionOptions, String InLibraryPath_x86, String InLibraryPath_x64, IntPtr InPassThruBuffer, Int32 InPassThruSize ) : Int32
InTargetPID System.Int32
InWakeUpTID System.Int32
InInjectionOptions System.Int32
InLibraryPath_x86 String
InLibraryPath_x64 String
InPassThruBuffer System.IntPtr
InPassThruSize System.Int32
return System.Int32
コード例 #1
0
ファイル: DllImport.cs プロジェクト: BOTLANNER/Easyhook
 public static void RhInjectLibrary(
     Int32 InTargetPID,
     Int32 InWakeUpTID,
     Int32 InInjectionOptions,
     String InLibraryPath_x86,
     String InLibraryPath_x64,
     RhAssemblyInfo[] Assemblies,
     IntPtr InPassThruBuffer,
     Int32 InPassThruSize)
 {
     if (Is64Bit)
     {
         Force(NativeAPI_x64.RhInjectLibrary(
                   InTargetPID, InWakeUpTID, InInjectionOptions,
                   InLibraryPath_x86, InLibraryPath_x64,
                   Assemblies, Assemblies.Length,
                   InPassThruBuffer, InPassThruSize));
     }
     else
     {
         Force(NativeAPI_x86.RhInjectLibrary(
                   InTargetPID, InWakeUpTID, InInjectionOptions,
                   InLibraryPath_x86, InLibraryPath_x64,
                   Assemblies, Assemblies.Length,
                   InPassThruBuffer, InPassThruSize));
     }
 }
コード例 #2
0
ファイル: DllImport.cs プロジェクト: rhmoult/EasyHook
 public static Int32 RhInjectLibraryEx(
     Int32 InTargetPID,
     Int32 InWakeUpTID,
     Int32 InInjectionOptions,
     String InLibraryPath_x86,
     String InLibraryPath_x64,
     IntPtr InPassThruBuffer,
     Int32 InPassThruSize)
 {
     if (Is64Bit)
     {
         return(NativeAPI_x64.RhInjectLibrary(InTargetPID, InWakeUpTID, InInjectionOptions,
                                              InLibraryPath_x86, InLibraryPath_x64, InPassThruBuffer, InPassThruSize));
     }
     else
     {
         return(NativeAPI_x86.RhInjectLibrary(InTargetPID, InWakeUpTID, InInjectionOptions,
                                              InLibraryPath_x86, InLibraryPath_x64, InPassThruBuffer, InPassThruSize));
     }
 }
コード例 #3
0
ファイル: DllImport.cs プロジェクト: BOTLANNER/Easyhook
 public static Int32 RhInjectLibraryEx(
     Int32 InTargetPID,
     Int32 InWakeUpTID,
     Int32 InInjectionOptions,
     String InLibraryPath_x86,
     String InLibraryPath_x64,
     RhAssemblyInfo[] Assemblies,
     IntPtr InPassThruBuffer,
     Int32 InPassThruSize)
 {
     return(Is64Bit
            ? NativeAPI_x64.RhInjectLibrary(
                InTargetPID, InWakeUpTID, InInjectionOptions,
                InLibraryPath_x86, InLibraryPath_x64,
                Assemblies, Assemblies != null ? Assemblies.Length : 0,
                InPassThruBuffer, InPassThruSize)
            : NativeAPI_x86.RhInjectLibrary(
                InTargetPID, InWakeUpTID, InInjectionOptions,
                InLibraryPath_x86, InLibraryPath_x64,
                Assemblies, Assemblies != null ? Assemblies.Length : 0,
                InPassThruBuffer, InPassThruSize));
 }