SP_ALTPLATFORM_INFO structure
An SP_ALTPLATFORM_INFO structure specifies, for a given computer, the version of the operating system and the computer's processor architecture.
Syntax
typedef struct {
DWORD cbSize;
DWORD Platform;
DWORD MajorVersion;
DWORD MinorVersion;
WORD ProcessorArchitecture;
WORD Reserved;
} SP_ALTPLATFORM_INFO, *PSP_ALTPLATFORM_INFO;
Members
cbSize
Specifies the size, in bytes, of an SP_ALTPLATFORM_INFO structure. Starting with Windows XP, the cbSize member of this structure must be set to sizeof(SP_ALTPLATFORM_INFO_V2). For all earlier versions of Windows, the cbSize member of this structure must be set to sizeof(SP_ALTPLATFORM_INFO_V1).Platform
Specifies one of the following operating system constants.Platform constant Meaning VER_PLATFORM_WIN32_WINDOWS
Windows 95/98/Millennium (Me) versions
VER_PLATFORM_WIN32_NT
Windows NT 4.0 and later versions of the NT-based operating system
MajorVersion
Specifies the major version number of the operating system.MinorVersion
Specifies the minor version number of the operating system.ProcessorArchitecture
Specifies one of the following processor architecture constants.Processor architecture constant Meaning PROCESSOR_ARCHITECTURE_INTEL
The alternative platform is an x86-based processor architecture.
PROCESSOR_ARCHITECTURE_AMD64
The alternative platform is an x64-based processor architecture.
PROCESSOR_ARCHITECTURE_IA64
The alternative platform is an Itanium-based processor architecture.
PROCESSOR_ARCHITECTURE_ALPHA
The alternative platform is an Alpha processor architecture that is running Windows NT 4.0. Only a system that is running Windows 2000 Print Server or Windows XP Professional Print Server can specify this value.
Reserved
Must be set to zero.
Remarks
For information about the major and minor version numbers of the operating system, see the Microsoft Windows SDK documentation for GetVersionEx and OSVERSIONINFO.
Requirements
Header |
Setupapi.h (include Setupapi.h) |
See also
SetupDiGetActualSectionToInstallEx