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 constants
ConstantDescriptionDetailsUsed by
metCxBorderElement whose resolution must be definedWidth of fixed window borderSysMetric
metCxCursorElement whose resolution must be definedCursor widthSysMetric
metCxDoubleClkElement whose resolution must be definedWidth of rectangle surrounding the location of first click during a double clickSysMetric
metCxFixedFrameElement whose resolution must be definedWidth of window border (WS_DLGFRAME style)SysMetric
metCxFullScreenElement whose resolution must be definedWidth of client area in a full-screen windowSysMetric
metCxHScrollElement whose resolution must be definedWidth of arrow found on a horizontal scrollbarSysMetric
metCxIconElement whose resolution must be definedWidth of iconsSysMetric
metCxIconSpacingElement whose resolution must be definedWidth of rectangles used to position the icons one beside anotherSysMetric
metCxMinElement whose resolution must be definedMinimum width of windowSysMetric
metCxMinTrackElement whose resolution must be definedMinimum width when a window is resized by the userSysMetric
metCxScreenElement whose resolution must be definedWidth of screenSysMetric
metCxSizeElement whose resolution must be definedWidth of buttons found in the title bar of a window.SysMetric
metCxSizeFrameElement whose resolution must be definedWidth of window border that can be modifiedSysMetric
metCxVScrollElement whose resolution must be definedWidth of image of arrow found on the vertical scrollbarSysMetric
metCxVThumbElement whose resolution must be definedWidth of box (in inches) in the horizontal scrollbarSysMetric
metCyBorderElement whose resolution must be definedHeight of fixed window borderSysMetric
metCyCaptionElement whose resolution must be definedHeight of window titleSysMetric
metCyCursorElement whose resolution must be definedHeight of cursorSysMetric
metCyDoubleClkElement whose resolution must be definedHeight of rectangle surrounding the location of first click during a double clickSysMetric
metCyFixedFrameElement whose resolution must be definedHeight of border when the window style is WS_DLGFRAMESysMetric
metCyFullScreenElement whose resolution must be definedWidth of client area in a full-creen windowSysMetric
metCyHScrollElement whose resolution must be definedHeight of arrow found on a horizontal scrollbarSysMetric
metCyIconElement whose resolution must be definedHeight of iconsSysMetric
metCyIconSpacingElement whose resolution must be definedHeight of rectangles used to position the icons one beside anotherSysMetric
metCyKanjiElement whose resolution must be definedHeight of "Kanji" windowSysMetric
metCyMenuElement whose resolution must be definedHeight of bar for the drop-down menuSysMetric
metCyMinElement whose resolution must be definedMinimum height of windowSysMetric
metCyMinTrackElement whose resolution must be definedMinimum height when a window is resized by the user.SysMetric
metCyScreenElement whose resolution must be definedHeight of screenSysMetric
metCySizeElement whose resolution must be definedHeight of images found in the title barSysMetric
metCySizeFrameElement whose resolution must be definedHeight of window border that can be modifiedSysMetric
metCyVScrollElement whose resolution must be definedWidth (in pixels) of vertical scrollbars.SysMetric
metCyVThumbElement whose resolution must be definedHeight of box (in inches) in the horizontal scrollbarSysMetric
metDBCSEnabledElement whose resolution must be definedDifferent from zero if the current version of Windows uses characters coded on 2 bits; otherwise, this value returns zeroSysMetric
metMenuDropAlignmentElement whose resolution must be definedMenu for aligning "Popups"SysMetric
metMousePresentElement whose resolution must be definedDifferent from zero if the mouse driver is installedSysMetric
metPenWindowsElement whose resolution must be definedHandle (identifier) of "Pen Windows" DLL if this handle is installedSysMetric
metSwapButtonElement whose resolution must be definedDifferent from zero if the left and right mouse buttons are reversedSysMetric
Orient0Screen orientationDefault orientationSysScreenOrientation
Orient90Screen orientationThe screen is oriented at 90°SysScreenOrientation
Orient180Screen orientationThe screen is oriented at 180°SysScreenOrientation
Orient270Screen orientationThe screen is oriented at 270°SysScreenOrientation
sboNotOptimizedBattery optimization managementBattery optimization is not enabled for the application. SysBatteryOptimBackground
sboOptimizedBattery optimization managementBattery optimization is enabled for the application. SysBatteryOptimBackground
sboRequestDisableBattery optimization managementShows a system message asking the user to disable battery optimization for a given application. If battery optimization is disabled, there is no action.SysBatteryOptimBackground
sboSystemSettingsBattery optimization managementOpens the settings window containing the list of applications for which battery optimization disabled.SysBatteryOptimBackground
scAccentElement whose color must be retrievedText highlightingSysColor
scActiveBorderWindows element whose color must be retrieved and/or modifiedBorder of the active windowSysColor
scActiveCaptionWindows element whose color must be retrieved and/or modifiedActive title barSysColor
scAppWorkSpaceWindows element whose color must be retrieved and/or modifiedWorkspace of MDI applicationsSysColor
scBackgroundWindows element whose color must be retrieved and/or modifiedDesktopSysColor
scBtnFaceWindows element whose color must be retrieved and/or modifiedButton borderSysColor
scBtnHighlightWindows element whose color must be retrieved and/or modifiedSelected button (corresponds to the 3D buttons of Windows 95)SysColor
scBtnShadowWindows element whose color must be retrieved and/or modifiedShadow of buttonsSysColor
scBtnTextWindows element whose color must be retrieved and/or modifiedText of text buttonsSysColor
scCaptionTextWindows element whose color must be retrieved and/or modifiedTitle bar textSysColor
scGrayTextWindows element whose color must be retrieved and/or modifiedGrayed textSysColor
scHighLightWindows element whose color must be retrieved and/or modifiedBackground of selected objectSysColor
scInactiveBorderWindows element whose color must be retrieved and/or modifiedBorder of the inactive windowSysColor
scInactiveCaptionWindows element whose color must be retrieved and/or modifiedInactive title barSysColor
scInactiveCaptionTextWindows element whose color must be retrieved and/or modifiedInactive title barSysColor
scMenuWindows element whose color must be retrieved and/or modifiedBackground of menusSysColor
scMenuTextWindows element whose color must be retrieved and/or modifiedText of menusSysColor
scScrollBarWindows element whose color must be retrieved and/or modifiedScrollbarSysColor
scTextHighlightWindows element whose color must be retrieved and/or modifiedText of selected objectSysColor
scWindowWindows element whose color must be retrieved and/or modifiedWindow backgroundSysColor
scWindowFrameWindows element whose color must be retrieved and/or modifiedWindow borderSysColor
scWindowTextWindows element whose color must be retrieved and/or modifiedWindow textSysColor
smeFailCriticalErrorDisplay mode of errorsNo dialog box for the critical errorsSysErrorMode
smeGPFDisplay mode of errorsNo white panel during a general protection faultSysErrorMode
smeOpenFileErrorDisplay mode of errorsNo dialog box for the file errorsSysErrorMode
srAccountPicturesSystem directoryDirectory containing the images of user account.SysDir
srAdminToolsSystem directoryDirectory containing the management toolsSysDir
srAppDataSystem directoryDirectory used by the applications for storing dataSysDir
srApplicationShortcutsSystem directoryDirectory containing the application shortcutsSysDir
srCDBurnSystem directoryDirectory containing the data to burnSysDir
srCommonAdminToolsSystem directoryDirectory containing the management toolsSysDir
srCommonAppDataSystem directoryDirectory used by the applications for storing dataSysDir
srCommonDesktopSystem directoryDirectory corresponding to the Windows desktopSysDir
srCommonFavoritesSystem directoryDirectory containing the "Favorites"SysDir
srCommonMusicSystem directoryDirectory containing the common musicSysDir
srCommonMyDocumentsSystem directoryDirectory containing the documents of userSysDir
srCommonPicturesSystem directoryDirectory containing the shared imagesSysDir
srCommonProgramFilesSystem directoryInstallation directory for elements common to several applicationsSysDir
srCommonProgramsSystem directoryDirectory containing the "Program" submenu of the "Start" menuSysDir
srCommonStartMenuSystem directoryDirectory containing the shortcuts of "Start" menuSysDir
srCommonStartupSystem directoryDirectory containing the applications that will be automatically started when the system or a session is startedSysDir
srCommonTemplatesSystem directoryDirectory of document templatesSysDir
srCommonVideoSystem directoryDirectory containing the shared videosSysDir
srContactsSystem directoryDirectory containing the contactsSysDir
srCookiesSystem directoryDirectory containing the cookies generated by the navigation on InternetSysDir
srDesktopSystem directoryDirectory corresponding to the Windows desktopSysDir
srDeviceMetadataStoreSystem directoryDirectory containing the metadata storeSysDir
srdlDateList of last documents openedIn addition to the requested information, <Result> will contain the date the file was last accessed in YYYYMMDDHHmmSS format (separated from the element path by a tab). SysRecentDocList
srdlDefaultList of last documents opened<Result> contains the list of last opened documents (file path corresponding to the opened document). SysRecentDocList
srdlSortDateList of last documents opened<Result> contains the list of last accessed directories and last opened documents (separated by CR), sorted from the most recent one to the oldest one. SysRecentDocList
srDocumentsLibrarySystem directoryDirectory containing the library of documents.SysDir
srDownloadsSystem directoryDirectory containing all the downloads performed by the user.SysDir
srFavoritesSystem directoryDirectory containing the "Favorites"SysDir
srFontsSystem directoryDirectory of the fonts installed on the systemSysDir
srGameTasksSystem directoryDirectory containing the game tasksSysDir
srHistorySystem directoryDirectory containing the historySysDir
srImplicitAppShortcutsSystem directoryDirectory containing the shortcuts of implicit applicationsSysDir
srInternetCacheSystem directoryDirectory used by Internet Explorer to store the last elements usedSysDir
srLibrariesSystem directoryDirectory containing the librariesSysDir
srLinksSystem directoryDirectory containing the linksSysDir
srLocalAppDataSystem directoryDirectory used by the applications for storing dataSysDir
srLocalAppDataLowSystem directoryDirectory containing the rules of application data (specific to the computer rather than to a user)SysDir
srMusicLibrarySystem directoryDirectory containing the music librarySysDir
srMyDocumentsSystem directoryDirectory containing the documents of userSysDir
srMyMusicSystem directoryDirectory containing the music files of userSysDir
srMyPicturesSystem directoryDirectory for storing imagesSysDir
srMyVideosSystem directoryDirectory for storing videosSysDir
srNetworkShortcutsSystem directoryDirectory containing the network shortcutsSysDir
srOriginalImagesSystem directoryDirectory containing the original imagesSysDir
srPhotoAlbumsSystem directoryDirectory containing the photo albums.SysDir
srPicturesLibrarySystem directoryDirectory containing the library of imagesSysDir
srPlaylistsSystem directoryDirectory containing the playlists.SysDir
srPrinterShortcutsSystem directoryDirectory containing the printer shortcutsSysDir
srProfileSystem directoryDirectory corresponding to the user profileSysDir
srProgramFilesSystem directoryApplication installation directorySysDir
srProgramFilesCommonX64System directoryDirectory for installing the elements common to several 64-bit applicationsSysDir
srProgramFilesCommonX86System directoryDirectory for installing the elements common to several x86 applicationSysDir
srProgramFilesX64System directoryInstallation directory of 64-bit applicationsSysDir
srProgramFilesX86System directoryInstallation directory of x86 applicationsSysDir
srProgramsSystem directoryDirectory containing the "Program" submenu of the "Start" menuSysDir
srPublicSystem directoryDirectory containing the public dataSysDir
srPublicDownloadsSystem directoryDirectory containing all the downloads common to the usersSysDir
srPublicGameTasksSystem directoryDirectory containing the public game tasksSysDir
srPublicLibrariesSystem directoryDirectory containing the public librariesSysDir
srPublicRingtonesSystem directoryDirectory containing the common ring tones of usersSysDir
srPublicUserTilesSystem directoryDirectory containing the images of all user accountsSysDir
srQuickLaunchSystem directoryDirectory containing the shortcuts for the launch barSysDir
srRecentSystem directoryShortcuts to the last documents usedSysDir
srRecordedTVLibrarySystem directoryDirectory containing the library of TV recordingsSysDir
srResourcesSystem directoryDirectory containing the resourcesSysDir
srResourcesLocalizedSystem directoryDirectory containing the localized resourcesSysDir
srRingtonesSystem directoryDirectory containing the ring tonesSysDir
srRoamedTileImagesSystem directoryDirectory containing the images for the roaming tilesSysDir
srRoamingTilesSystem directoryDirectory containing the data for the roaming tilesSysDir
srSampleMusicSystem directoryDirectory containing the music samplesSysDir
srSamplePicturesSystem directoryDirectory containing the image samplesSysDir
srSamplePlaylistsSystem directoryDirectory containing the playlist samplesSysDir
srSampleVideosSystem directoryDirectory containing the video samplesSysDir
srSavedGamesSystem directoryDirectory containing the backups of gamesSysDir
srSavedSearchesSystem directoryDirectory containing the backups of searchesSysDir
srScreenshotsSystem directoryDirectory that contains the screenshotsSysDir
srSendToSystem directoryDirectory corresponding to the "Send to" menuSysDir
srSidebarPartsSystem directoryDirectory containing the gadgetsSysDir
srStartMenuSystem directoryDirectory containing the shortcuts of "Start" menuSysDir
srStartupSystem directoryDirectory containing the applications that will be automatically started when the system or a session is startedSysDir
srSystemSystem directorySystem directorySysDir
srSystemX86System directoryx86 system directorySysDir
srTemplatesSystem directoryDirectory of document templatesSysDir
srUserPinnedSystem directoryDirectory containing the shortcuts pinned by the user.SysDir
srUserProfilesSystem directoryDirectory containing the user profilesSysDir
srUserProgramFilesSystem directoryInstallation directory of user applicationsSysDir
srUserProgramFilesCommonSystem directoryInstallation directory for elements common to several user applicationsSysDir
srVideosLibrarySystem directoryDirectory containing the library of videosSysDir
srWindowsSystem directoryDirectory of WindowsSysDir
sseAppDocumentDirectory on the external storage space.Application documents directory.SysDirExternalStorage
sseAppDownloadDirectory on the external storage space.Application downloads directory.SysDirExternalStorage
sseAppFileDirectory on the external storage space.Directory of files specific to the application.SysDirExternalStorage
sseAppMusicDirectory on the external storage space.Application music files directory.SysDirExternalStorage
sseAppPhotoDirectory on the external storage space.Application pictures directory.SysDirExternalStorage
sseAppVideoDirectory on the external storage space.Application videos directory.SysDirExternalStorage
sseAvailableCurrent status of the storage card on the device.You have the ability to read and write on the external storage space.SysStatusExternalStorage
ssePublicDirectory on the external storage space.Root directory of external storage space.SysDirExternalStorage
ssePublicDocumentDirectory on the external storage space.Directory of shared documents.SysDirExternalStorage
ssePublicDownloadDirectory on the external storage space.Directory of shared downloaded files.SysDirExternalStorage
ssePublicMusicDirectory on the external storage space.Directory of shared music files.SysDirExternalStorage
ssePublicPhotoDirectory on the external storage space.Directory of shared pictures.SysDirExternalStorage
ssePublicVideoDirectory on the external storage space.Directory of shared videos.SysDirExternalStorage
sseReadOnlyCurrent status of the storage card on the device.You have the ability to read on the external storage space.SysStatusExternalStorage
sseUnavailableCurrent status of the storage card on the device.You cannot read and write on the external storage space.SysStatusExternalStorage
swsActivateWindow statusActivates an inactive windowSysWinShow
swsHideWindow statusMakes the window invisible and activates another windowSysWinShow
swsIconicWindow statusMinimizes the windowSysWinShow
swsMaximizeWindow statusMaximizes the windowSysWinShow
swsMinimizeWindow statusMinimizes the windowSysWinShow
swsNormalWindow statusDisplays the window in its initial size and positionSysWinShow
swsRefreshWindow statusRefreshes the windowSysWinShow
swsRestoreWindow statusRestores a window to its initial size and positionSysWinShow
swsVisibleWindow statusMakes a window visible and displays it with its initial size and positionSysWinShow
sysAllUsersCounts the instances of the executable launched by all users. ExeRunning
sysAllUsersExtension/Command associationAssociation for all the users.SysLinkExtension,
SysUnlinkExtension,
SysGetExtLink
sysBatteryPower modePowered by batterySysStandby
sysbtnActiveMode for managing the thumbnail buttonsButton activeSysThumbnailAddButton, SysThumbnailModifyButton
sysbtnCloseThumbnailMode for managing the thumbnail buttonsClicking the button closes the thumbnail of the application.SysThumbnailAddButton, SysThumbnailModifyButton
sysbtnGrayedMode for managing the thumbnail buttonsButton grayed out.SysThumbnailAddButton, SysThumbnailModifyButton
sysbtnInactiveMode for managing the thumbnail buttonsThe button cannot be clicked (this constant can be used only when the button is used as notification icon).SysThumbnailAddButton, SysThumbnailModifyButton
sysbtnInvisibleMode for managing the thumbnail buttonsThe button is invisible (its location is empty in the button bar).SysThumbnailAddButton, SysThumbnailModifyButton
sysbtnNoBackgroundMode for managing the thumbnail buttonsOnly the button icon is drawn (not the button border). This constant can be used when the icon contains the border drawing.SysThumbnailAddButton, SysThumbnailModifyButton
sysCardAvailableStatus of storage cardYou have the ability to read and write on the storage card.SysStatusStorageCard
sysCardReadOnlyStatus of storage cardYou can only read on the storage card.SysStatusStorageCard
sysCardUnavailableStatus of storage cardYou cannot read or write on the storage card.SysStatusStorageCard
sysCurrentUserCounts the instances of the executable launched by the current user. ExeRunning
sysCurrentUserExtension/Command associationAssociation for the current userSysLinkExtension,
SysUnlinkExtension,
SysGetExtLink
sysEnvGlobalModification mode of systemGlobal change for the system: the current process as well as all the new processes of the system are affected.
Remark: To use this constant, the user must be administrator.
SysChangeEnvironment
sysEnvProcessModification mode of systemChange of current process only.SysChangeEnvironment
sysEnvUserModification mode of systemChange performed for the current user only: the current process as well as all the new processes started by the user are affected.SysChangeEnvironment
sysFreeProgramSpaceType of memoryUnused physical memory spaceSysSpace
sysFreeStorageSpaceType of memoryAvailable storage spaceSysSpace
SysMemoryExternalStorage
sysLockSessionShutdown modeLocks the current sessionSysShutdown
sysLogoffShutdown modeEnds the current sessionSysShutdown
sysMainsPowerPower modePowered by the mains.SysStandby
sysManufacturerRequested informationManufacturer of mobile device. SysDeviceInfo
sysModelRequested informationModel of mobile device. SysDeviceInfo
New in version 2024
sysNativeProcessor
Type of informationCurrent computer processor.SysWindowsVersion
sysPoweroffShutdown modeStops the system and turns the power offSysShutdown
sysPoweroffScreenShutdown modeTurns the power of the screen offSysShutdown
sysPoweronScreenShutdown modeDoes not switch the power off for the screenSysShutdown
sysProcessorType of informationProgram execution mode.SysWindowsVersion
sysProgramSpaceType of memoryPhysical memory spaceSysSpace
sysRebootShutdown modeStops and restarts the system.SysShutdown
sysSessionLockedWindows sessionWindows session locked.SysDetectLockedSession
sysSessionUnlockedWindows sessionWindows session unlocked.SysDetectLockedSession
sysStandbyActiveStandbyEnable the standby modeSysStandby
sysStandbyInactiveStandbyDisable the standby modeSysStandby
sysStorageSpaceType of memorySpace used for storageSysSpace
SysMemoryExternalStorage
sysTooltipTypeCustomType of the tooltipCustom tooltip: You have the ability to define the icon displayed in the tooltip.SysIconDisplayTooltip
sysTooltipTypeDefaultType of the tooltipDefault tooltip. SysIconDisplayTooltip
sysTooltipTypeErrorType of the tooltipError tooltip.SysIconDisplayTooltip
sysTooltipTypeInfoType of the tooltipInfo tooltip.SysIconDisplayTooltip
sysTooltipTypeWarningType of the tooltipWarning tooltip.SysIconDisplayTooltip
sysVersionApiLevelType of informationAPI Level of AndroidSysAndroidVersion
sysVersionBuildType of informationWindows compilation numberSysWindowsVersion
sysVersionInfoType of informationSpecific information about the Windows versionSysWindowsVersion
sysVersionNumberType of informationVersion number of WindowsSysWindowsVersion,
SysAndroidVersion
sysVersionPlatformType of informationPlatform of the systemSysWindowsVersion,
SysAndroidVersion
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/15/2023

Send a report | Local help