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:
Converting path to original case
One more way to retrieve environment strings
ExpandEnvironmentStrings
..msdn    Add comment     W32 Constants      Translate this page
Expands environment-variable strings and replaces them with their defined values.
Code examples:
Converting path to original case
One more way to retrieve environment strings
Declaration:
DWORD ExpandEnvironmentStrings(
  LPCTSTR lpSrc, // string with envir.variables
  LPTSTR lpDst,  // string with expanded strings 
  DWORD nSize    // max. characters in expanded string
);
FoxPro declaration:
DECLARE INTEGER ExpandEnvironmentStrings IN kernel32;
    STRING   lpSrc,;
    STRING @ lpDst,;
    INTEGER  nSize
Parameters:
lpSrc
[in] Pointer to a null-terminated string that contains environment-variable strings of the form: %variableName%.

lpDst
[out] Pointer to a buffer to receive a copy of the source buffer after all environment-variable name substitutions have been performed.

nSize
[in] Specifies the maximum number of TCHARs that can be stored in the buffer pointed to by the lpDst parameter, including the terminating null character.
Return value:
If the function succeeds, the return value is the number of TCHARs stored in the destination buffer, including the terminating null character.
My comment:
See also GetEnvironmentStrings, GetSystemInfo.
Word Index links for the ExpandEnvironmentStrings :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-09-04 12:00:00
Modified: 2001-11-26 16:03:34
Visited in last 7 days: 40
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.145.95.149)
10 sec.Function: 'GdipGetSmoothingMode'
21 sec.Function: 'GetFileType'
33 sec.Function: 'GetKeyboardState'
43 sec.Function: 'GetLastError'
53 sec.Function: 'GdipSetPathGradientCenterColor'
1.03 min.Function: 'CertFindCertificateInStore'
1.22 min.Function: 'GetAdaptersInfo'
1.42 min.Function: 'GetKeyboardLayout'
1.58 min.Function: 'GetKeyboardType'
1.77 min.Function: 'GdipSetPageScale'
Google
Advertise here!