kernel32: Implement GetProductInfo on top of ntdll stub.

This commit is contained in:
Alexander Nicolaysen Sørnes 2009-10-25 15:11:28 +01:00 committed by Alexandre Julliard
parent ee0b76632a
commit fca16bc519
2 changed files with 16 additions and 0 deletions

View File

@ -599,6 +599,7 @@
@ stdcall GetProcessTimes(long ptr ptr ptr ptr) @ stdcall GetProcessTimes(long ptr ptr ptr ptr)
@ stdcall GetProcessVersion(long) @ stdcall GetProcessVersion(long)
@ stdcall GetProcessWorkingSetSize(long ptr ptr) @ stdcall GetProcessWorkingSetSize(long ptr ptr)
@ stdcall GetProductInfo(long long long long ptr)
@ stub GetProductName @ stub GetProductName
@ stdcall GetProfileIntA(str str long) @ stdcall GetProfileIntA(str str long)
@ stdcall GetProfileIntW(wstr wstr long) @ stdcall GetProfileIntW(wstr wstr long)

View File

@ -186,3 +186,18 @@ DWORD WINAPI SetTermsrvAppInstallMode(BOOL bInstallMode)
FIXME("(%d): stub\n", bInstallMode); FIXME("(%d): stub\n", bInstallMode);
return 0; return 0;
} }
/***********************************************************************
* GetProductInfo (KERNEL32.@)
*
* Gives info about the current Windows product type, in a format compatible
* with the given Windows version
*
* Returns TRUE if the input is valid, FALSE otherwise
*/
BOOL WINAPI GetProductInfo(DWORD dwOSMajorVersion, DWORD dwOSMinorVersion, DWORD dwSpMajorVersion,
DWORD dwSpMinorVersion, PDWORD pdwReturnedProductType)
{
return RtlGetProductInfo(dwOSMajorVersion, dwOSMinorVersion,
dwSpMajorVersion, dwSpMinorVersion, pdwReturnedProductType);
}