Using Win32 functions in Visual FoxPro Image Gallery
Process and Thread
..msdn
AssignProcessToJobObject
CommandLineToArgvW
CreateJobObject
CreateProcess
CreateProcessAsUser
CreateProcessWithLogonW
ExitProcess
FreeEnvironmentStrings
GetCommandLine
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetEnvironmentStrings
GetEnvironmentVariable
GetPriorityClass
GetProcessIoCounters
GetProcessTimes
GetProcessVersion
GetStartupInfo
GetThreadPriority
IsWow64Process
OpenProcess
RegisterServiceProcess
SetEnvironmentVariable
SetPriorityClass
SetThreadPriority
Sleep
TerminateJobObject
TerminateProcess
WinExec
Code examples:
Reading and setting Environment variables
GetEnvironmentVariable
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the value of the specified variable from the environment block of the calling process. The value is in the form of a null-terminated string of characters.
Code examples:
Reading and setting Environment variables
Declaration:
DWORD GetEnvironmentVariable(
  LPCTSTR lpName,  // environment variable name
  LPTSTR lpBuffer, // buffer for variable value
  DWORD nSize      // size of buffer
);
FoxPro declaration:
DECLARE INTEGER GetEnvironmentVariable IN kernel32;
    STRING   lpName,;
    STRING @ lpBuffer,;
    INTEGER  nSize
Parameters:
lpName
[in] Pointer to a null-terminated string that specifies the environment variable.

lpBuffer
[out] Pointer to a buffer to receive the value of the specified environment variable.

nSize
[in] Specifies the size, in TCHARs, of the buffer pointed to by the lpBuffer parameter.
Return value:
If the function succeeds, the return value is the number of TCHARs stored into the buffer pointed to by lpBuffer, not including the terminating null character.
Word Index links for the GetEnvironmentVariable :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-09-18 12:00:00
Modified: 2001-11-26 16:03:41
Visited in last 7 days: 34
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.91.171.137)
13 sec.Function: 'CreateFile'
28 sec.Function: 'UnhookWindowsHookEx'
43 sec.Function: 'sendto'
58 sec.Function: 'IsClipboardFormatAvailable'
1.18 min.Function: 'CeRegSetValueEx'
1.43 min.Function: 'GdipRotateMatrix'
1.68 min.Function: 'CM_Connect_Machine'
1.98 min.Function: 'GetWorldTransform'
2.22 min.Function: 'CeCreateFile'
2.48 min.
Function group: 'HTTP Functions (WinHTTP)'
Google
Advertise here!