Package com.sun.jna.platform.win32.WinDef

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


     *            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

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

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

    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

    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

            }
        }

        // 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

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

    private void newAppBar() {
        APPBARDATA data = new APPBARDATA.ByReference();
        data.cbSize.setValue(data.size());
        data.uCallbackMessage.setValue(WM_USER + 1);

        UINT_PTR result = Shell32.INSTANCE.SHAppBarMessage(new DWORD(ShellAPI.ABM_NEW), data);
        assertNotNull(result);
    }
View Full Code Here

    }

    private void removeAppBar() {
        APPBARDATA data = new APPBARDATA.ByReference();
        data.cbSize.setValue(data.size());
        UINT_PTR result = Shell32.INSTANCE.SHAppBarMessage(new DWORD(ShellAPI.ABM_REMOVE), data);
        assertNotNull(result);

    }
View Full Code Here

        assertNotNull(result);

    }

    private void queryPos(APPBARDATA data) {
        UINT_PTR h = Shell32.INSTANCE.SHAppBarMessage(new DWORD(ShellAPI.ABM_QUERYPOS), data);

        assertNotNull(h);
        assertTrue(h.intValue() > 0);

    }
View Full Code Here

TOP

Related Classes of com.sun.jna.platform.win32.WinDef.UINT

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.