次の方法で共有


SetPartnerID function

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

Sets the value of the partner ID used for reporting Windows Genuine Advantage (WGA) status.

The SetPartnerID 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 __stdcall SetPartnerID(
   int nPartnerID
);

Parameters

nPartnerID

The partner ID to be set.

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