Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

machine.h

Go to the documentation of this file.
00001 /*++ BUILD Version: 0001 // Increment this if a change has global effects 00002 00003 Copyright (c) 1985 - 1999, Microsoft Corporation 00004 00005 Module Name: 00006 00007 machine.h 00008 00009 Abstract: 00010 00011 This is the include file that defines detect of machine type. 00012 00013 Author: 00014 00015 kazum 10-Aug-1994 00016 00017 Revision History: 00018 00019 --*/ 00020 00021 #ifndef _MACHINE_ID_ 00022 #define _MACHINE_ID_ 00023 00024 #if defined(i386) 00025 // 00026 // These definition is only for Intel platform. 00027 // 00028 // 00029 // Hardware platform ID 00030 // 00031 00032 #define PC_AT_COMPATIBLE 0x00000000 00033 #define PC_9800_COMPATIBLE 0x00000001 00034 #define FMR_COMPATIBLE 0x00000002 00035 00036 // 00037 // NT Vendor ID 00038 // 00039 00040 #define NT_MICROSOFT 0x00010000 00041 #define NT_NEC 0x00020000 00042 #define NT_FUJITSU 0x00040000 00043 00044 // 00045 // Vendor/Machine IDs 00046 // 00047 // DWORD MachineID 00048 // 00049 // 31 15 0 00050 // +-------------+-------------+ 00051 // | Vendor ID | Platform ID | 00052 // +-------------+-------------+ 00053 // 00054 00055 #define MACHINEID_MS_PCAT (NT_MICROSOFT|PC_AT_COMPATIBLE) 00056 #define MACHINEID_MS_PC98 (NT_MICROSOFT|PC_9800_COMPATIBLE) 00057 #define MACHINEID_NEC_PC98 (NT_NEC |PC_9800_COMPATIBLE) 00058 #define MACHINEID_FUJITSU_FMR (NT_FUJITSU |FMR_COMPATIBLE) 00059 00060 // 00061 // Build 683 compatibility. 00062 // 00063 // !!! should be removed. 00064 00065 #define MACHINEID_MICROSOFT MACHINEID_MS_PCAT 00066 00067 // 00068 // Macros 00069 // 00070 00071 #define ISNECPC98(x) (x == MACHINEID_NEC_PC98) 00072 #define ISFUJITSUFMR(x) (x == MACHINEID_FUJITSU_FMR) 00073 #define ISMICROSOFT(x) (x == MACHINEID_MS_PCAT) 00074 00075 // 00076 // Functions. 00077 // 00078 00079 // 00080 // User mode ( NT API ) 00081 // 00082 00083 LONG 00084 NtGetMachineIdentifierValue( 00085 IN OUT PULONG Value 00086 ); 00087 00088 // 00089 // User mode ( Win32 API ) 00090 // 00091 00092 LONG 00093 RegGetMachineIdentifierValue( 00094 IN OUT PULONG Value 00095 ); 00096 00097 #endif // defined(i386) 00098 #endif // _MACHINE_ID_

Generated on Sat May 15 19:40:40 2004 for test by doxygen 1.3.7