mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
141 lines
2.9 KiB
141 lines
2.9 KiB
/*++ BUILD Version: 0001 // Increment this if a change has global effects
|
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
Module Name:
|
|
|
|
machinep.h
|
|
|
|
Abstract:
|
|
|
|
This is the include file that defines detect of machine type.
|
|
|
|
This file is only included from following files
|
|
|
|
+ \machine\*.c
|
|
+ \utils\ulib\machine.cxx
|
|
|
|
And same definition is in
|
|
|
|
+ \public\sdk\inc\machine.h
|
|
+ \ntos\config\i386.h
|
|
+ \ntos\fastfat\fatinit.c
|
|
+ \ntos\dd\scsidisk\disk.c
|
|
|
|
And this library will be linked with following module.
|
|
|
|
+ winsrv.dll ( usersrvl.lib )
|
|
+ main.cpl
|
|
+ display.cpl
|
|
+ winfile.exe
|
|
+ winlogon.exe
|
|
+ msgina.dll
|
|
|
|
Author:
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef _MACHINEP_ID_
|
|
#define _MACHINEP_ID_
|
|
|
|
#if defined(_X86_)
|
|
|
|
//
|
|
// Registry Key
|
|
//
|
|
|
|
//
|
|
// UNICODE
|
|
//
|
|
|
|
#define REGISTRY_HARDWARE_DESCRIPTION_W \
|
|
L"\\Registry\\Machine\\Hardware\\DESCRIPTION\\System"
|
|
|
|
#define REGISTRY_HARDWARE_SYSTEM_W \
|
|
L"Hardware\\DESCRIPTION\\System"
|
|
|
|
#define REGISTRY_MACHINE_IDENTIFIER_W \
|
|
L"Identifier"
|
|
|
|
#define FUJITSU_FMR_NAME_W L"FUJITSU FMR-"
|
|
#define NEC_PC98_NAME_W L"NEC PC-98"
|
|
|
|
//
|
|
// ANSI
|
|
//
|
|
|
|
#define REGISTRY_HARDWARE_DESCRIPTION_A \
|
|
"\\Registry\\Machine\\Hardware\\DESCRIPTION\\System"
|
|
|
|
#define REGISTRY_HARDWARE_SYSTEM_A \
|
|
"Hardware\\DESCRIPTION\\System"
|
|
|
|
#define REGISTRY_MACHINE_IDENTIFIER_A \
|
|
"Identifier"
|
|
|
|
#define FUJITSU_FMR_NAME_A "FUJITSU FMR-"
|
|
#define NEC_PC98_NAME_A "NEC PC-98"
|
|
|
|
//
|
|
// Automatic
|
|
//
|
|
|
|
#define REGISTRY_HARDWARE_DESCRIPTION \
|
|
TEXT("\\Registry\\Machine\\Hardware\\DESCRIPTION\\System")
|
|
|
|
#define REGISTRY_HARDWARE_SYSTEM \
|
|
TEXT("Hardware\\DESCRIPTION\\System")
|
|
|
|
#define REGISTRY_MACHINE_IDENTIFIER \
|
|
TEXT("Identifier")
|
|
|
|
#define FUJITSU_FMR_NAME TEXT("FUJITSU FMR-")
|
|
#define NEC_PC98_NAME TEXT("NEC PC-98")
|
|
|
|
//
|
|
// These definition are only for Intel platform.
|
|
//
|
|
//
|
|
// Hardware platform ID
|
|
//
|
|
|
|
#define PC_AT_COMPATIBLE 0x00000000
|
|
#define PC_9800_COMPATIBLE 0x00000001
|
|
#define FMR_COMPATIBLE 0x00000002
|
|
|
|
//
|
|
// NT Vendor ID
|
|
//
|
|
|
|
#define NT_MICROSOFT 0x00010000
|
|
#define NT_NEC 0x00020000
|
|
#define NT_FUJITSU 0x00040000
|
|
|
|
//
|
|
// Vendor/Machine IDs
|
|
//
|
|
// DWORD MachineID
|
|
//
|
|
// 31 15 0
|
|
// +-------------+-------------+
|
|
// | Vendor ID | Platform ID |
|
|
// +-------------+-------------+
|
|
//
|
|
|
|
#define MACHINEID_MS_PCAT (NT_MICROSOFT|PC_AT_COMPATIBLE)
|
|
#define MACHINEID_MS_PC98 (NT_MICROSOFT|PC_9800_COMPATIBLE)
|
|
#define MACHINEID_NEC_PC98 (NT_NEC |PC_9800_COMPATIBLE)
|
|
#define MACHINEID_FUJITSU_FMR (NT_FUJITSU |FMR_COMPATIBLE)
|
|
|
|
//
|
|
// Macros
|
|
//
|
|
|
|
#define ISNECPC98(x) (x == MACHINEID_NEC_PC98)
|
|
#define ISFUJITSUFMR(x) (x == MACHINEID_FUJITSU_FMR)
|
|
#define ISMICROSOFT(x) (x == MACHINEID_MS_PCAT)
|
|
|
|
#endif // defined(i386)
|
|
#endif // _MACHINE_ID_
|