1 /* $NetBSD: win32os.h,v 1.1.1.1 2009/12/13 16:54:46 kardel Exp $ */ 2 3 /* 4 * Copyright (C) 2004, 2007 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.5 2007/06/19 23:47:20 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 unsigned int 35 isc_win32os_majorversion(void); 36 /* 37 * Major Version of the O/S. 38 */ 39 40 unsigned int 41 isc_win32os_minorversion(void); 42 /* 43 * Minor Version of the O/S. 44 */ 45 46 unsigned int 47 isc_win32os_servicepackmajor(void); 48 /* 49 * Major Version of the Service Pack for O/S. 50 */ 51 52 unsigned int 53 isc_win32os_servicepackminor(void); 54 /* 55 * Minor Version of the Service Pack for O/S. 56 */ 57 58 int 59 isc_win32os_versioncheck(unsigned int major, unsigned int minor, 60 unsigned int updatemajor, unsigned int updateminor); 61 62 /* 63 * Checks the current version of the operating system with the 64 * supplied version information. 65 * Returns: 66 * -1 if less than the version information supplied 67 * 0 if equal to all of the version information supplied 68 * +1 if greater than the version information supplied 69 */ 70 71 ISC_LANG_ENDDECLS 72 73 #endif /* ISC_OS_H */ 74