Examples of UINT


Examples of com.sun.jna.platform.win32.WinDef.UINT

     * @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

Examples of com.sun.jna.platform.win32.WinDef.UINT

     *            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

Examples of com.sun.jna.platform.win32.WinDef.UINT

     *            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

Examples of com.sun.jna.platform.win32.WinDef.UINT

     *            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

Examples of com.sun.jna.platform.win32.WinDef.UINT

        return new TypeLib(pShellTypeLib.getValue());
    }

    public void testGetTypeInfoCount() {
        ITypeLib shellTypeLib = loadShellTypeLib();
        UINT typeInfoCount = shellTypeLib.GetTypeInfoCount();
        //System.out.println("GetTypeInfoCount: " + typeInfoCount);
    }
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.UINT

    public void testGetTypeInfo() {
        ITypeLib shellTypeLib = loadShellTypeLib();
       
        PointerByReference ppTInfo = new PointerByReference();
        HRESULT hr = shellTypeLib.GetTypeInfo(new UINT(0), ppTInfo);
       
        COMUtils.checkRC(hr);
        assertEquals(0, hr.intValue());
        //System.out.println("ITypeInfo: " + ppTInfo.toString());
    }
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.UINT

    public void testGetTypeInfoType() {
        ITypeLib shellTypeLib = loadShellTypeLib();

        TYPEKIND.ByReference pTKind = new TYPEKIND.ByReference();
        HRESULT hr = shellTypeLib.GetTypeInfoType(new UINT(0), pTKind);

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

Examples of com.sun.jna.platform.win32.WinDef.UINT

            }
        }

        // Handle special-case for property-puts!
        if (nType == OleAuto.DISPATCH_PROPERTYPUT) {
            dp.cNamedArgs = new UINT(_argsLen);
            dp.rgdispidNamedArgs = new DISPIDByReference(
                    OaIdl.DISPID_PROPERTYPUT);
        }

        // Build DISPPARAMS
        if (_argsLen > 0) {
            dp.cArgs = new UINT(_args.length);
            // make pointer of variant array
            dp.rgvarg = new VariantArg.ByReference(_args);

            // write 'DISPPARAMS' structure to memory
            dp.write();
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.UINT

    }
   
    @Ignore("Shutsdown the workstation")
    @Test
    public final void testExitWindows() {
    assertTrue(User32.INSTANCE.ExitWindowsEx(new UINT(WinUser.EWX_LOGOFF), new DWORD(0x00030000)).booleanValue()); //This only tries to log off.
    }
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.