Examples of TYPEATTR


Examples of com.sun.jna.platform.win32.OaIdl.TYPEATTR

        this.createClassName(this.name);
        this.setFilename(this.name);

        // Get the TypeAttributes
        TypeInfoUtil typeInfoUtil = typeLibUtil.getTypeInfoUtil(index);
        TYPEATTR typeAttr = typeInfoUtil.getTypeAttr();

        this.createJavaDocHeader(typeAttr.guid.toGuidString(), docString);

        int cFuncs = typeAttr.cFuncs.intValue();
        for (int i = 0; i < cFuncs; i++) {
View Full Code Here

Examples of com.sun.jna.platform.win32.OaIdl.TYPEATTR

        this.createClassName(this.name);
        this.setFilename(this.name);

        // Get the TypeAttributes
        TypeInfoUtil typeInfoUtil = typeLibUtil.getTypeInfoUtil(index);
        TYPEATTR typeAttr = typeInfoUtil.getTypeAttr();

        this.createJavaDocHeader(typeAttr.guid.toGuidString(), docString);

        int cVars = typeAttr.cVars.intValue();
        for (int i = 0; i < cVars; i++) {
View Full Code Here

Examples of com.sun.jna.platform.win32.OaIdl.TYPEATTR

        this.createJavaDocHeader(guidStr, version, docString);
        this.createCLSID(clsid);
        this.createCLSIDName(this.name);
       
     // Get the TypeAttributes
        TYPEATTR typeAttr = typeInfoUtil.getTypeAttr();
        int cImplTypes = typeAttr.cImplTypes.intValue();
        String interfaces = "";

        for (int i = 0; i < cImplTypes; i++) {
            HREFTYPE refTypeOfImplType = typeInfoUtil.getRefTypeOfImplType(i);
View Full Code Here

Examples of com.sun.jna.platform.win32.OaIdl.TYPEATTR

        this.createInterfaces(interfaces);
        this.createContent(this.content);
    }

    protected void createFunctions(TypeInfoUtil typeInfoUtil, String bindingMode) {
        TYPEATTR typeAttr = typeInfoUtil.getTypeAttr();
        int cFuncs = typeAttr.cFuncs.intValue();
        for (int i = 0; i < cFuncs; i++) {
            // Get the function description
            FUNCDESC funcDesc = typeInfoUtil.getFuncDesc(i);
           
View Full Code Here

Examples of com.sun.jna.platform.win32.OaIdl.TYPEATTR

        this.createClassName(this.name);
        this.setFilename(this.name);

        // Get the TypeAttributes
        TypeInfoUtil typeInfoUtil = typeLibUtil.getTypeInfoUtil(index);
        TYPEATTR typeAttr = typeInfoUtil.getTypeAttr();

        this.createJavaDocHeader(typeAttr.guid.toGuidString(), docString);

        int cVars = typeAttr.cVars.intValue();
        for (int i = 0; i < cVars; i++) {
View Full Code Here

Examples of com.sun.jna.platform.win32.OaIdl.TYPEATTR

    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

Examples of com.sun.jna.platform.win32.OaIdl.TYPEATTR

        for (int i = 0; i < typeInfoCount; i++)
        {
            ITypeInfo typeInfo = shellTypeLib.getTypeInfo(i);
            TypeInfoUtil typeInfoUtil = new TypeInfoUtil(typeInfo);
           
            TYPEATTR typeAttr = typeInfoUtil.getTypeAttr();
            int cFuncs = typeAttr.cFuncs.intValue();
   
            for (int y = 0; y < cFuncs; y++) {
                // Get the function description
                FUNCDESC funcDesc = typeInfoUtil.getFuncDesc(y);
View Full Code Here

Examples of com.sun.jna.platform.win32.OaIdl.TYPEATTR

        int typeInfoCount = shellTypeLib.getTypeInfoCount();
       
        ITypeInfo typeInfo = shellTypeLib.getTypeInfo(4);
        TypeInfoUtil typeInfoUtil = new TypeInfoUtil(typeInfo);
       
        TYPEATTR typeAttr = typeInfoUtil.getTypeAttr();
        int cFuncs = typeAttr.cFuncs.intValue();
   
        for (int y = 0; y < cFuncs; y++) {
            // Get the function description
            FUNCDESC funcDesc = typeInfoUtil.getFuncDesc(y);
View Full Code Here

Examples of com.sun.jna.platform.win32.OaIdl.TYPEATTR

    }

    public void testTYPEATTR() {
        int pSize = Native.POINTER_SIZE;

        TYPEATTR typeAttr = new TYPEATTR();
        typeAttr.guid = GUID
            .fromString("{50A7E9B0-70EF-11D1-B75A-00A0C90564FE}");
        typeAttr.lcid = Kernel32.INSTANCE.GetSystemDefaultLCID();
        typeAttr.dwReserved = new DWORD(1);
        typeAttr.memidConstructor = new MEMBERID(2);
        typeAttr.memidDestructor = new MEMBERID(3);
        typeAttr.lpstrSchema = new LPOLESTR("Hello World");
        typeAttr.cbSizeInstance = new ULONG(4);
        typeAttr.typekind = new TYPEKIND(5);
        typeAttr.cFuncs = new WORD(6);
        typeAttr.cVars = new WORD(7);
        typeAttr.cImplTypes = new WORD(8);
        typeAttr.cbSizeVft = new WORD(9);
        typeAttr.cbAlignment = new WORD(10);
        typeAttr.wMajorVerNum = new WORD(11);
        typeAttr.wMinorVerNum = new WORD(12);
        typeAttr.tdescAlias = new TYPEDESC();
        typeAttr.idldescType = new IDLDESC();

        typeAttr.write();
        typeAttr.read();
        //System.out.println(typeAttr.toString());
        //System.out.println("TYPEATTR size: " + typeAttr.size());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.