Package com.sun.jna.platform.win32.WinNT

Examples of com.sun.jna.platform.win32.WinNT.HRESULT


    }

    public void testGetImplTypeFlags() {
        ITypeInfo typeInfo = getTypeInfo();
        IntByReference pImplTypeFlags = new IntByReference();
        HRESULT hr = typeInfo.GetImplTypeFlags(new UINT(0), pImplTypeFlags);

        COMUtils.checkRC(hr);
        assertEquals(0, hr.intValue());
        //System.out.println("GetImplTypeFlags: " + pImplTypeFlags.toString());
    }
View Full Code Here


    public void testGetIDsOfNames() {
        ITypeInfo typeInfo = getTypeInfo();
        LPOLESTR[] rgszNames = { new LPOLESTR("Help") };
        UINT cNames = new UINT(1);
        MEMBERID[] pMemId = new MEMBERID[1];
        HRESULT hr = typeInfo.GetIDsOfNames(rgszNames, cNames, pMemId);

        COMUtils.checkRC(hr);
        assertEquals(0, hr.intValue());
        //System.out.println("pMemId: " + pMemId.toString());
    }
View Full Code Here

        MEMBERID memid = new MEMBERID(0);
        BSTRByReference pBstrName = new BSTRByReference();
        BSTRByReference pBstrDocString = new BSTRByReference();
        DWORDByReference pdwHelpContext = new DWORDByReference();
        BSTRByReference pBstrHelpFile = new BSTRByReference();
        HRESULT hr = typeInfo.GetDocumentation(memid, pBstrName,
                pBstrDocString, pdwHelpContext, pBstrHelpFile);

        COMUtils.checkRC(hr);
        assertEquals(0, hr.intValue());
        //System.out.println("memid: " + memid.intValue());
        //System.out.println("pBstrName: " + pBstrName.getValue());
        //System.out.println("pBstrDocString: " + pBstrDocString.getValue());
        //System.out.println("pdwHelpContext: " + pdwHelpContext.getValue());
        //System.out.println("pBstrHelpFile: " + pBstrHelpFile.getValue());
View Full Code Here

        ITypeInfo typeInfo = getTypeInfo();
        MEMBERID memid = new MEMBERID(0);
        BSTRByReference pBstrDllName = new BSTRByReference();
        BSTRByReference pBstrName = new BSTRByReference();
        WORDByReference pwOrdinal = new WORDByReference();
        HRESULT hr = typeInfo.GetDllEntry(memid, INVOKEKIND.INVOKE_FUNC,
                pBstrDllName, pBstrName, pwOrdinal);

        COMUtils.checkRC(hr);
        assertEquals(0, hr.intValue());
        //System.out.println("memid: " + memid.intValue());
        //System.out.println("pBstrDllName: " + pBstrDllName.getValue());
        //System.out.println("pBstrName: " + pBstrName.getValue());
        //System.out.println("pwOrdinal: " + pwOrdinal.getValue());
    }
View Full Code Here

    public void testAddressOfMember() {
        ITypeInfo typeInfo = getTypeInfo();
        MEMBERID memid = new MEMBERID();
        PointerByReference ppv = new PointerByReference();
        HRESULT hr = typeInfo.AddressOfMember(memid, INVOKEKIND.INVOKE_FUNC,
                ppv);

        COMUtils.checkRC(hr);
        assertEquals(0, hr.intValue());
        //System.out.println("AddressOfMember: " + ppv.toString());
    }
View Full Code Here

    public void testGetMops() {
        ITypeInfo typeInfo = getTypeInfo();
        MEMBERID memid = new MEMBERID(0);
        BSTRByReference pBstrMops = new BSTRByReference();
        HRESULT hr = typeInfo.GetMops(memid, pBstrMops);

        COMUtils.checkRC(hr);
        assertEquals(0, hr.intValue());
        //System.out.println("pBstrMops: " + pBstrMops.toString());
    }
View Full Code Here

     *
     * @return the type attr
     */
    public TYPEATTR getTypeAttr() {
        PointerByReference ppTypeAttr = new PointerByReference();
        HRESULT hr = this.typeInfo.GetTypeAttr(ppTypeAttr);
        COMUtils.checkRC(hr);

        return new TYPEATTR(ppTypeAttr.getValue());
    }
View Full Code Here

     *
     * @return the type comp
     */
    public TypeComp getTypeComp() {
        PointerByReference ppTypeAttr = new PointerByReference();
        HRESULT hr = this.typeInfo.GetTypeComp(ppTypeAttr);
        COMUtils.checkRC(hr);

        return new TypeComp(ppTypeAttr.getValue());
    }
View Full Code Here

     *            the index
     * @return the func desc
     */
    public FUNCDESC getFuncDesc(int index) {
        PointerByReference ppFuncDesc = new PointerByReference();
        HRESULT hr = this.typeInfo.GetFuncDesc(new UINT(index), ppFuncDesc);
        COMUtils.checkRC(hr);

        return new FUNCDESC(ppFuncDesc.getValue());
    }
View Full Code Here

     *            the index
     * @return the var desc
     */
    public VARDESC getVarDesc(int index) {
        PointerByReference ppVarDesc = new PointerByReference();
        HRESULT hr = this.typeInfo.GetVarDesc(new UINT(index), ppVarDesc);
        COMUtils.checkRC(hr);

        return new VARDESC(ppVarDesc.getValue());
    }
View Full Code Here

TOP

Related Classes of com.sun.jna.platform.win32.WinNT.HRESULT

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.