internal bool NtCreateThreadEx() { var injectionMethod = new NtCreateThreadEx(); // Inject the dll return(injectionMethod.Inject(_process, _dllPath)); }
internal bool NtCreateThreadEx() { // Ensure the operating system supports NtCreateThreadEx var osVersion = Environment.Version; if (osVersion.Major == 5) { throw new PlatformNotSupportedException("NtCreateThreadEx is not supported on Windows XP"); } using (var injectionMethod = new NtCreateThreadEx(_process, _dllPath)) { // Inject the dll return(injectionMethod.Inject()); } }