Project: System Information Unit.
Unit: PJSysInfo.
Class: TPJOSInfo
Applies to: ~>5.0
class function ServicePack: string;
Returns a description of any operating system service pack. An empty string is returned if there is no service pack.
On the Windows 9x platform the system returns a code for each service pack. This method translates this code into a full description. On NT operating systems from NT 4 service pack 6 onwards the service pack version number is available in the ServicePackMajor and ServicePackMinor methods.
When the program is run in compatibility mode, this method will return the service pack of the "emulated" operating system.
On operating systems where CanSpoof returns False
this method will return the service pack of the installed operating system, regardless of any compatibility mode.