📄 dispatchperformancedirecttest.java
字号:
/*
* DispatchPerformanceDirectTest.java -
*
* This file is part of the Jawin Project: http://jawinproject.sourceforge.net/
*
* Please consult the LICENSE file in the project root directory,
* or at the project site before using this software.
*/
/* $Id: DispatchPerformanceDirectTest.java,v 1.2 2004/07/18 15:12:35 arosii_moa Exp $ */
package org.jawin.perf;
import org.jawin.COMException;
import org.jawin.DispatchPtr;
import org.jawin.win32.COINIT;
/**
* The {@link org.jawin.perf.DispatchPerformanceTestBase}-tests executed
* directly (means this only works from one thread).
*
* @version $Revision: 1.2 $
* @author Morten Andersen, arosii_moa (at) users.sourceforge.net
*/
public class DispatchPerformanceDirectTest extends DispatchPerformanceTestBase {
protected DispatchPtr initDisp() throws COMException {
return new DispatchPtr(DUAL_TEST_CLSID);
}
protected void closeDisp(DispatchPtr itf) throws COMException {
if (itf != null) {
itf.close();
}
}
protected COINIT getThreadModel() {
return COINIT.APARTMENTTHREADED;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -