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 "system" in [All]

Structures

.

    Public wProcessorArchitecture As System.UInt16

.
Summary
The ADAPTER_STATUS structure contains information about a network adapter via the (NetBIOS) API call. This structure is pointed to by the ncb_buffer member of the NCB structure. ADAPTER_STATUS is followed by as many NAME_BUFFER structures as required to describe the network adapters on the system
.
Summary
ANIMATIONINFO - Used with SystemParametersInfo for SPI_GETANIMATION or SPI_SETANIMATION
.

    /// Used with SystemParametersInfo when SPI_GETANIMATION or SPI_SETANIMATION action is specified.

.

    /// The uiParam value must be set to (System.UInt32)Marshal.SizeOf(typeof(ANIMATIONINFO)) when using this structure.

.

      public ANIMATIONINFO(System.Int32 iMinAnimate)

.

        this.cbSize = (System.UInt32)Marshal.SizeOf(typeof(ANIMATIONINFO));

.

      /// Always must be set to (System.UInt32)Marshal.SizeOf(typeof(ANIMATIONINFO)).

.

      public System.UInt32 cbSize;

.

      public System.Int32 iMinAnimate;

.

using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

.

Imports System

.

Imports System.Collections.Specialized

.

        public SYSTEMTIME stLastSeen;

.

        public SYSTEMTIME stLastUsed;

.

SYSTEMTIME

.
Summary
.
    • Desktop handle to the window specified by hwnd. This is returned only if BroadcastSystemMessageEx specifies BSF_RETURNHDESK and BSF_QUERY.
.
    • Handle to the window that denied the request. This is returned if BroadcastSystemMessageEx specifies BSF_QUERY.
.

        public System.UInt32 dwRequestMicroSecPerFrame;

.

        public System.Int32 fMakeUserHitOKToCapture;

.

        public System.UInt32 wPercentDropForError;

.

        public System.Int32 fYield;

.

        public System.UInt32 dwIndexSize;

.

        public System.UInt32 wChunkGranularity;

.

        public System.Int32 fUsingDOSMemory;

.

        public System.UInt32 wNumVideoRequested;

.

        public System.Int32 fCaptureAudio;

.

        public System.UInt32 wNumAudioRequested;

.

        public System.UInt32 vKeyAbort; // check this

.

        public System.Int32 fAbortLeftMouse;

.

        public System.Int32 fAbortRightMouse;

.

        public System.Int32 fLimitEnabled;

.

        public System.UInt32 wTimeLimit;

.

        public System.Int32 fMCIControl;

.

        public System.Int32 fStepMCIDevice;

.

        public System.UInt32 dwMCIStartTime;

.

        public System.UInt32 dwMCIStopTime;

.

        public System.Int32 fStepCaptureAt2x;

.

        public System.UInt32 wStepCaptureAverageFrames;

.

        public System.UInt32 dwAudioBufferSize;

.

        public System.Int32 fDisableWriteCache;

.

        public System.UInt32 AVStreamMaster;

.
Summary
Contains operating system version information for Windows CE.
.

Imports System.Runtime.InteropServices

.

   public COLORREF(System.Drawing.Color color)

.

   public System.Drawing.Color GetColor()

.

      return System.Drawing.Color.FromArgb((int) (0x000000FFU & ColorDWORD),

.

   public void SetColor(System.Drawing.Color color)

.

Actually, there's no COLORREF structure in native Win32. It is typedef-ed to DWORD, which means that in the managed world its direct counterpart is [System.Int32] (aka int in C#). So, when faced with interop involving COLORREF'S you'd better treat them as int's. Also have in mind that the color components are stored in reverse order, i.e. the Red component is in the lowest-byte. In short, the format is 0x00BBGGRR. You can use a code similar to the following to obtain a COLORREF:

.

// The first field, dwData, may contain anything the sender wishes; it is the equivalent of System.Object sender in an EventHandler.

.

     /// same token as the caller, but the system creates a new logon session within LSA, and

.

     /// The system does not validate the specified credentials. Therefore, the process can start,

.

   <System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)> _

14: DCB
.

using System.Collections.Specialized;

.

using System.Runtime.InteropServices;

.

    [System.Runtime.InteropServices.FieldOffset(0)]

.

    [System.Runtime.InteropServices.FieldOffset(32)]

