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