turns out Java system property "user.name" is enough

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15157 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-02-09 18:11:51 +00:00
1 parent 57d3cdea7d
commit 19076873d9
1 file changed
+8
@@ -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.
*
* <p>
* See http://msdn.microsoft.com/en-us/library/ms724432(VS.85).aspx
*/
boolean GetUserName(char[] buffer, IntByReference lpnSize);
/*
BOOL WINAPI LookupAccountName(
LPCTSTR lpSystemName,