use of com.sun.jna.platform.win32.WinNT.HRESULT in project jna by java-native-access.
the class COMBindingBaseObject method oleMethod.
protected HRESULT oleMethod(int nType, VARIANT.ByReference pvResult, IDispatch pDisp, String name, VARIANT[] pArgs) throws COMException {
if (pDisp == null)
throw new COMException("pDisp (IDispatch) parameter is null!");
// variable declaration
WString[] ptName = new WString[] { new WString(name) };
DISPIDByReference pdispID = new DISPIDByReference();
// Get DISPID for name passed...
HRESULT hr = pDisp.GetIDsOfNames(new REFIID(Guid.IID_NULL), ptName, 1, LOCALE_USER_DEFAULT, pdispID);
COMUtils.checkRC(hr);
return this.oleMethod(nType, pvResult, pDisp, pdispID.getValue(), pArgs);
}
use of com.sun.jna.platform.win32.WinNT.HRESULT in project jna by java-native-access.
the class EnumMoniker method Clone.
@Override
public HRESULT Clone(PointerByReference ppenum) {
final int vTableId = 6;
WinNT.HRESULT hr = (WinNT.HRESULT) this._invokeNativeObject(vTableId, new Object[] { this.getPointer(), ppenum }, WinNT.HRESULT.class);
return hr;
}
use of com.sun.jna.platform.win32.WinNT.HRESULT in project jna by java-native-access.
the class EnumMoniker method Skip.
@Override
public HRESULT Skip(ULONG celt) {
final int vTableId = 4;
WinNT.HRESULT hr = (WinNT.HRESULT) this._invokeNativeObject(vTableId, new Object[] { this.getPointer(), celt }, WinNT.HRESULT.class);
return hr;
}
use of com.sun.jna.platform.win32.WinNT.HRESULT in project jna by java-native-access.
the class EnumMoniker method Next.
// The magic number values for (vTableId) below, are worked out by
// counting the number of methods in the full interface (0 indexed), as this
// inherits IUnknown, which has 3 methods, we start here at 3.
@Override
public HRESULT Next(ULONG celt, PointerByReference rgelt, ULONGByReference pceltFetched) {
final int vTableId = 3;
WinNT.HRESULT hr = (WinNT.HRESULT) this._invokeNativeObject(vTableId, new Object[] { this.getPointer(), celt, rgelt, pceltFetched }, WinNT.HRESULT.class);
return hr;
}
use of com.sun.jna.platform.win32.WinNT.HRESULT in project jna by java-native-access.
the class RunningObjectTable method IsRunning.
@Override
public HRESULT IsRunning(Pointer pmkObjectName) {
final int vTableId = 5;
WinNT.HRESULT hr = (WinNT.HRESULT) this._invokeNativeObject(vTableId, new Object[] { this.getPointer(), pmkObjectName }, WinNT.HRESULT.class);
return hr;
}
Aggregations