⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 windowscontroller.html

📁 java windows api 可以方便的调用windows api函数
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="WindowsController()"><!-- --></A><H3>
WindowsController</H3>
<PRE>
public <B>WindowsController</B>()</PRE>
<DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="logon(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
logon</H3>
<PRE>
public static boolean <B>logon</B>(java.lang.String&nbsp;user,
                            java.lang.String&nbsp;password,
                            java.lang.String&nbsp;domain)</PRE>
<DL>
<DD>Makes Windows Logon (it just tests if an user and a password are valid in a domain).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>user</CODE> - User.<DD><CODE>password</CODE> - Password.<DD><CODE>domain</CODE> - Domain.
<DT><B>Returns:</B><DD>true if logon sucessful.</DL>
</DD>
</DL>
<HR>

<A NAME="desktopShowHide(boolean)"><!-- --></A><H3>
desktopShowHide</H3>
<PRE>
public static boolean <B>desktopShowHide</B>(boolean&nbsp;show)</PRE>
<DL>
<DD>Show / Hide Desktop. It should Works on Win9x/NT/2K/XP.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>show</CODE> - true Show, false Hide.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<HR>

<A NAME="startButtonShowHide(boolean)"><!-- --></A><H3>
startButtonShowHide</H3>
<PRE>
public static boolean <B>startButtonShowHide</B>(boolean&nbsp;show)</PRE>
<DL>
<DD>Show / Hide Start Button. It should Works on Win9x/NT/2K/XP.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>show</CODE> - true Show, false Hide.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<HR>

<A NAME="taskbarShowHide(boolean)"><!-- --></A><H3>
taskbarShowHide</H3>
<PRE>
public static boolean <B>taskbarShowHide</B>(boolean&nbsp;show)</PRE>
<DL>
<DD>Show / Hide Task Bar. It should Works on Win9x/NT/2K/XP.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>show</CODE> - true Show, false Hide.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<HR>

<A NAME="clockShowHide(boolean)"><!-- --></A><H3>
clockShowHide</H3>
<PRE>
public static boolean <B>clockShowHide</B>(boolean&nbsp;show)</PRE>
<DL>
<DD>Show / Hide System Clock. It should Works on Win9x/NT/2K/XP.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>show</CODE> - true Show, false Hide.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<HR>

<A NAME="keysEnableDisable(boolean)"><!-- --></A><H3>
keysEnableDisable</H3>
<PRE>
public static boolean <B>keysEnableDisable</B>(boolean&nbsp;enable)</PRE>
<DL>
<DD>Enable/Disable special keys (Ctrl+Alt+Del, Alt+Tab, Alt+Esc, Ctrl+Esc, Win key, ...). It should Works on Win 9x.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - true Enable, false Disable.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<HR>

<A NAME="altTab1EnableDisable(boolean)"><!-- --></A><H3>
altTab1EnableDisable</H3>
<PRE>
public static boolean <B>altTab1EnableDisable</B>(boolean&nbsp;enable)</PRE>
<DL>
<DD>Enable/Disable Alt+Tab, Alt+Esc. I磎 not sure on what Windows S.O. works. Just try it.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - true Enable, false Disable.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<HR>

<A NAME="altTab2EnableDisable(boolean)"><!-- --></A><H3>
altTab2EnableDisable</H3>
<PRE>
public static boolean <B>altTab2EnableDisable</B>(boolean&nbsp;enable)</PRE>
<DL>
<DD>Enable/Disable Alt+Tab, Alt+Esc. It should Works on Win2k.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - true Enable, false Disable.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<HR>

<A NAME="taskSwitchingEnableDisable(boolean)"><!-- --></A><H3>
taskSwitchingEnableDisable</H3>
<PRE>
public static boolean <B>taskSwitchingEnableDisable</B>(boolean&nbsp;enable)</PRE>
<DL>
<DD>Enable/Disable task switching keys. It should Works on Win NT4SP3+/2K.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - true Enable, false Disable.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<HR>

<A NAME="taskManagerEnableDisable(boolean)"><!-- --></A><H3>
taskManagerEnableDisable</H3>
<PRE>
public static boolean <B>taskManagerEnableDisable</B>(boolean&nbsp;enable)</PRE>
<DL>
<DD>Enable/Disable Task Manager (CTRL+ALT+DEL). It should Works on Win NT/2K/XP.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - true Enable, false Disable.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<HR>

<A NAME="ctrlAltDelEnableDisable(boolean)"><!-- --></A><H3>
ctrlAltDelEnableDisable</H3>
<PRE>
public static boolean <B>ctrlAltDelEnableDisable</B>(boolean&nbsp;enable)</PRE>
<DL>
<DD>Enable/Disable Ctrl+Alt+Del and Ctrl+Shift+Esc key sequences. It should Works on Win 2K.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - true Enable, false Disable.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<HR>

<A NAME="lockDesktop(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
lockDesktop</H3>
<PRE>
public boolean <B>lockDesktop</B>(java.lang.String&nbsp;msg,
                           java.lang.String&nbsp;windowTitle,
                           java.lang.String&nbsp;labelUser,
                           java.lang.String&nbsp;labelPass,
                           java.lang.String&nbsp;errorMsg,
                           java.lang.String&nbsp;titleErrorMsg)
                    throws <A HREF="../../../../com/qotsa/exception/InvalidParameter.html" title="class in com.qotsa.exception">InvalidParameter</A></PRE>
<DL>
<DD>Locks deskop user and unlock via Logon API. It should works on Win NT/2K/XP. Use the constant DEFAULT to call the DEFAULT String for any parameter.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - Message to show on Dialog Window when locked. Max Length = 255.<DD><CODE>windowTitle</CODE> - Dialog Window Title. Max Length = 50.<DD><CODE>labelUser</CODE> - Label to be shown as User Label on Dialog Window. Max Length = 20.<DD><CODE>labelPass</CODE> - Label to be shown as Password Label on Dialog Window. Max Length = 20.<DD><CODE>errorMsg</CODE> - Message to be shown with Error MessageBox if login fails. Max Length = 255.<DD><CODE>titleErrorMsg</CODE> - Error MessageBox Title. Max Length = 20.
<DT><B>Returns:</B><DD>true Sucess.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/qotsa/exception/InvalidParameter.html" title="class in com.qotsa.exception">InvalidParameter</A></CODE> - if any of parameters length overcomes its Max Length.</DL>
</DD>
</DL>
<HR>

<A NAME="unLockDesktop(java.lang.String)"><!-- --></A><H3>
unLockDesktop</H3>
<PRE>
public static boolean <B>unLockDesktop</B>(java.lang.String&nbsp;password)
                             throws <A HREF="../../../../com/qotsa/exception/NoLockException.html" title="class in com.qotsa.exception">NoLockException</A></PRE>
<DL>
<DD>Unlocks Desktop User.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>password</CODE> - User磗 password on domain / computer.
<DT><B>Returns:</B><DD>true if sucess unlock Desktop with the password.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/qotsa/exception/NoLockException.html" title="class in com.qotsa.exception">NoLockException</A></CODE> - if the method lockDesktop was not called before.</DL>
</DD>
</DL>
<HR>

<A NAME="processOnNewDesktop(java.lang.String)"><!-- --></A><H3>
processOnNewDesktop</H3>
<PRE>
public static boolean <B>processOnNewDesktop</B>(java.lang.String&nbsp;path)</PRE>
<DL>
<DD>Run a Process in a new (clean) Desktop. Be careful while using this method. It starts a Process in a new Desktop. and waits until it磗 terminated.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>path</CODE> - path to the process.
<DT><B>Returns:</B><DD>true Sucess.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/WindowsController.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/qotsa/jni/controller/WindowsController.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="WindowsController.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -