📄 w32process.java
字号:
//******************************************************************
// Released under the DevelopMentor OpenSource Software License.
// Please consult the LICENSE file in the project root directory,
// or at http://www.develop.com for details before using this
// software.
//******************************************************************
package org.jawin.donated.win32;
import java.io.IOException;
import org.jawin.COMException;
import org.jawin.FuncPtr;
import org.jawin.ReturnFlags;
public class W32Process { //avoid conflict with java.lang.Process
public static int GetCurrentProcess() throws COMException, IOException {
FuncPtr fp = new FuncPtr("KERNEL32.DLL", "GetCurrentProcess");
return fp.invoke_I(ReturnFlags.CHECK_NONE);
}
public static int GetModuleHandleW(String lpModuleName)
throws COMException, IOException {
FuncPtr fp = new FuncPtr("KERNEL32.DLL", "GetModuleHandleW");
return fp.invoke_I(lpModuleName, ReturnFlags.CHECK_FALSE);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -