SystemInfo.WindowsSystemInfo
----------------------------

Queries system information on Windows.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SystemInfo](component_SystemInfo.md) | [11.2](newinversion112.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "SystemInfo.WindowsSystemInfo" { ; Native } ) 

**MBS**( **"SystemInfo.WindowsSystemInfo";** /\* Queries system information on Windows. \*/  
**$Native**) /\* Optional; Pass 0 for current environment or 1 for native environment.  
Default is 0.  
If there is no emulation, both results are identical.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Native | Pass 0 for current environment or 1 for native environment.   Default is 0.   If there is no emulation, both results are identical. | 0 | Optional |

### Result

Returns JSON or error.

### Description

Queries system information on Windows.  
By passing in no argument or 0, you get the current configuration for the running application. Pass 1 to get native architecture information for emulated applications.  
The JSON object returned contains the following keys:  
  
| ProcessorArchitecture | Processor architecture as number. |
|---|---|
| ProcessorArchitectureText | Processor architecture as text. Value is INTEL, ARM, IA64, AMD64, X86OnAMD64, ARM64, X86OnArm64 or Unknown. |
| Bits | 32-bit or 64-bit |
| PageSize | The page size and the granularity of page protection and commitment. |
| ActiveProcessorMask | A mask representing the set of processors configured into the system. Bit 0 is processor 0; bit 31 is processor 31. |
| NumberOfProcessors | The number of logical processors in the current group. |
| ProcessorType | The processor type as number. |
| ProcessorTypeText | The processor type as text: Intel386, Intel486, IntelPentium, IA64 or X8664. |
| AllocationGranularity | The granularity at which virtual memory can be allocated. |
| ProcessorLevel | The architecture-dependent processor level. |
| ProcessorRevision | The architecture-dependent processor revision. |

  
See [SystemInfo.MachoArchInfo](SystemInfoMachoArchInfo.md) function for similar information for macOS.  
Seems like Intel on ARM 64-bit emulation lies and doesn't reveal the real native architecture. Use [SystemInfo.WindowsMachineInfo](SystemInfoWindowsMachineInfo.md) to determinate whether you run on ARM in emulation.  
### Examples

Query in FileMaker in 64-bit on Intel 64-bit computer:

 MBS ( "SystemInfo.WindowsSystemInfo" )  
<small>  
Example result:   
{ "ProcessorArchitecture" : 9 , "ProcessorArchitectureText" : "AMD64" , "Bits" : 64 , "PageSize" : 4096 , "ActiveProcessorMask" : 3 , "NumberOfProcessors" : 2 , "ProcessorType" : 8664 , "ProcessorTypeText" : "X8664" , "AllocationGranularity" : 65536 , "ProcessorLevel" : 6 , "ProcessorRevision" : 40461 } </small>Query in FileMaker 18 in 32-bit on Intel 64-bit computer:

 MBS ( "SystemInfo.WindowsSystemInfo"; 0 )  
<small>  
Example result:   
{ "ProcessorArchitecture" : 0 , "ProcessorArchitectureText" : "INTEL" , "Bits" : 32 , "PageSize" : 4096 , "ActiveProcessorMask" : 3 , "NumberOfProcessors" : 2 , "ProcessorType" : 586 , "ProcessorTypeText" : "IntelPentium" , "AllocationGranularity" : 65536 , "ProcessorLevel" : 6 , "ProcessorRevision" : 40461 } </small>Query FileMaker on a Windows ARM notebook:

 MBS ( "SystemInfo.WindowsSystemInfo"; 0 )  
// shows emulated Intel architecture.  
<small>  
Example result:   
{ "ProcessorArchitecture" : 9 , "ProcessorArchitectureText" : "AMD64" , "Bits" : 64 , "PageSize" : 4096 , "ActiveProcessorMask" : 3 , "NumberOfProcessors" : 2 , "ProcessorType" : 8664 , "ProcessorTypeText" : "X8664" , "AllocationGranularity" : 65536 , "ProcessorLevel" : 15 , "ProcessorRevision" : 1034 } </small>### See also

- [SystemInfo.LinuxSystemInfo](SystemInfoLinuxSystemInfo.md)
- [SystemInfo.MachoArchInfo](SystemInfoMachoArchInfo.md)
- [SystemInfo.WindowsMachineInfo](SystemInfoWindowsMachineInfo.md)

### Release notes

- **Version 11.2**
    - Added [SystemInfo.WindowsSystemInfo](https://www.mbsplugins.eu/SystemInfoWindowsSystemInfo.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 11.2](https://www.mbsplugins.de/archive/2021-05-26/New_in_MBS_FileMaker_Plugin_11/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.2](https://www.mbsplugins.de/archive/2021-05-18/Neues_MBS_FileMaker_Plugin_112/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.2 - More than 6500 Functions In One Plugin](https://www.mbsplugins.de/archive/2021-05-18/MBS_FileMaker_Plugin_112_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.2pr1](https://www.mbsplugins.de/archive/2021-04-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 26th March 2021 , last changed 28th January 2023

  
[SystemInfo.WindowsMachineInfo](SystemInfoWindowsMachineInfo.md) - [SystemInfo.isARM](SystemInfoisARM.md)

[HTML Version](SystemInfoWindowsSystemInfo.shtml)