ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
System functions
The system functions are as follows:
SysAndroidVersionReturns information about the Android version used by the application.
SysBatteryOptimBackgroundUsed to manage battery optimization:
  • Identifies the battery optimization mode for the current application.
  • Prompts the user to disable battery optimization for a given application on the device.
This function can be used to tell the operating system to stop preventing the application from running in the background.
SysCacheExternalStorageReturns the path of directory that will be used to store the data in cache on the external storage space of application.
SysChangeEnvironmentModifies the environment variables of the operating system found on the current computer.
SysChangeScreenResolutionModifies the resolution of a screen.
SysColorIdentifies or modifies the color of a Windows element.
SysColorResReturns the resolution of the screen in number of colors.
SysDetectLockedSessionDetects the change of lock for the Windows session.
SysDeviceInfoRetrieves information from the mobile device where the application is run
SysDirReturns the path of a system directory.
SysDirExternalStorageReturns the path of the directory that will be used to store files in the external storage space of the Android device.
SysDirStorageCardReturns the path of the root directory of the primary external storage space.
SysEnvironmentReturns the environment variables of the operating system for the current computer.
SysErrorModeModifies the display mode of errors.
SysGetDCRetrieves the DC (Device Context) of a window, control or screen.
SysGetExtLinkReturns the command linked to an extension.
SysIconAddAdds a system tray icon (in the lower-right corner of the screen).
SysIconAddImageAdds an icon that overlays the application icon in the taskbar.
SysIconBadgeReturns or modifies the value displayed in the badge associated with the icon of an iOS or Universal Windows 10 App application.
SysIconDeleteDeletes an icon from the taskbar (next to the clock).
SysIconDeleteImageDeletes the icon that overlays the application icon in the taskbar.
SysIconDisplayTooltipDisplays a tooltip for an icon found in the taskbar.
SysIconizeUsed to find out whether a window is minimized.
SysIconModifyModifies the icon file and/or the hover text of the icon in the taskbar (lower-right corner of the screen).
SysIdentifierReturns the unique identifier of the current mobile device.
SysIMEIReturns the IMEI number of an Android phone.
SysInstanceReturns the instance of a module.
SysIOSVersionReturns information about the iOS version used by the application.
SysLinkExtensionAssociates an extension (.txt, .avi, etc.) to a default execution program.
SysListScreenReturns the list of screens connected to one or more video cards.
SysListScreenResolutionReturns the possible resolutions for a screen.
SysListVideoCardReturns the name of the video cards connected to the current computer.
SysMemoryExternalStorageReturns the amount of available memory on the external storage area of the device.
SysMetricReturns the resolution of a specific element.
SysNameExeReturns the name and full path of an application.
SysNameMainScreenReturns the name of the main screen for the computer.
SysNationReturns the nation currently used by the system.
SysNbExternalStorageReturns the number of external storage spaces found on an Android device.
SysNumberScreenReturns the number of screens currently connected to the current computer.
SysPowerStatusUsed to get various information about the battery (main or secondary) of the device on which the application is running.
SysRecentDocAddAdds a file into the list of recently opened documents.
SysRecentDocListReturns the list of recently opened documents.
SysReleaseDCFrees the current DC (Device Context) retrieved by SysGetDC.
SysRemovableExternalStorageUsed to find out whether the external storage space corresponds to the movable memory (SD Card).
SysScreenOrientationAllows you to:
  • get the screen orientation of the device (Android, iOS or Universal Windows phone).
  • set the screen orientation of the device (Android phone).
SysScreenRectangleReturns the coordinates of the display rectangle corresponding to all the screens.
SysScreenResolutionReturns the resolution of a screen.
SysSerialNumReturns the IMEI number of the current device.
SysSetFocusSets focus to a window or control.
SysShutdownStops the system or closes the current Windows session.
SysSpaceReturns the physical memory space for the current computer.
SysStandbyAllows you to:
  • enable and disable the standby mode (Android)
  • display the system screen used to configure the standby mode (Universal Windows Apps)
SysStatusExternalStorageReturns the availability status of the external storage space of the device.
SysStatusStorageCardReturns the availability status of the storage card on the device.
SysThemeReturns the visual theme currently displayed on the current workstation.
SysThumbnailAddButtonAdds a button into the thumbnail of the application in the taskbar.
SysThumbnailDeleteAllDeletes all the buttons associated with the thumbnail of the application from the taskbar.
SysThumbnailDeleteButtonDeletes one of the buttons found in the thumbnail of the application from the taskbar.
SysThumbnailModifyButtonModifies one of the buttons found on the application thumbnail in the taskbar.
SysUnlinkExtensionDeletes the association between an extension and a command that was created by SysLinkExtension.
SysValidHandleChecks the validity of a window handle.
SysVersionReturns information about the PHP version used on the current server.
SysWinActiveReturns the handle of the active window or activates a window.
SysWindowsVersionReturns information about the Windows version used on the current computer.
SysWinHandleReturns the handle of a window identified by its title.
SysWinShowModifies the display status of a window.
SysWinTitleReturns the title of the window.
SysXResReturns the horizontal screen resolution.
SysYResReturns the vertical screen resolution.
Related Examples:
WD Jump lists Training (WINDEV): WD Jump lists
[ + ] JumpList in Windows 7

A JumpList is a menu accessible from the Start menu or from the application icon in the taskbar.
It is used to display the documents recently or frequently opened by the application. It is also used to display the specific tasks.

This example handles images and some operations are directly accessible from the JumpList.
Managing the Windows session Unit examples (WINDEV): Managing the Windows session
[ + ] Managing the Windows session by programming with the WLanguage functions.
This example explains how to close the Windows session, stop the system and restart the PC, etc.
WD PC Info Training (WINDEV): WD PC Info
[ + ] WD PC Info

From an application, it may be useful to find out the language of the computer on which the application is run, to directly run the application in the proper language, to find out the currency of the computer, to specify in the application the conversion of currencies into the computer currency for example...

The "WD PC Info" example explains how to retrieve the regional and linguistic options from the computer and how to modify them:
- the language,
- the country,
- the format of the dates,
- the currency symbol,
- the thousand separator,
- the 1st day of the week,
- the decimal separator,
...
The Exe functions Unit examples (WINDEV): The Exe functions
[ + ] Using the functions for managing the memory processes of WINDEV (list of processes, consumed memory, list of DLLs used, location).
It can also be used to enable an application and to find out the list of opened windows as well as their handle.
The SysMetric function Unit examples (WINDEV): The SysMetric function
[ + ] Using SysMetric.
This function is used to retrieve a set of dimensions that are configured at system level.
For example, it allows you to find out the height of the menu bar in the applications, ...
The functions specific to Windows 7 Unit examples (WINDEV): The functions specific to Windows 7
[ + ] Using WLanguage functions specific to Windows 7:
- SysIconAddImage
- SysThumbnailAddButton
- SysThumbnailDeleteAll
The system functions (screens) Unit examples (WINDEV): The system functions (screens)
[ + ] Using the SysXxx functions on the screens in order to get various information:
- Retrieve the number of screens installed on the computer
- Retrieve the graphic cards installed on the computer
- Change the resolution of a screen
- ...
WD SystemInfo Sample components (WINDEV): WD SystemInfo
[ + ] WD SystemInfo
This example explains how to use the SystemInfo component.
The following topics are presented in this example:
1/ getting information about the operating system
2/ getting information about the user
3/ the browse of the network neighborhood by programing
Summary of the example supplied with WINDEV:
This example presents the features of the SystemInfo component.
A window containing three tabs is opened when starting the example.
Each tab presents one of the component features.
1/ Getting information about the operating system
The functions supplied in the SystemInfo component (see its documentation for more details) are used to get various information about the operating system and the computer: system version, makes and number of processors, amount of physical memory installed, etc.
2/ Getting information about the user
The SystemInfo component can also be used to find out (on the NT, 2000 and XP systems only) the name of the user in session as well as the list of local groups and the list of domain groups to which he belongs.
3/ The browse of the network neighborhood by programming
The third feature proposed by the component is used to browse the network neighborhood of the computer by programming. The returned information depend on the network client used (Microsoft client or Novell client for example) and it is used to enumerate the resources found on the local network: computers, printers, shared disks, etc.

CAUTION:
The modification of the source code of the example and/or component must be performed by an experienced user only. Indeed, unexpected modifications may cause a loss of data and/or an inconstancy of your system
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/26/2024

Send a report | Local help