1 /* $NetBSD: win32os.h,v 1.5 2015/07/08 17:29:00 christos Exp $ */ 2 3 /* 4 * Copyright (C) 2004, 2007, 2009, 2015 Internet Systems Consortium, Inc. ("ISC") 5 * Copyright (C) 2002 Internet Software Consortium. 6 * 7 * Permission to use, copy, modify, and/or distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 12 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 13 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 15 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 16 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /* Id: win32os.h,v 1.7 2009/06/25 23:48:02 tbox Exp */ 21 22 #ifndef ISC_WIN32OS_H 23 #define ISC_WIN32OS_H 1 24 25 #include <isc/lang.h> 26 27 ISC_LANG_BEGINDECLS 28 29 /* 30 * Return the number of CPUs available on the system, or 1 if this cannot 31 * be determined. 32 */ 33 34 int 35 isc_win32os_versioncheck(unsigned int major, unsigned int minor, 36 unsigned int updatemajor, unsigned int updateminor); 37 38 /* 39 * Checks the current version of the operating system with the 40 * supplied version information. 41 * Returns: 42 * -1 if less than the version information supplied 43 * 0 if equal to all of the version information supplied 44 * +1 if greater than the version information supplied 45 */ 46 47 ISC_LANG_ENDDECLS 48 49 #endif /* ISC_WIN32OS_H */ 50