Using Win32 functions in Visual FoxPro Image Gallery
System Information
..msdn
ExpandEnvironmentStrings
GetComputerName
GetComputerNameEx
GetComputerObjectName
GetCurrentHwProfile
GetKeyboardType
GetNativeSystemInfo
GetProductInfo
GetSysColor
GetSystemDirectory
GetSystemInfo
GetSystemMetrics
GetSystemRegistryQuota
GetSystemWow64Directory
GetUserName
GetUserNameEx
GetVersion
GetVersionEx
GetWindowsDirectory
IsNetworkAlive
SetComputerName
SetSysColors
SystemParametersInfo
Code examples:
GetProductInfo
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the product type for the operating system on the local computer, and maps the type to the product types supported by the specified operating system.
Code examples:
Declaration:
BOOL WINAPI GetProductInfo(
  __in   DWORD dwOSMajorVersion,
  __in   DWORD dwOSMinorVersion,
  __in   DWORD dwSpMajorVersion,
  __in   DWORD dwSpMinorVersion,
  __out  PDWORD pdwReturnedProductType
);
FoxPro declaration:
DECLARE INTEGER GetProductInfo IN kernel32;
    LONG dwOSMajorVersion,;
    LONG dwOSMinorVersion,;
    LONG dwSpMajorVersion,;
    LONG dwSpMinorVersion,;
    LONG @pdwReturnedProductType
Parameters:
dwOSMajorVersion
The major version number of the operating system. The minimum value is 6.

dwOSMinorVersion
The minor version number of the operating system. The minimum value is 0.

dwSpMajorVersion
The major version number of the operating system service pack. The minimum value is 0.

dwSpMinorVersion
The minor version number of the operating system service pack. The minimum value is 0.

pdwReturnedProductType
The product type. This parameter cannot be NULL.
Return value:
If the function succeeds, the return value is a nonzero value.
Usage:
#DEFINE PRODUCT_ULTIMATE 1
#DEFINE PRODUCT_HOME_PREMIUM 3

LOCAL nProdType
nProdType=0
? GetProductInfo(6,0,0,0, @nProdType)
? nProdType
My comment:
The combination of the dwOSMajorVersion, dwOSMinorVersion, dwSpMajorVersion, and dwSpMinorVersion parameters describes the maximum target operating system version for the application.

If the software license is invalid or expired, the function succeeds but the pdwReturnedProductType parameter is set to PRODUCT_UNLICENSED (0xABCDABCD).

Requires Windows Vista. To retrieve product type information on versions of Windows prior to 6.0.0.0, use the GetVersionEx function.
Word Index links for the GetProductInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2007-12-26 14:38:35
Modified: 2007-12-26 14:44:45
Visited in last 7 days: 15
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.18.114)
13 sec.Articles
24 sec.Project
38 sec.Function: 'getsockopt'
Function group: 'Windows Sockets 2 (Winsock)'
49 sec.
Function group: 'Windows Controls'
1 min.Function: 'GetFullPathName'
Function group: 'File Management'
1.2 min.Function: 'AVIStreamRelease'
Function group: 'Windows Multimedia'
1.4 min.Function: 'BitBlt'
Function group: 'Bitmap'
1.57 min.Function: 'DeleteDC'
Function group: 'Device Context'
1.75 min.Function: 'midiOutClose'
Function group: 'Windows Multimedia'
1.95 min.Links
Google
Advertise here!