Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SystemInformation" in [All]

netapi32

.

        string computerName = SystemInformation.ComputerName;

kernel32

.

To use with an handle to a thread kernel object. (Possibly obtained by NtQuerySystemInformation with SYSTEM_INFORMATION_CLASS.SystemHandleInformation)

.

To use with an handle to a thread kernel object. (Possibly obtained by NtQuerySystemInformation with SYSTEM_INFORMATION_CLASS.SystemHandleInformation)

shell32

.

        abd.rc.bottom = SystemInformation.PrimaryMonitorSize.Height

.

        abd.rc.right = SystemInformation.PrimaryMonitorSize.Width

.

        abd.rc.right = SystemInformation.PrimaryMonitorSize.Width

.

        abd.rc.bottom = SystemInformation.PrimaryMonitorSize.Height

ntdll

.

public static extern NtStatus NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS InfoClass, IntPtr Info, uint Size, out uint Length);

.

Declare Function NtQuerySystemInformation Lib "ntdll.dll" (TODO) As TODO

.

public static IntPtr NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS infoClass, uint infoLength = 0)

.

        var result = NtQuerySystemInformation(infoClass, infoPtr, infoLength, out infoLength);

.

        result = (UInt32)NativeMethods.NtQuerySystemInformation(NativeMethods.SYSTEM_INFORMATION_CLASS.SystemMemoryListInformation, buff, result, out returnSize);

.
Documentation
[NtQuerySystemInformation] on MSDN
.

static extern UInt32 NtSetSystemInformation(NtSystemInformation.SYSTEM_INFORMATION_CLASS InfoClass, IntPtr Info, UInt32 Length);

.

Declare Function NtSetSystemInformation Lib "ntdll.dll" (TODO) As TODO

.

This works in the same manner as NtQuerySystemInformation.

.

public static void SetSystemInformation(NtSystemInformation.SYSTEM_INFORMATION_CLASS InfoClass, IntPtr Info, UInt32 Length)

.

        result = NtSetSystemInformationKernel(InfoClass, Info, Length);

.
Documentation
[NtSetSystemInformation] on MSDN
.
Summary
Tells NtQuerySystemInformation and NtSetSystemInformation what you would like to read/change.
.
Summary
Structure returned by NtQuerySystemInformation in response to SYSTEM_INFORMATION_CLASS.SystemMemoryListInformation = 0x0050
.

        result = (UInt32)NativeMethods.NtQuerySystemInformation(NativeMethods.SYSTEM_INFORMATION_CLASS.SystemMemoryListInformation, buff, result, out returnSize);

Enums

. .

This set of constants has been replaced in .NET (2002 - 2003) by the [System.Windows.Forms.SystemInformation] class. This contains all the information about the system metrics.

.

.NET [SystemInformation] on MSDN

user32

.

        if (range.Height > SystemInformation.DragSize.Height

.

                || range.Width > SystemInformation.DragSize.Width)

.

        to.Left = System.Windows.Forms.SystemInformation.VirtualScreen.Right - form.Width;

.

        to.Top = System.Windows.Forms.SystemInformation.VirtualScreen.Bottom -

.

          System.Windows.Forms.SystemInformation.CaptionHeight -

.

            (System.Windows.Forms.SystemInformation.FrameBorderSize.Height * 2);

.

        to.Right = System.Windows.Forms.SystemInformation.VirtualScreen.Right;

.

        to.Bottom = System.Windows.Forms.SystemInformation.VirtualScreen.Bottom;

.

          to->Left = System::Windows::Forms::SystemInformation::VirtualScreen.Rig ht - 32;

.

          to->Top = System::Windows::Forms::SystemInformation::VirtualScreen.Bot tom -32;

.

          to->Right = System::Windows::Forms::SystemInformation::VirtualScreen.Rig ht;

.

          to->Bottom = System::Windows::Forms::SystemInformation::VirtualScreen.Bot tom;

.

Use SystemInformation.CaretBlinkTime property

.

[SystemInformation] on MSDN

.

System.Windows.Forms.SystemInformation.DoubleClickTime (http://msdn.microsoft.com/en-us/library/system.windows.forms.systeminformation.doubleclicktime.aspx)

.

SystemInformation.HorizontalScrollbar*

.

SystemInformation.VerticalScrollbar*

.

      int BORDERWIDTH = SystemInformation.Border3DSize.Width;

.

      int SCROLLBARWIDTH = SystemInformation.VerticalScrollBarWidth;

.

System.Windows.Forms.SystemInformation class

.

The System.Windows.Forms.Screen class contains all you might need to know about multiple monitors. The SystemInformation class also gives some information about available monitors.

.

      ScrollRect.Right = this.Width - SystemInformation.VerticalScrollBarWidth;

.

static extern TODO SystemInformation(TODO);

.

Declare Function SystemInformation Lib "user32.dll" (TODO) As TODO

.
Documentation
[SystemInformation] on MSDN
.

The [System.Windows.Forms.SystemInformation] managed class, which uses SystemParametersInfo internally, has many (but not all) static properties containing user information, system setup, and preferences.


 
Access PInvoke.net directly from VS: