r2776 - trunk/src/main/java/org/chorem/jtimer/ui/system/win32
Author: echatellier Date: 2011-09-04 14:09:43 +0200 (Sun, 04 Sep 2011) New Revision: 2776 Url: http://chorem.org/repositories/revision/jtimer/2776 Log: Use Win32 code from jna platform artifact. Removed: trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Kernel32.java Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/win32/User32.java trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Win32SystemInfo.java Deleted: trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Kernel32.java =================================================================== --- trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Kernel32.java 2011-09-04 12:04:30 UTC (rev 2775) +++ trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Kernel32.java 2011-09-04 12:09:43 UTC (rev 2776) @@ -1,54 +0,0 @@ -/* - * #%L - * jTimer - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2007 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.jtimer.ui.system.win32; - -import com.sun.jna.Native; -import com.sun.jna.win32.StdCallLibrary; - -/** - * Win kernel32 JNA Interface. - * - * @author chatellier - * @version $Revision$ - * - * Last update : $Date$ - * By : $Author$ - */ -public interface Kernel32 extends StdCallLibrary { - - /** Instance. */ - Kernel32 INSTANCE = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class); - - /** - * Retrieves the number of milliseconds that have elapsed since the system - * was started. - * - * @see "http://msdn2.microsoft.com/en-us/library/ms724408.aspx" - * @return number of milliseconds that have elapsed since the system was - * started. - */ - int GetTickCount(); -} Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/win32/User32.java =================================================================== --- trunk/src/main/java/org/chorem/jtimer/ui/system/win32/User32.java 2011-09-04 12:04:30 UTC (rev 2775) +++ trunk/src/main/java/org/chorem/jtimer/ui/system/win32/User32.java 2011-09-04 12:09:43 UTC (rev 2776) @@ -32,11 +32,12 @@ /** * Win User32 JNA Interface. * + * TODO it not the same code as jna's User32 class. + * * @author chatellier * @version $Revision$ * - * FIXME-TC2010011" : javadoc plugin says there is a missing closing tag ? - * @see <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputstructures/lastinputinfo.asp">Windows API</a> + * @see <a href="http://msdn.microsoft.com/en-us/library/ms646272">Windows API</a> * * Last update : $Date$ * By : $Author$ Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Win32SystemInfo.java =================================================================== --- trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Win32SystemInfo.java 2011-09-04 12:04:30 UTC (rev 2775) +++ trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Win32SystemInfo.java 2011-09-04 12:09:43 UTC (rev 2776) @@ -27,6 +27,8 @@ import org.chorem.jtimer.ui.system.SystemInfo; +import com.sun.jna.platform.win32.Kernel32; + /** * Win32 System info. *
participants (1)
-
echatellier@users.chorem.org