mark Elevator and Shell32X for removal
This commit is contained in:
@@ -4,6 +4,9 @@ import com.sun.jna.WString;
|
|||||||
import com.sun.jna.platform.win32.Kernel32;
|
import com.sun.jna.platform.win32.Kernel32;
|
||||||
import com.sun.jna.platform.win32.Kernel32Util;
|
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 class Elevator {
|
||||||
public static void main(String... args) {
|
public static void main(String... args) {
|
||||||
executeAsAdministrator("c:\\windows\\system32\\notepad.exe", "");
|
executeAsAdministrator("c:\\windows\\system32\\notepad.exe", "");
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import com.sun.jna.platform.win32.WinReg.HKEY;
|
|||||||
import com.sun.jna.win32.W32APIOptions;
|
import com.sun.jna.win32.W32APIOptions;
|
||||||
import java.util.*;
|
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 {
|
public interface Shell32X extends Shell32 {
|
||||||
Shell32X INSTANCE = (Shell32X)Native.loadLibrary(
|
Shell32X INSTANCE = (Shell32X)Native.loadLibrary(
|
||||||
"shell32", Shell32X.class, W32APIOptions.UNICODE_OPTIONS);
|
"shell32", Shell32X.class, W32APIOptions.UNICODE_OPTIONS);
|
||||||
|
|||||||
Reference in New Issue
Block a user