Share via


LegitCheck function

[This function is no longer available for use as of Windows 7.]

Returns a value that indicates whether the copy of Windows running on the current system is genuine.

The LegitCheck function is not declared in a public header and has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to LegitLib.dll.

Syntax

int __stdcall LegitCheck(void);

Parameters

This function has no parameters.

Return value

This function returns zero if the copy of Windows running on the current system is genuine. If the value of this parameter is any other value, the copy of Windows running on the current system is not genuine.

Remarks

The Windows Genuine Advantage (WGA) functions are available only on Windows Vista and Windows XP installations that have been validated by clicking Validate Windows on https://www.microsoft.com/genuine.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
None supported
End of client support
Windows Vista
End of server support
None supported
DLL
LegitLib.dll

See also

Windows Genuine Advantage API Functions