.

    [System.Runtime.InteropServices.FieldOffset(34)]

.

    [System.Runtime.InteropServices.FieldOffset(36)]

.

    [System.Runtime.InteropServices.FieldOffset(38)]

.

    [System.Runtime.InteropServices.FieldOffset(40)]

.

    [System.Runtime.InteropServices.FieldOffset(44)]

.

    [System.Runtime.InteropServices.FieldOffset(46)]

.

    [System.Runtime.InteropServices.FieldOffset(48)]

.

    [System.Runtime.InteropServices.FieldOffset(50)]

.

    [System.Runtime.InteropServices.FieldOffset(52)]

.

    [System.Runtime.InteropServices.FieldOffset(54)]

.

    [System.Runtime.InteropServices.FieldOffset(56)]

.

    [System.Runtime.InteropServices.FieldOffset(58)]

.

    [System.Runtime.InteropServices.FieldOffset(44)]

.

    [System.Runtime.InteropServices.FieldOffset(52)]

.

    [System.Runtime.InteropServices.FieldOffset(56)]

.

    [System.Runtime.InteropServices.FieldOffset(60)]

.

    [System.Runtime.InteropServices.FieldOffset(62)]

.

    [System.Runtime.InteropServices.FieldOffset(64)]

.

    [System.Runtime.InteropServices.FieldOffset(66)]

.

    [System.Runtime.InteropServices.FieldOffset(68)]

.

    [System.Runtime.InteropServices.FieldOffset(70)]

.

    [System.Runtime.InteropServices.FieldOffset(102)]

.

    [System.Runtime.InteropServices.FieldOffset(104)]

.

    [System.Runtime.InteropServices.FieldOffset(108)]

.

    [System.Runtime.InteropServices.FieldOffset(112)]

.

    [System.Runtime.InteropServices.FieldOffset(116)]

.

    [System.Runtime.InteropServices.FieldOffset(116)]

.

    [System.Runtime.InteropServices.FieldOffset(120)]

.

using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

.

This code (taken from .NET source code) is working with System.Drawing.Printing.PrinterSettings.Gethdevmode, where default structure doesn't work for me.

.

<System.Runtime.InteropServices.StructLayout(LayoutKind.Sequential)> _

.

    public System.Drawing.Point ptShadowOffset;

.

   private System.Drawing.Point ptShadowOffset;

.

   public DrawThemeTextSystemFonts AlternateFont

.

     get { return (DrawThemeTextSystemFonts)iFontPropId; }

.

    public System.Drawing.Region Region

.

        get { return System.Drawing.Region.FromHrgn(hRgnBlur); }

.

    public void SetRegion(System.Drawing.Graphics graphics, System.Drawing.Region region)

.

    public SystemTime StandardDate;

.

    public SystemTime DaylightDate;

.

     [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

.

    [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

.

       public System.Drawing.Size sizel;

.

       public System.Drawing.Point pointl;

.

       public System.Runtime.InteropServices.ComTypes.FILETIME ftCreationTime;

.

       public System.Runtime.InteropServices.ComTypes.FILETIME ftLastAccessTime;

.

       public System.Runtime.InteropServices.ComTypes.FILETIME ftLastWriteTime;

.

<Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, CharSet:=Runtime.InteropServices.CharSet.Auto)>

.

    Public sizel As System.Drawing.Size

.

    Public pointl As System.Drawing.Point

.

    Public ftCreationTime As System.Runtime.InteropServices.ComTypes.FILETIME

.

    Public ftLastAccessTime As System.Runtime.InteropServices.ComTypes.FILETIME

.

    Public ftLastWriteTime As System.Runtime.InteropServices.ComTypes.FILETIME

.

[System.Runtime.InteropServices.FILETIME] (obsolete), or [System.Runtime.InteropServices.ComTypes.FILETIME] in the .NET Framework 2.0.

.

There is no reason not to use [System.Runtime.InteropServices.ComTypes.FILETIME], but there still is a need for conversion to [DateTime]:

.

Actually, this is NOT working. The only solution I've found so far is using the API Kernel32.dll function FileTimeToSystemTime, then transforming from that into a regular DateTime.

.

* Note that System.Runtime.InteropServices.FILETIME is now obsolete. Changed to use System.Runtime.InteropServices.ComTypes.FILETIME instead.

.

    //     handle with the GMEM_SHARE flag. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    //     The storage medium is a disk file identified by a path. If the STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    //     ISequentialStream::Read to read the data. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    //     If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    //     If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    //     to access the metafile's data. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    //     The storage medium is an enhanced metafile. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    '     handle with the GMEM_SHARE flag. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    '     The storage medium is a disk file identified by a path. If the STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    '     ISequentialStream::Read to read the data. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    '     If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    '     If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    '     to access the metafile's data. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

    '     The storage medium is an enhanced metafile. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease

.

   public SYSTEM_POWER_STATE LidOpenWakeAc;

.

   public SYSTEM_POWER_STATE LidOpenWakeDc;

.

   Public LidOpenWakeAc As SYSTEM_POWER_STATE

.

   Public LidOpenWakeDc As SYSTEM_POWER_STATE

.

SYSTEM_POWER_STATE

.

   public SYSTEM_POWER_LEVEL[] DischargePolicy;

.

   Public DischargePolicy As SYSTEM_POWER_LEVEL()

.

SYSTEM_POWER_LEVEL

26: GUID
.

Instead of this, you could choose to define such a parameter as an array of System.Guids and only ever use the first element.

.

Instead of this, you could choose to define such a parameter as an array of System.Guids and only ever use the first element.

.

    /// On the screen background or on a dividing line between windows (same as HTNOWHERE, except that the DefWindowProc function produces a system beep to indicate an error).

.

    ''' file system date/time.

.

      ' when the file was created than is the file system date/time.

.

    public enum SubSystemType : ushort

.

        IMAGE_SUBSYSTEM_UNKNOWN = 0,

.

        IMAGE_SUBSYSTEM_NATIVE = 1,

.

        IMAGE_SUBSYSTEM_WINDOWS_GUI = 2,

.

        IMAGE_SUBSYSTEM_WINDOWS_CUI = 3,

.

        IMAGE_SUBSYSTEM_POSIX_CUI = 7,

.

        IMAGE_SUBSYSTEM_WINDOWS_CE_GUI = 9,

.

        IMAGE_SUBSYSTEM_EFI_APPLICATION = 10,

.

        IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER = 11,

.

        IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER = 12,

.

        IMAGE_SUBSYSTEM_EFI_ROM = 13,

.

        IMAGE_SUBSYSTEM_XBOX = 14

.

        public ushort MajorOperatingSystemVersion;

.

        public ushort MinorOperatingSystemVersion;

.

        public ushort MajorSubsystemVersion;

.

        public ushort MinorSubsystemVersion;

.

        public SubSystemType Subsystem;

.

        public ushort MajorOperatingSystemVersion;

.

        public ushort MinorOperatingSystemVersion;

.

        public ushort MajorSubsystemVersion;

.

        public ushort MinorSubsystemVersion;

.

        public SubSystemType Subsystem;

.

    ''' The major version number of the required operating system. With the advent  

.

    Public MajorOperatingSystemVersion As UInt16

.

    Public MinorOperatingSystemVersion As UInt16

.

    ''' The major version number of this file. Unused by the system and can be 0.  

.

    ''' The major version of the operating subsystem needed for this executable.  

.

    ''' Windows, this field is effectively unused by the system and is typically set  

.

    ''' to the value 4. Set with the linker /SUBSYSTEM switch.

.

    Public MajorSubsystemVersion As UInt16

.

    ''' The minor version of the operating subsystem needed for this executable.

.

    Public MinorSubsystemVersion As UInt16

.

    ''' the system needs to reserve when loading this file into memory. This field

.

    ''' system DLLs. Otherwise, this field can be 0. The checksum is placed in the  

.

    ''' An enum value indicating what subsystem (user interface type) the executable  

.

    ''' IMAGE_SUBSYSTEM_NATIVE       // Image doesn't require a subsystem

.

    ''' IMAGE_SUBSYSTEM_WINDOWS_GUI  // Use the Windows GUI

.

    ''' IMAGE_SUBSYSTEM_WINDOWS_CUI  // Run as a console mode application

.

    Public Subsystem As UInt16

.

    ' The major version number of the required operating system.

.

    MajorOperatingSystemVersion As Integer

.

    MinorOperatingSystemVersion As Integer

.

    ' The major version number of this file.  Unused by the system and can be 0.

.

    ' The major version of the operating subsystem needed for this executable.

.

    ' proliferation of the various versions of Windows, this field is effectively unused by the system

.

    ' and is typically set to the value 4.  Set with the linker /SUBSYSTEM switch.

.

    MajorSubsystemVersion As Integer

.

    ' The minor version of the operating subsystem needed for this executable.

.

    MinorSubsystemVersion As Integer

.

    ' existed.  This is effectively the amount of memory that the system needs to reserve when loading

.

    ' Checksums are required for kernel-mode drivers and some system DLLs.  Otherwise, this field

.

    ' An enum value indicating what subsystem (user interface type) the executable expects.

.

    ' IMAGE_SUBSYSTEM_NATIVE (Image doesn't require a subsystem)

.

    ' IMAGE_SUBSYSTEM_WINDOWS_GUI (Use the Windows GUI)

.

    ' IMAGE_SUBSYSTEM_WINDOWS_CUI (Run as a console mode application.  When run, the OS creates a

.

    Subsystem As Integer

.

  Public Type Int64 'LowBytes must be first in LittleEndian systems (For IMAGE_OPTIONAL_HEADER64)

.

    ' The major version number of the required operating system.

.

    MajorOperatingSystemVersion As Integer

.

    MinorOperatingSystemVersion As Integer

.

    ' The major version number of this file.  Unused by the system and can be 0.

.

    ' The major version of the operating subsystem needed for this executable.

.

    ' proliferation of the various versions of Windows, this field is effectively unused by the system

.

    ' and is typically set to the value 4.  Set with the linker /SUBSYSTEM switch.

.

    MajorSubsystemVersion As Integer

.

    ' The minor version of the operating subsystem needed for this executable.

.

    MinorSubsystemVersion As Integer

.

    ' existed.  This is effectively the amount of memory that the system needs to reserve when loading

.

    ' Checksums are required for kernel-mode drivers and some system DLLs.  Otherwise, this field

.

    ' An enum value indicating what subsystem (user interface type) the executable expects.

.

    ' IMAGE_SUBSYSTEM_NATIVE (Image doesn't require a subsystem)

.

    ' IMAGE_SUBSYSTEM_WINDOWS_GUI (Use the Windows GUI)

.

    ' IMAGE_SUBSYSTEM_WINDOWS_CUI (Run as a console mode application.  When run, the OS creates a

.

    Subsystem As Integer

.

    public ushort MajorOperatingSystemVersion;

.

    public ushort MinorOperatingSystemVersion;

.

    public ushort MajorSubsystemVersion;

.

    public ushort MinorSubsystemVersion;

.

    public SubSystemType Subsystem;

.

    public enum SubSystemType : ushort

.

        IMAGE_SUBSYSTEM_UNKNOWN = 0,

.

        IMAGE_SUBSYSTEM_NATIVE = 1,

.

        IMAGE_SUBSYSTEM_WINDOWS_GUI = 2,

.

        IMAGE_SUBSYSTEM_WINDOWS_CUI = 3,

.

        IMAGE_SUBSYSTEM_POSIX_CUI = 7,

.

        IMAGE_SUBSYSTEM_WINDOWS_CE_GUI = 9,

.

        IMAGE_SUBSYSTEM_EFI_APPLICATION = 10,

.

        IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER = 11,

.

        IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER = 12,

.

        IMAGE_SUBSYSTEM_EFI_ROM = 13,

.

        IMAGE_SUBSYSTEM_XBOX = 14

.

    Public MajorOperatingSystemVersion As UInt16

.

    Public MinorOperatingSystemVersion As UInt16

.

    Public MajorSubsystemVersion As UInt16

.

    Public MinorSubsystemVersion As UInt16

.

    Public Subsystem As UInt16

.

    Public PhysicalAddress As System.UInt32

.

    Public VirtualSize As System.UInt32

.

    Public Section As System.UInt32

.

    Public Line As System.UInt32

.

        Public dwICC As System.UInt32

.

    <FieldOffset(0)> Public EventType As System.UInt16

.

   public SYSTEMTIME Submitted;

.

  *  On a system containing lana's 0, 2 and 3, a structure with

.

        //        [out]    fontReceived (System.Drawing.Font)

.

        //        [in]    fontReceived (System.Drawing.Font)

.

The .NET Framework class Font, has a method, Font::FromLogfont that takes an Object reference as it's method parameter. You must define a managed LOGFONT class using the same format as the C# signature above. When using the StructLayout attribute on the class definition, you must set the CharSet property to Auto (the default is Ansi, which will not work correctly). The only difficulty encountered is passing the string value (the designated Font Face Name) to the FromLogfont method; apparently, this must have the attribute: [MarshalAs(UnmanagedType::ByValTStr)] enum value for the method to work correctly. Then, when instantiating a new Font in your managed application, you must cast the LOGFONT class (with appropriate member values assigned) to a System::Object for the function to work without generating a runtime exception.

.

    SYSTEM_POWER_STATE MinSleepAc;

.

    SYSTEM_POWER_STATE MinSleepDc;

.

    SYSTEM_POWER_STATE ReducedLatencySleepAc;

.

    SYSTEM_POWER_STATE ReducedLatencySleepDc;

.

        Private MinSleepAc As SYSTEM_POWER_STATE

.

        Private MinSleepDc As SYSTEM_POWER_STATE

.

        Private ReducedLatencySleepAc As SYSTEM_POWER_STATE

.

        Private ReducedLatencySleepDc As SYSTEM_POWER_STATE

.

SYSTEM_POWER_STATE, POWER_ACTION_POLICY

40: MAPI
.

    /// A value of NULL indicates an unknown file type or a file type determined by the operating system.

.

    /// Some messaging systems can ignore and not return this member.

.

    /// delivery data. Generally, the messaging system provides such addresses for inbound messages.

.

    /// Pointer to an opaque entry identifier used by a messaging system service provider to identify the

.

    /// client applications will not be able to decipher them. The messaging system uses this member

.

    ''' Some messaging systems can ignore and not return this member.

.

    ''' A value of NULL indicates an unknown file type or a file type determined by the operating system.

.

    ''' delivery data. Generally, the messaging system provides such addresses for inbound messages.

.

    ''' Pointer to an opaque entry identifier used by a messaging system service provider to identify the

.

    ''' client applications will not be able to decipher them. The messaging system uses this member

.

The CLR offer us no way to tell us that memory is getting tight. Many think this API provides the best solution. This is mentioned by Jeffrey Richter in his book 'CLR via C#' ISBN: 0-7356-2163-2. It is useful in determining if your system is under excessive memory load by looking at the dwMemoryLoad member of the MEMORYSTATUSEX structure. If this value is > 80 (per Mr. Richter in his discussion of Garbage Collection), it is an indication that you might want to consider converting some strong references into weak references. Remember that a weakreference type will be collected when Generation 0 is full, so it is not a good technique for caching (as many seem to think).

.

    /// reflects the size of the paging file at that time. The operating system can enlarge

.

        /// <summary>The current committed memory limit for the system or the current process,

.

        /// whichever is smaller, in bytes. To get the system-wide committed memory limit,

.

        /// This value is equal to or smaller than the system-wide available commit value.

.

        /// To calculate the system-wide available commit value, call GetPerformanceInfo

.

        /// of processor, and the configuration of the operating system. For example, this

.

        /// on a system with 4-gigabyte tuning enabled.</summary>

.

The CLR offer us no way to tell us that memory is getting tight. Many think this API provides the best solution. This is mentioned by Jeffrey Richter in his book 'CLR via C#' ISBN: 0-7356-2163-2. It is useful in determining if your system is under excessive memory load by looking at the dwMemoryLoad member of the MEMORYSTATUSEX structure. If this value is > 80 (per Mr. Richter in his discussion of Garbage Collection), it is an indication that you might want to consider converting some strong references into weak references. Remember that a weakreference type will be collected when Generation 0 is full, so it is not a good technique for caching (as many seem to think).

.

mi.cbSize = System.Runtime.InteropServices­.Marshal.SizeOf(typeof(MENUINF­O));

.
Summary
The MinimizedMetrics structure is used with SystemParametersInfo to set the properties of minimized windows when opening or closing a shell application (e.g. Windows Explorer).
.

The winmm dll may not execute properly on 64-bit systems. Consequently, the StructLayout must be Sequential, with CharSet = Ansi, and Pack = 4. This particular type has some special layout considerations (the c union keyword) which typically means developers would use the explicit layout. However, the explicit layout breaks down on 64-bit systems for any type with an IntPtr in the type. Consequently, the C# types have been redesigned to use Sequential layout so that they will automatically adjust to 64-bit systems. This means private fields with public properties which perform the gunky work of making it look like there is a union.

.
Summary
Contains information that the system needs to process taskbar status area messages. Used in calls to Shell_NotifyIcon().
.

    /// Application-defined message identifier. The system uses this identifier to send

.

using System.Runtime.InteropServices

.

    ''' the system uses the specified template to create a dialog box that is a child of the default Explorer-style dialog box.

.

    ''' the system uses the template to create an old-style dialog box that replaces the default dialog box.

.

    ''' The system uses the strings to initialize the user-defined file filter the next time

.

    ''' If nFilterIndex is zero and lpstrCustomFilter is NULL, the system uses the first

.

    ''' If all three members are zero or NULL, the system does not use any filters and does

.

    ''' A string to be placed in the title bar of the dialog box. If this member is NULL, the system uses the default title (that is, Save As or Open)

.

    ''' Application-defined data that the system passes to the hook procedure identified by the lpfnHook member.

.
Summary
The OSVERSIONINFOEX structure contains operating system version information. The information includes major and minor version numbers, a build number, a platform identifier, and information about product suites and the latest Service Pack installed on the system.
.
Summary
The OSVERSIONINFOEX structure contains operating system version information. The information includes major and minor version numbers, a build number, a platform identifier, and information about product suites and the latest Service Pack installed on the system.
.

InternalLow :Specifies a system-dependent status.

.

This structure is already defined as System.Threading.NativeOverlapped in the .NET Framework. It is not supported for the .NET Compact Framework.

.

        public ushort SubSystemID;

.

   PowerActionNone = 0,       // No system power action.

.

   POWER_ACTION_LOCK_CONSOLE   = 0x20000000, // Requires entry of the system password upon resume from one of the system standby states.

.

   PowerActionNone = 0    ' No system power action.

.

   POWER_ACTION_LOCK_CONSOLE = 0x20000000    ' Requires entry of the system password upon resume from one of the system standby states.

.

[System.Runtime.InteropServices.ComVisible(false)]        

.

    [FieldOffset(4)] public System.IntPtr heRapiInit;

.

    <System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)> _

56: RECT
.

   public RECT(System.Drawing.Rectangle r) : this(r.Left, r.Top, r.Right, r.Bottom) { }

.

   public System.Drawing.Point Location

.

     get { return new System.Drawing.Point(Left, Top); }

.

   public System.Drawing.Size Size

.

     get { return new System.Drawing.Size(Width, Height); }

.

   public static implicit operator System.Drawing.Rectangle(RECT r)

.

     return new System.Drawing.Rectangle(r.Left, r.Top, r.Width, r.Height);

.

   public static implicit operator RECT(System.Drawing.Rectangle r)

.

     else if (obj is System.Drawing.Rectangle)

.

       return Equals(new RECT((System.Drawing.Rectangle)obj));

.

     return ((System.Drawing.Rectangle)this).GetHashCode();

.

     return string.Format(System.Globalization.CultureInfo.CurrentCulture, "{{Left={0},Top={1},Right={2},Bottom={3}}}", Left, Top, Right, Bottom);

.

The Win32 RECT structure is not compatible with the .NET System.Drawing.Rectangle structure.

.

but the System.Drawing.Rectangle structure has left, top, width and height members internally.

.

Imports System.Runtime.InteropServices

.

Add a reference to System.Drawing to use this.

.

using System;

.

using System.Collections.Generic;

.

using System.Text;

.

using System.Runtime.InteropServices;

.

using System.IO;

.

using System;

.

using System.Drawing;

.

using System.Collections;

.

using System.ComponentModel;

.

using System.Windows.Forms;

.

using System.Data;

.

using System.Runtime.InteropServices;

.

using System.Diagnostics;

.

using System.Security.AccessControl;

.

    public class Form1 : System.Windows.Forms.Form

.

        private System.ComponentModel.Container components = null;

.

            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);

.

            this.ClientSize = new System.Drawing.Size(528, 266);

.

            this.Load += new System.EventHandler(this.Form1_Load);

.

        private void Form1_Load(object sender, System.EventArgs e)

.

        SERVICE_FILE_SYSTEM_DRIVER = 0x00000002,

.

Index of the icon image within the system image list.

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: