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:
Retrieving local computer and user names
GetComputerNameEx
    Add comment     W32 Constants      Translate this page
The GetComputerNameEx function retrieves a NetBIOS or DNS name associated with the local computer. The names are established at system startup, when the system reads them from the registry.
Code examples:
Retrieving local computer and user names
Declaration:
BOOL GetComputerNameEx(
  COMPUTER_NAME_FORMAT NameType,
  LPTSTR lpBuffer,
  LPDWORD lpnSize
);
FoxPro declaration:
DECLARE INTEGER GetComputerNameEx IN kernel32;
    INTEGER   NameType,;
    STRING  @ lpBuffer,;
    INTEGER @ lpnSize
Parameters:
NameType
[in] Type of name to retrieve. This parameter is a value from the COMPUTER_NAME_FORMAT enumeration type.

lpBuffer
[out] Pointer to a buffer that receives a null-terminated string containing the computer name or the cluster virtual server name.

lpnSize
[in, out] On input, specifies the size of the buffer.
Return value:
If the function succeeds, the return value is a nonzero value.
Word Index links for the GetComputerNameEx :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-03-12 09:18:23
Modified: 2003-03-12 09:20:23
Visited in last 7 days: 28
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.227.127.109)
16 sec.Function: 'CeCreateFile'
Function group: 'Remote Application Programming (RAPI)'
32 sec.Function: 'CeRegEnumKeyEx'
Function group: 'Remote Application Programming (RAPI)'
48 sec.Function: 'IsValidURL'
Function group: 'URL Monikers'
1.1 min.Function: 'waveInGetNumDevs'
Function group: 'Windows Multimedia'
1.38 min.Function: 'UrlUnescape'
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
1.65 min.Function: 'OpenProcess'
Function group: 'Process and Thread'
1.92 min.Function: 'RealDriveType'
Function group: 'Shell Functions'
2.2 min.Function: 'TerminateJobObject'
Function group: 'Process and Thread'
2.47 min.Links
2.77 min.Function: 'CeWriteFile'
Function group: 'Remote Application Programming (RAPI)'
Google
Advertise here!