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

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


     * @return the names
     */
    public String[] getNames(MEMBERID memid, int maxNames) {
        BSTR[] rgBstrNames = new BSTR[maxNames];
        UINTByReference pcNames = new UINTByReference();
        HRESULT hr = this.typeInfo.GetNames(memid, rgBstrNames, new UINT(
                maxNames), pcNames);
        COMUtils.checkRC(hr);

        int cNames = pcNames.getValue().intValue();
        String[] result = new String[cNames];
View Full Code Here


     *            the index
     * @return the ref type of impl type
     */
    public HREFTYPE getRefTypeOfImplType(int index) {
        HREFTYPEByReference ppTInfo = new HREFTYPEByReference();
        HRESULT hr = this.typeInfo.GetRefTypeOfImplType(new UINT(index),
                ppTInfo);
        COMUtils.checkRC(hr);

        return ppTInfo.getValue();
    }
View Full Code Here

     *            the index
     * @return the impl type flags
     */
    public int getImplTypeFlags(int index) {
        IntByReference pImplTypeFlags = new IntByReference();
        HRESULT hr = this.typeInfo.GetImplTypeFlags(new UINT(index),
                pImplTypeFlags);
        COMUtils.checkRC(hr);

        return pImplTypeFlags.getValue();
    }
View Full Code Here

     *            the c names
     * @return the i ds of names
     */
    public MEMBERID[] getIDsOfNames(LPOLESTR[] rgszNames, int cNames) {
        MEMBERID[] pMemId = new MEMBERID[cNames];
        HRESULT hr = this.typeInfo.GetIDsOfNames(rgszNames, new UINT(cNames),
                pMemId);
        COMUtils.checkRC(hr);

        return pMemId;
    }
View Full Code Here

        VARIANT.ByReference pVarResult = new VARIANT.ByReference();
        EXCEPINFO.ByReference pExcepInfo = new EXCEPINFO.ByReference();
        UINTByReference puArgErr = new UINTByReference();

        HRESULT hr = this.typeInfo.Invoke(pvInstance, memid, wFlags,
                pDispParams, pVarResult, pExcepInfo, puArgErr);
        COMUtils.checkRC(hr);

        return new Invoke(pVarResult, pExcepInfo, puArgErr.getValue()
                .intValue());
View Full Code Here

        BSTRByReference pBstrName = new BSTRByReference();
        BSTRByReference pBstrDocString = new BSTRByReference();
        DWORDByReference pdwHelpContext = new DWORDByReference();
        BSTRByReference pBstrHelpFile = new BSTRByReference();

        HRESULT hr = this.typeInfo.GetDocumentation(memid, pBstrName,
                pBstrDocString, pdwHelpContext, pBstrHelpFile);
        COMUtils.checkRC(hr);

        TypeInfoDoc TypeInfoDoc = new TypeInfoDoc(pBstrName.getString(),
                pBstrDocString.getString(), pdwHelpContext.getValue()
View Full Code Here

    public DllEntry GetDllEntry(MEMBERID memid, INVOKEKIND invKind) {
        BSTRByReference pBstrDllName = new BSTRByReference();
        BSTRByReference pBstrName = new BSTRByReference();
        WORDByReference pwOrdinal = new WORDByReference();

        HRESULT hr = this.typeInfo.GetDllEntry(memid, invKind, pBstrDllName,
                pBstrName, pwOrdinal);
        COMUtils.checkRC(hr);

        OLEAUTO.SysFreeString(pBstrDllName.getValue());
        OLEAUTO.SysFreeString(pBstrName.getValue());
View Full Code Here

     *            the hreftype
     * @return the ref type info
     */
    public ITypeInfo getRefTypeInfo(HREFTYPE hreftype) {
        PointerByReference ppTInfo = new PointerByReference();
        HRESULT hr = this.typeInfo.GetRefTypeInfo(hreftype, ppTInfo);
        COMUtils.checkRC(hr);

        return new TypeInfo(ppTInfo.getValue());
    }
View Full Code Here

     *            the inv kind
     * @return the pointer by reference
     */
    public PointerByReference AddressOfMember(MEMBERID memid, INVOKEKIND invKind) {
        PointerByReference ppv = new PointerByReference();
        HRESULT hr = this.typeInfo.AddressOfMember(memid, invKind, ppv);
        COMUtils.checkRC(hr);

        return ppv;
    }
View Full Code Here

     *            the riid
     * @return the pointer by reference
     */
    public PointerByReference CreateInstance(IUnknown pUnkOuter, REFIID riid) {
        PointerByReference ppvObj = new PointerByReference();
        HRESULT hr = this.typeInfo.CreateInstance(pUnkOuter, riid, ppvObj);
        COMUtils.checkRC(hr);

        return ppvObj;
    }
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.