Partager via


GetLastErrors function

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

Retrieves the trace output of the most recent validation session.

The GetLastErrors 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

HRESULT WINAPI GetLastErrors(
  _Out_ WCHAR **ppwszTrace
);

Parameters

ppwszTrace [out]

A buffer that, on output, receives the trace output of the most recent validation session. The buffer is allocated by this function. When you have finished using the buffer, free it by calling the LocalFree function.

Return value

If the method succeeds, it returns S_OK.

If the method fails, it returns an error code. For a list of common error codes, see Common HRESULT Values.

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