#ifndef _NTEXAPI_H
/**
* Query interface for checking whether a named Windows feature flag is enabled for an image's
* "born-on" Windows version — the OS version the image was originally built or linked against.
* In observed logic, the decision is based on OriginalImageVersion for the image context plus the
* caller-provided BornOnVersion. This is image-compat metadata, not simply current OS version.
* A plain OS upgrade does not automatically guarantee the result flips to enabled for an existing
* old image. It can become enabled if the relevant image/component is updated or replaced so its
* original-image version context is newer and passes the threshold. The code path only reports
* eligibility in FeatureIsEnabled and does not directly enable a feature system-wide.
* So think of it as compatibility gating tied to image provenance, not a global switch that turns on when Windows version increases.
*/
typedef struct _SYSTEM_ORIGINAL_IMAGE_FEATURE_INFORMATION_INPUT
{
ULONG Version; // Must be set to SYSTEM_ORIGINAL_IMAGE_FEATURE_INFORMATION_VERSION (1).
PWSTR FeatureName; // Wide string naming the feature to query. Not consulted by the kernel in observed builds; reserved for future use.
ULONG BornOnVersion; // Windows version number the image was originally targeted at; compared against OriginalImageVersion.
} SYSTEM_ORIGINAL_IMAGE_FEATURE_INFORMATION_INPUT, *PSYSTEM_ORIGINAL_IMAGE_FEATURE_INFORMATION_INPUT;
View code on GitHubNo description available.