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:
How to display Windows On-Screen Keyboard
How to make application automatically close all documents it opened
Loading a string resource from an executable file
Obtaining the System and Windows folder names
Retrieving a handle to DLL and address of an exported function in it
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Using LoadLibrary
Using Shell for performing operations on files
GetSystemDirectory
..msdn    Add comment     W32 Constants      Translate this page
The GetSystemDirectory function retrieves the path of the system directory. The system directory contains such files as dynamic-link libraries, drivers, and font files.
Code examples:
How to make application automatically close all documents it opened
How to display Windows On-Screen Keyboard
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Loading a string resource from an executable file
Retrieving a handle to DLL and address of an exported function in it
Using Shell for performing operations on files
Obtaining the System and Windows folder names
Using LoadLibrary
Declaration:
UINT GetSystemDirectory(
  LPTSTR lpBuffer,  // buffer for system directory
  UINT uSize        // size of directory buffer
);
FoxPro declaration:
DECLARE INTEGER GetSystemDirectory IN kernel32;
As GetSystemDirectoryA;
    STRING @ lpBuffer,;
    INTEGER  nSize
Parameters:
lpBuffer
[out] Pointer to the buffer to receive the null-terminated string containing the path

uSize
[in] Specifies the maximum size of the buffer
Return value:
If the function succeeds, the return value specifies the number of characters written to the buffer, not including the terminating null character
Usage:
cBuffer = REPLICATE(CHR(0), 260)

nSizeRet = GetSystemDirectory(@cBuffer, LEN(m.cBuffer))

cBuffer = SUBSTR(m.cBuffer, 1, nSizeRet)
? cBuffer
My comment:
See also: GetWindowsDirectory, SHGetFolderPath, GetSystemWow64Directory
Word Index links for the GetSystemDirectory :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-12 12:00:00
Modified: 2009-01-07 13:43:01
Visited in last 7 days: 90
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.221.93.187)
13 sec.
Function group: 'Dialog Box'
28 sec.Function: 'mixerClose'
41 sec.Function: 'ExpandEnvironmentStrings'
56 sec.Function: 'RegisterClipboardFormat'
1.15 min.Function: 'IsWow64Process'
1.37 min.Function: 'FtpSetCurrentDirectory'
1.57 min.Function: 'GdipCreateBitmapFromGraphics'
1.78 min.Function: 'inet_addr'
2.02 min.Function: 'LoadString'
2.25 min.Function: 'GetMenu'
Google
Advertise here!