mark Elevator and Shell32X for removal

This commit is contained in:
idk
2023-02-06 17:46:14 +00:00
parent 673d6b469f
commit 402cede106
2 changed files with 5 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ import com.sun.jna.WString;
import com.sun.jna.platform.win32.Kernel32;
import com.sun.jna.platform.win32.Kernel32Util;
//TODO: This is obsolete. I don't know if a single user still has an admin-style install of this.
// it should be removed a the earliest convenient time.
public class Elevator {
public static void main(String... args) {
executeAsAdministrator("c:\\windows\\system32\\notepad.exe", "");

View File

@@ -12,6 +12,8 @@ import com.sun.jna.platform.win32.WinReg.HKEY;
import com.sun.jna.win32.W32APIOptions;
import java.util.*;
//TODO: This is obsolete. I don't know if a single user still has an admin-style install of this.
// it should be removed a the earliest convenient time.
public interface Shell32X extends Shell32 {
Shell32X INSTANCE = (Shell32X)Native.loadLibrary(
"shell32", Shell32X.class, W32APIOptions.UNICODE_OPTIONS);