~ubuntu-branches/ubuntu/vivid/libjna-java/vivid-proposed

« back to all changes in this revision

Viewing changes to contrib/platform/src/com/sun/jna/platform/win32/COM/IDispatch.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg, Andrew Ross, Emmanuel Bourg
  • Date: 2014-10-16 00:23:15 UTC
  • mfrom: (8.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20141016002315-jxf9gkv3hi6por5t
Tags: 4.1.0-1
* Team upload

[ Andrew Ross ]
* New upstream release (Closes: #733488)
* Refreshed the patches (up to version 3.4.1)
* Link javadoc to default-jdk API
* Remove Michael Koch <konqueror@gmx.de> from uploaders (Closes: #654084).
* Use hardening-wrapper to correct lintian warnings.
* Update d/watch for new upstream location

[ Emmanuel Bourg ]
* Refreshed the patches (up to version 4.1.0)
* Removed 08-multiarch-support.patch (merged upstream since JNA 3.5.0)
* Removed 02-builddir.patch (merged upstream since 4.0.0)
* Removed 05-support-gnu-kfreebsd.patch (merged upstream since 4.0.0)
* Added a default implementation of Structure.getFieldOrder() to preserve
  the compatibility with JNA < 3.5.0
* Moved libjnidispatch.so into its own new arch any libjna-jni package
* Install libjnidispatch.so in a multiarch path
* Install the Maven artifacts for the platform jar (Closes: #743732)
* Moved platform.jar to its own libjna-platform-java package
* Added a repack script to clean the upstream tarball
* Install the upstream changelog
* debian/control:
  - Use canonical URLs for the Vcs-* fields
  - Standards-Version updated to 3.9.6 (no changes)
* Switch to debhelper level 9
* debian/copyright:
  - Updated to the Copyright Format 1.0
  - Fixed the short name of the license applied to the debian/* files
  - JNA is now dual licensed under the LGPL-2.1+ or the Apache-2.0 license

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2012 Tobias Wolf, All Rights Reserved
 
2
 * 
 
3
 * This library is free software; you can redistribute it and/or
 
4
 * modify it under the terms of the GNU Lesser General Public
 
5
 * License as published by the Free Software Foundation; either
 
6
 * version 2.1 of the License, or (at your option) any later version.
 
7
 * 
 
8
 * This library is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
 * Lesser General Public License for more details.  
 
12
 */
 
13
package com.sun.jna.platform.win32.COM;
 
14
 
 
15
import com.sun.jna.WString;
 
16
import com.sun.jna.platform.win32.Guid.IID;
 
17
import com.sun.jna.platform.win32.OaIdl.DISPID;
 
18
import com.sun.jna.platform.win32.OaIdl.DISPIDByReference;
 
19
import com.sun.jna.platform.win32.OaIdl.EXCEPINFO;
 
20
import com.sun.jna.platform.win32.OleAuto.DISPPARAMS;
 
21
import com.sun.jna.platform.win32.Variant.VARIANT;
 
22
import com.sun.jna.platform.win32.WinDef.LCID;
 
23
import com.sun.jna.platform.win32.WinDef.UINT;
 
24
import com.sun.jna.platform.win32.WinDef.UINTByReference;
 
25
import com.sun.jna.platform.win32.WinNT.HRESULT;
 
26
import com.sun.jna.ptr.IntByReference;
 
27
import com.sun.jna.ptr.PointerByReference;
 
28
 
 
29
// TODO: Auto-generated Javadoc
 
30
/**
 
31
 * Wrapper class for the IDispatch interface
 
32
 * 
 
33
 * IDispatch.GetTypeInfoCount 12 IDispatch.GetTypeInfo 16
 
34
 * IDispatch.GetIDsOfNames 20 IDispatch.Invoke 24
 
35
 * 
 
36
 * @author Tobias Wolf, wolf.tobias@gmx.net
 
37
 */
 
38
public interface IDispatch extends IUnknown {
 
39
 
 
40
    public final static IID IID_IDISPATCH = new IID(
 
41
            "00020400-0000-0000-C000-000000000046");
 
42
 
 
43
    public HRESULT GetTypeInfoCount(UINTByReference pctinfo);
 
44
 
 
45
    public HRESULT GetTypeInfo(UINT iTInfo, LCID lcid,
 
46
            PointerByReference ppTInfo);
 
47
 
 
48
    public HRESULT GetIDsOfNames(IID riid, WString[] rgszNames, int cNames,
 
49
            LCID lcid, DISPIDByReference rgDispId);
 
50
 
 
51
    public HRESULT Invoke(DISPID dispIdMember, IID riid, LCID lcid,
 
52
            DISPID wFlags, DISPPARAMS pDispParams,
 
53
            VARIANT.ByReference pVarResult, EXCEPINFO.ByReference pExcepInfo,
 
54
            IntByReference puArgErr);
 
55
}