提交 19076873 编写于 作者: K kohsuke

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
上级 57d3cdea
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册