diff --git a/core/src/main/java/hudson/util/jna/Advapi32.java b/core/src/main/java/hudson/util/jna/Advapi32.java index 96962a3ca98bd189da661fc011b710d98ab3aea9..1937a234185e2e9257ef64ac6d6e2c973e9140c9 100644 --- a/core/src/main/java/hudson/util/jna/Advapi32.java +++ b/core/src/main/java/hudson/util/jna/Advapi32.java @@ -30,6 +30,14 @@ import com.sun.jna.ptr.IntByReference; public interface Advapi32 extends StdCallLibrary { Advapi32 INSTANCE = (Advapi32) Native.loadLibrary("Advapi32", Advapi32.class, Options.UNICODE_OPTIONS); + /** + * Retrieves the name of the user associated with the current thread. + * + *

+ * See http://msdn.microsoft.com/en-us/library/ms724432(VS.85).aspx + */ + boolean GetUserName(char[] buffer, IntByReference lpnSize); + /* BOOL WINAPI LookupAccountName( LPCTSTR lpSystemName,