亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? oleautomation.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
	return (result == OLE.S_OK) ? pVarResult : null;}/** * Returns the value of the property specified by the dispIdMember. * * @param dispIdMember the ID of the property as specified by the IDL of the ActiveX Control; the *        value for the ID can be obtained using OleAutomation.getIDsOfNames * * @param rgvarg an array of arguments for the method.  All arguments are considered to be *        read only unless the Variant is a By Reference Variant type. *  * @return the value of the property specified by the dispIdMember or null *  * @since 2.0 */public Variant getProperty(int dispIdMember, Variant[] rgvarg) {	Variant pVarResult = new Variant();	int result = invoke(dispIdMember, COM.DISPATCH_PROPERTYGET, rgvarg, null, pVarResult);	return (result == OLE.S_OK) ? pVarResult : null;	}/** * Returns the value of the property specified by the dispIdMember. * * @param dispIdMember the ID of the property as specified by the IDL of the ActiveX Control; the *        value for the ID can be obtained using OleAutomation.getIDsOfNames * * @param rgvarg an array of arguments for the method.  All arguments are considered to be *        read only unless the Variant is a By Reference Variant type. *  * @param rgdispidNamedArgs an array of identifiers for the arguments specified in rgvarg; the *        parameter IDs must be in the same order as their corresponding values; *        all arguments must have an identifier - identifiers can be obtained using  *        OleAutomation.getIDsOfNames *  * @return the value of the property specified by the dispIdMember or null *  * @since 2.0 */public Variant getProperty(int dispIdMember, Variant[] rgvarg, int[] rgdispidNamedArgs) {	Variant pVarResult = new Variant();	int result = invoke(dispIdMember, COM.DISPATCH_PROPERTYGET, rgvarg, rgdispidNamedArgs, pVarResult);	return (result == OLE.S_OK) ? pVarResult : null;}/**  * Invokes a method on the OLE Object; the method has no parameters. * * @param dispIdMember the ID of the method as specified by the IDL of the ActiveX Control; the *        value for the ID can be obtained using OleAutomation.getIDsOfNames * * @return the result of the method or null if the method failed to give result information */public Variant invoke(int dispIdMember) {	Variant pVarResult = new Variant();	int result = invoke(dispIdMember, COM.DISPATCH_METHOD, null, null, pVarResult);	return (result == COM.S_OK) ? pVarResult : null;}/**  * Invokes a method on the OLE Object; the method has no optional parameters. * * @param dispIdMember the ID of the method as specified by the IDL of the ActiveX Control; the *        value for the ID can be obtained using OleAutomation.getIDsOfNames * * @param rgvarg an array of arguments for the method.  All arguments are considered to be *        read only unless the Variant is a By Reference Variant type. * * @return the result of the method or null if the method failed to give result information */public Variant invoke(int dispIdMember, Variant[] rgvarg) {	Variant pVarResult = new Variant();	int result = invoke(dispIdMember, COM.DISPATCH_METHOD, rgvarg, null, pVarResult);	return (result == COM.S_OK) ? pVarResult : null;}/**  * Invokes a method on the OLE Object; the method has optional parameters.  It is not * neccessary to specify all the optional parameters, only include the parameters for which * you are providing values. * * @param dispIdMember the ID of the method as specified by the IDL of the ActiveX Control; the *        value for the ID can be obtained using OleAutomation.getIDsOfNames * * @param rgvarg an array of arguments for the method.  All arguments are considered to be *        read only unless the Variant is a By Reference Variant type. * * @param rgdispidNamedArgs an array of identifiers for the arguments specified in rgvarg; the *        parameter IDs must be in the same order as their corresponding values; *        all arguments must have an identifier - identifiers can be obtained using  *        OleAutomation.getIDsOfNames * * @return the result of the method or null if the method failed to give result information */public Variant invoke(int dispIdMember, Variant[] rgvarg, int[] rgdispidNamedArgs) {	Variant pVarResult = new Variant();	int result = invoke(dispIdMember, COM.DISPATCH_METHOD, rgvarg, rgdispidNamedArgs, pVarResult);	return (result == COM.S_OK) ? pVarResult : null;}private int invoke(int dispIdMember, int wFlags, Variant[] rgvarg, int[] rgdispidNamedArgs, Variant pVarResult) {	// get the IDispatch interface for the control	if (objIDispatch == null) return COM.E_FAIL;		// create a DISPPARAMS structure for the input parameters	DISPPARAMS pDispParams = new DISPPARAMS();	// store arguments in rgvarg	if (rgvarg != null && rgvarg.length > 0) {		pDispParams.cArgs = rgvarg.length;		pDispParams.rgvarg = OS.GlobalAlloc(COM.GMEM_FIXED | COM.GMEM_ZEROINIT, Variant.sizeof * rgvarg.length);		int offset = 0;		for (int i = rgvarg.length - 1; i >= 0 ; i--) {			rgvarg[i].getData(pDispParams.rgvarg + offset);			offset += Variant.sizeof;		}	}	// if arguments have ids, store the ids in rgdispidNamedArgs	if (rgdispidNamedArgs != null && rgdispidNamedArgs.length > 0) {		pDispParams.cNamedArgs = rgdispidNamedArgs.length;		pDispParams.rgdispidNamedArgs = OS.GlobalAlloc(COM.GMEM_FIXED | COM.GMEM_ZEROINIT, 4 * rgdispidNamedArgs.length);		int offset = 0;		for (int i = rgdispidNamedArgs.length; i > 0; i--) {			COM.MoveMemory(pDispParams.rgdispidNamedArgs + offset, new int[] {rgdispidNamedArgs[i-1]}, 4);			offset += 4;		}	}	// invoke the method	EXCEPINFO excepInfo = new EXCEPINFO();	int[] pArgErr = new int[1];	int pVarResultAddress = 0;	if (pVarResult != null)	pVarResultAddress = OS.GlobalAlloc(OS.GMEM_FIXED | OS.GMEM_ZEROINIT, Variant.sizeof);	int result = objIDispatch.Invoke(dispIdMember, new GUID(), COM.LOCALE_USER_DEFAULT, wFlags, pDispParams, pVarResultAddress, excepInfo, pArgErr);	if (pVarResultAddress != 0){		pVarResult.setData(pVarResultAddress);		COM.VariantClear(pVarResultAddress);		OS.GlobalFree(pVarResultAddress);	}		// free the Dispparams resources	if (pDispParams.rgdispidNamedArgs != 0){		OS.GlobalFree(pDispParams.rgdispidNamedArgs);	}	if (pDispParams.rgvarg != 0) {		int offset = 0;		for (int i = 0, length = rgvarg.length; i < length; i++){			COM.VariantClear(pDispParams.rgvarg + offset);			offset += Variant.sizeof;		}		OS.GlobalFree(pDispParams.rgvarg);	}	// save error string and cleanup EXCEPINFO	manageExcepinfo(result, excepInfo);			return result;}/**  * Invokes a method on the OLE Object; the method has no parameters.  In the early days of OLE,  * the IDispatch interface was not well defined and some applications (mainly Word) did not support  * a return value.  For these applications, call this method instead of calling * <code>public void invoke(int dispIdMember)</code>. * * @param dispIdMember the ID of the method as specified by the IDL of the ActiveX Control; the *        value for the ID can be obtained using OleAutomation.getIDsOfNames * * @exception SWTError <ul> *		<li>ERROR_ACTION_NOT_PERFORMED when method invocation fails *	</ul> */public void invokeNoReply(int dispIdMember) {	int result = invoke(dispIdMember, COM.DISPATCH_METHOD, null, null, null);	if (result != COM.S_OK)		OLE.error(OLE.ERROR_ACTION_NOT_PERFORMED, result);}/**  * Invokes a method on the OLE Object; the method has no optional parameters.  In the early days of OLE,  * the IDispatch interface was not well defined and some applications (mainly Word) did not support  * a return value.  For these applications, call this method instead of calling * <code>public void invoke(int dispIdMember, Variant[] rgvarg)</code>. * * @param dispIdMember the ID of the method as specified by the IDL of the ActiveX Control; the *        value for the ID can be obtained using OleAutomation.getIDsOfNames * * @param rgvarg an array of arguments for the method.  All arguments are considered to be *        read only unless the Variant is a By Reference Variant type. * * @exception SWTError <ul> *		<li>ERROR_ACTION_NOT_PERFORMED when method invocation fails *	</ul> */public void invokeNoReply(int dispIdMember, Variant[] rgvarg) {	int result = invoke(dispIdMember, COM.DISPATCH_METHOD, rgvarg, null, null);	if (result != COM.S_OK)		OLE.error(OLE.ERROR_ACTION_NOT_PERFORMED, result);}/**  * Invokes a method on the OLE Object; the method has optional parameters.  It is not * neccessary to specify all the optional parameters, only include the parameters for which * you are providing values.  In the early days of OLE, the IDispatch interface was not well  * defined and some applications (mainly Word) did not support a return value.  For these  * applications, call this method instead of calling * <code>public void invoke(int dispIdMember, Variant[] rgvarg, int[] rgdispidNamedArgs)</code>. * * @param dispIdMember the ID of the method as specified by the IDL of the ActiveX Control; the *        value for the ID can be obtained using OleAutomation.getIDsOfNames * * @param rgvarg an array of arguments for the method.  All arguments are considered to be *        read only unless the Variant is a By Reference Variant type. * * @param rgdispidNamedArgs an array of identifiers for the arguments specified in rgvarg; the *        parameter IDs must be in the same order as their corresponding values; *        all arguments must have an identifier - identifiers can be obtained using  *        OleAutomation.getIDsOfNames * * @exception SWTError <ul> *		<li>ERROR_ACTION_NOT_PERFORMED when method invocation fails *	</ul> */public void invokeNoReply(int dispIdMember, Variant[] rgvarg, int[] rgdispidNamedArgs) {	int result = invoke(dispIdMember, COM.DISPATCH_METHOD, rgvarg, rgdispidNamedArgs, null);	if (result != COM.S_OK)		OLE.error(OLE.ERROR_ACTION_NOT_PERFORMED, result);}private void manageExcepinfo(int hResult, EXCEPINFO excepInfo) {	if (hResult == COM.S_OK){		exceptionDescription = new String("No Error"); //$NON-NLS-1$		return;	}	// extract exception info	if (hResult == COM.DISP_E_EXCEPTION) {		if (excepInfo.bstrDescription != 0){			int size = COM.SysStringByteLen(excepInfo.bstrDescription);			char[] buffer = new char[(size + 1) /2];			COM.MoveMemory(buffer, excepInfo.bstrDescription, size);			exceptionDescription = new String(buffer);		} else {			exceptionDescription = new String("OLE Automation Error Exception "); //$NON-NLS-1$			if (excepInfo.wCode != 0){				exceptionDescription += "code = "+excepInfo.wCode; //$NON-NLS-1$			} else if (excepInfo.scode != 0){				exceptionDescription += "code = "+excepInfo.scode; //$NON-NLS-1$			}		}	} else {		exceptionDescription = new String("OLE Automation Error HResult : "+hResult); //$NON-NLS-1$	}	// cleanup EXCEPINFO struct	if (excepInfo.bstrDescription != 0)		COM.SysFreeString(excepInfo.bstrDescription);	if (excepInfo.bstrHelpFile != 0)		COM.SysFreeString(excepInfo.bstrHelpFile);	if (excepInfo.bstrSource != 0)		COM.SysFreeString(excepInfo.bstrSource);}/** * Sets the property specified by the dispIdMember to a new value. * * @param dispIdMember the ID of the property as specified by the IDL of the ActiveX Control; the *                     value for the ID can be obtained using OleAutomation.getIDsOfNames * @param rgvarg the new value of the property * * @return true if the operation was successful */public boolean setProperty(int dispIdMember, Variant rgvarg) {	Variant[] rgvarg2 = new Variant[] {rgvarg};	int[] rgdispidNamedArgs = new int[] {COM.DISPID_PROPERTYPUT};	int dwFlags = COM.DISPATCH_PROPERTYPUT;	if ((rgvarg.getType() & COM.VT_BYREF) == COM.VT_BYREF)		dwFlags = COM.DISPATCH_PROPERTYPUTREF;	Variant pVarResult = new Variant();	int result = invoke(dispIdMember, dwFlags, rgvarg2, rgdispidNamedArgs, pVarResult);	return (result == COM.S_OK);}/** * Sets the property specified by the dispIdMember to a new value. * * @param dispIdMember the ID of the property as specified by the IDL of the ActiveX Control; the *                     value for the ID can be obtained using OleAutomation.getIDsOfNames * @param rgvarg an array of arguments for the method.  All arguments are considered to be *                     read only unless the Variant is a By Reference Variant type. * * @return true if the operation was successful * * @since 2.0 */public boolean setProperty(int dispIdMember, Variant[] rgvarg) {	int[] rgdispidNamedArgs = new int[] {COM.DISPID_PROPERTYPUT};	int dwFlags = COM.DISPATCH_PROPERTYPUT;	for (int i = 0; i < rgvarg.length; i++) {		if ((rgvarg[i].getType() & COM.VT_BYREF) == COM.VT_BYREF)		dwFlags = COM.DISPATCH_PROPERTYPUTREF;	}	Variant pVarResult = new Variant();	int result = invoke(dispIdMember, dwFlags, rgvarg, rgdispidNamedArgs, pVarResult);	return (result == COM.S_OK);}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线观看一区二区| 欧美吞精做爰啪啪高潮| 在线一区二区视频| 亚洲精品中文字幕乱码三区| 亚洲成av人片| 成人在线综合网站| 欧美日本国产视频| 国产精品久久久久久久第一福利| 午夜久久电影网| 色综合视频在线观看| 日韩欧美一区二区视频| 亚洲精品国产视频| 成人午夜在线视频| 久久久久综合网| 免费成人深夜小野草| 欧美在线你懂得| 1024国产精品| 国产高清在线观看免费不卡| 在线观看91精品国产麻豆| 一区二区视频在线看| 成人99免费视频| 久久久久久久久久电影| 久久99国内精品| 欧美一区二区三区人| 午夜日韩在线电影| 欧美日韩一级片在线观看| 亚洲另类春色国产| 色婷婷精品久久二区二区蜜臀av| 国产日韩欧美一区二区三区乱码 | 亚洲国产欧美日韩另类综合| 成人av影视在线观看| 国产蜜臀av在线一区二区三区| 国产综合色视频| 久久久久久久电影| 国产毛片一区二区| 欧美激情艳妇裸体舞| 本田岬高潮一区二区三区| 中文字幕欧美三区| bt7086福利一区国产| 亚洲三级久久久| 在线观看日韩国产| 一二三区精品福利视频| 欧美三区在线观看| 蜜桃一区二区三区四区| 精品国产乱码91久久久久久网站| 看电视剧不卡顿的网站| 欧美精品一区二区在线观看| 国产精品影音先锋| 国产精品久久三| 在线视频中文字幕一区二区| 午夜伦欧美伦电影理论片| 精品免费国产二区三区| 岛国精品在线观看| 一区二区三区毛片| 91精品国产综合久久福利软件| 日本不卡在线视频| 国产午夜精品一区二区| 色综合久久精品| 午夜精品久久久久影视| 精品国产电影一区二区| av动漫一区二区| 日韩和欧美一区二区三区| 欧美精品一区二区三区蜜臀| jlzzjlzz亚洲女人18| 手机精品视频在线观看| 国产午夜亚洲精品理论片色戒| 色综合久久88色综合天天6| 日韩一区精品字幕| 国产精品丝袜91| 欧美狂野另类xxxxoooo| 成人永久aaa| 久久99精品国产.久久久久| 国产精品国产三级国产| 欧美高清激情brazzers| 风流少妇一区二区| 婷婷一区二区三区| 国产精品久久久久久亚洲伦| 337p亚洲精品色噜噜噜| 99免费精品在线观看| 久久精品国产一区二区三| 自拍偷自拍亚洲精品播放| 日韩亚洲欧美成人一区| 色婷婷精品久久二区二区蜜臂av | 欧美日韩一区二区欧美激情| 久久se精品一区二区| 一区二区三区不卡视频| 国产欧美日韩三级| 日韩欧美成人一区| 欧美久久婷婷综合色| 91同城在线观看| 国产69精品久久久久毛片| 日精品一区二区三区| 亚洲精品国产一区二区精华液| 国产欧美日韩精品一区| 欧美va亚洲va| 欧美精品tushy高清| 色综合久久中文综合久久牛| 国产成人在线视频播放| 久久国内精品视频| 日韩va亚洲va欧美va久久| 一区二区欧美在线观看| 亚洲欧美日韩电影| 欧美国产禁国产网站cc| 久久久电影一区二区三区| 日韩欧美一区在线| 欧美肥妇free| 欧美美女一区二区| 欧美日韩精品一区二区三区| 9色porny自拍视频一区二区| 国产成人亚洲综合a∨婷婷图片| 麻豆精品在线播放| 蜜臀av性久久久久蜜臀aⅴ流畅 | 九九精品视频在线看| 日本视频一区二区三区| 天天操天天色综合| 热久久久久久久| 黄色资源网久久资源365| 久久精品国产网站| 国内精品国产成人国产三级粉色| 蜜桃av一区二区三区电影| 日韩精品一级中文字幕精品视频免费观看 | 91网址在线看| 99久久久久免费精品国产| 99久久精品免费看国产免费软件| 成人网页在线观看| 91丨porny丨最新| 99精品黄色片免费大全| 91蝌蚪porny九色| 欧美色倩网站大全免费| 欧美一级理论片| 国产视频一区二区在线观看| 亚洲国产激情av| 一区二区三区在线观看国产| 亚洲国产美女搞黄色| 青青草成人在线观看| 国产尤物一区二区| 成人免费视频视频在线观看免费| 成人激情图片网| 91久久精品网| 日韩免费看的电影| 国产欧美日韩中文久久| 依依成人综合视频| 另类小说视频一区二区| 成人av电影免费观看| 欧美日韩电影一区| 久久众筹精品私拍模特| 亚洲另类在线制服丝袜| 麻豆精品视频在线观看免费| 丰满白嫩尤物一区二区| 在线观看免费亚洲| 久久综合色之久久综合| 亚洲精品日产精品乱码不卡| 偷拍一区二区三区四区| 国产很黄免费观看久久| 欧美日韩激情一区| 亚洲国产精品精华液ab| 午夜视频久久久久久| 国产99精品在线观看| 欧美精品黑人性xxxx| 亚洲国产成人在线| 欧美bbbbb| 色欧美片视频在线观看| 久久网站最新地址| 亚洲福中文字幕伊人影院| 国产一区二区三区免费观看| 欧美色窝79yyyycom| 国产无一区二区| 日本美女一区二区| 91福利在线播放| 国产欧美日韩不卡免费| 蜜桃视频第一区免费观看| 日本二三区不卡| 国产精品天干天干在线综合| 亚洲午夜久久久久中文字幕久| 东方欧美亚洲色图在线| 日韩欧美中文字幕公布| 亚洲国产欧美日韩另类综合| 99精品1区2区| 中文字幕精品一区| 国产乱码一区二区三区| 欧美日本一区二区| 亚洲精品久久久蜜桃| 成人妖精视频yjsp地址| 久久欧美中文字幕| 麻豆成人av在线| 日韩一区二区高清| 亚洲丶国产丶欧美一区二区三区| 97精品久久久午夜一区二区三区 | 欧美日韩国产一级片| 亚洲欧美精品午睡沙发| 国产精品一品二品| 26uuuu精品一区二区| 蜜臀av国产精品久久久久| 欧美日本国产一区| 亚洲一二三级电影| 欧美性猛交一区二区三区精品| 亚洲另类一区二区| 欧洲精品一区二区三区在线观看| 亚洲免费伊人电影| 色综合久久久久网|