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]

winscard

.

rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);

.

error CS1502: The best overloaded method match for 'PCSC_ContactlessNet.SmartCard.SCardConnect(System.IntPtr, string, uint, uint, out int, out uint)' has some invalid arguments

.

error CS1503: Argument '5': cannot convert from 'System.IntPtr*' to 'out int'

.

#define SCARD_SCOPE_SYSTEM   2    // The context is the system context, and any

.

                // domain of the system.  (The calling

.

    SCARD_E_SYSTEM_CANCELLED =      0x80100012,

.

        request.cbPciLength = System.Runtime.InteropServices.Marshal.SizeOf(typeof(UnsafeNativeMethods.SCARD_IO_REQUEST));

winspool

.

Doesn't work on a x64 system. (i.e. this declaration is wrong for x64, I'm just not quite sure why.). MH:I tested the code extensivly and I think the param "IntPtr pDevModeInput" must not have the "ref" flag. If it has the initial state of the dialog is wrong. EP: Yup, you're right! Thanks!!! I've been trying to figure out why it doesn't work on some drivers for a few weeks now! "ref" removed.

.

On a Win8 x64 system, I encountered the issue when I was trying to target x86 compiling. The call to DocumentProperties would fail and return -1 for sizeNeeded.

.

        /// The operating system version for which the driver was written. The supported value is 3.

.

        System.Runtime.InteropServices.ComTypes.FILETIME ftDriverDate;

.

    Public Submitted As SYSTEMTIME

.

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> Structure SYSTEMTIME

.

    Imports System.Runtime.InteropServices

.
Summary
Enum all Available Ports in a System.
.

    using System;

.

    using System.Runtime.InteropServices;

.

You will need to import System.Runtime.InteropServices

.

(ByVal pszBuffer As System.Text.StringBuilder, ByRef pcchBuffer As Int32) As Boolean

.

You will need to import System.Runtime.InteropServices.

.

The System.Management API allows for lots of printer stuff, but doesn't let you delete a print job in Win2K.

12: SetJob
.

The System.Management API allows for lots of printer stuff, but doesn't let you delete a print job in Win2K.

Interfaces

13: +
.

var obj = System.Runtime.InteropServices.Marshal.BindToMoniker("IIS://localhost/W3SVC") as IADs;

.

Required referenece to System, System.Security, System.Runtime.InteropServices, System.Reflection Namespaces.

.

     int GetWallpaper([MarshalAs(UnmanagedType.LPWStr)]  System.Text.StringBuilder pwszWallpaper,

.

     int GetPattern([MarshalAs(UnmanagedType.LPWStr)] System.Text.StringBuilder pwszPattern, int cchPattern, int dwReserved);

16: IADs
.
Summary
The IADsContainer interface enables an ADSI container object to create, delete, and manage contained ADSI objects. Container objects represent hierarchical directory trees, such as in a file system, and to organize the directory hierarchy.
.

        // Handle to the window for the system edit control that is to

.

using System;

.

using System.Runtime.InteropServices;

.

using System.Runtime.CompilerServices;

.

using System.IO;

.

using System.ComponentModel;

.

using System.Threading;

.

                 //System.Windows.Forms.MessageBox.Show("Download error: \r\n"+we.Message);

.

                System.Windows.Forms.MessageBox.Show("Download error: \r\n"+ex.Message);

.

                System.Windows.Forms.MessageBox.Show("Download error: \r\n"+ex.Message);

.

                System.Windows.Forms.MessageBox.Show("Download error: \r\n"+ex.Message);

.

        /// Returns an enumerator for the component categories registered on the system.

.

        /// <returns>can be used to enumerate the CATIDs and localized description strings of the component categories registered with the system.</returns>

.

        CLSCTX.CLSCTX_LOCAL_SERVER, new System.IntPtr(),

.

        CLSCTX.CLSCTX_LOCAL_SERVER, new System.IntPtr(),

.

using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

.

Also available in System.Runtime.InteropServices.ComTypes

.

Imports System.Windows.Forms

.

Imports System.Runtime.InteropServices

.

Imports System.Reflection

.

Imports System.Diagnostics

.

Imports System.Drawing

.

Imports System.ComponentModel

.

    Me.BackColor = System.Drawing.Color.Transparent

.

    Public Overridable Sub GetWindow(ByRef phwnd As System.IntPtr) Implements IDeskBand.GetWindow, IDockingWindow.GetWindow, IOleWindow.GetWindow

.

        '(don't mix it with System.IServiceProvider!)

.

    Protected Overrides Sub OnGotFocus(e As System.EventArgs)

.

    Protected Overrides Sub OnLostFocus(e As System.EventArgs)

.

    Imports System.ComponentModel

.

    Imports System.Windows.Forms

.

    Imports System.Runtime.InteropServices

.

    Private WithEvents button1 As System.Windows.Forms.Button

.

    Private components As System.ComponentModel.Container = Nothing

.

        Me.button1 = New System.Windows.Forms.Button()

.

        Me.button1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _

.

        Or System.Windows.Forms.AnchorStyles.Left) _

.

        Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)

.

        Me.button1.BackColor = System.Drawing.SystemColors.HotTrack

.

        Me.button1.ForeColor = System.Drawing.SystemColors.Info

.

        Me.button1.Location = New System.Drawing.Point(0, 0)

.

        Me.button1.Size = New System.Drawing.Size(62, 24)

.

        Me.MinSize = New System.Drawing.Size(150, 24)

.

        Me.Size = New System.Drawing.Size(62, 24)

.

    Private Sub button1_Click(sender As Object, e As System.EventArgs) Handles button1.Click

.

Imports System.Drawing

.

Imports System.Runtime.InteropServices

.

Imports System.Windows.Forms

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

Imports System.Runtime.InteropServices

.

Imports System.Reflection

.

    Inherits System.Attribute

.

Imports System.Windows.Forms

.

Imports System.Runtime.InteropServices

.

Imports System.Reflection

.

Imports System.Diagnostics

.

Imports System.Drawing

.

Imports System.ComponentModel

.

    Me.BackColor = System.Drawing.Color.Transparent

.

    Public Overridable Sub GetWindow(ByRef phwnd As System.IntPtr) Implements IDeskBand.GetWindow, IDockingWindow.GetWindow, IOleWindow.GetWindow

.

        '(don't mix it with System.IServiceProvider!)

.

    Protected Overrides Sub OnGotFocus(e As System.EventArgs)

.

    Protected Overrides Sub OnLostFocus(e As System.EventArgs)

.

Imports System.ComponentModel

.

Imports System.Windows.Forms

.

Imports System.Runtime.InteropServices

.

    Private WithEvents button1 As System.Windows.Forms.Button

.

    Private components As System.ComponentModel.Container = Nothing

.

    Me.button1 = New System.Windows.Forms.Button()

.

    Me.button1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _

.

        Or System.Windows.Forms.AnchorStyles.Left) _

.

        Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)

.

    Me.button1.BackColor = System.Drawing.SystemColors.HotTrack

.

    Me.button1.ForeColor = System.Drawing.SystemColors.Info

.

    Me.button1.Location = New System.Drawing.Point(0, 0)

.

    Me.button1.Size = New System.Drawing.Size(62, 24)

.

    Me.MinSize = New System.Drawing.Size(150, 24)

.

    Me.Size = New System.Drawing.Size(62, 24)

.

    Private Sub button1_Click(sender As Object, e As System.EventArgs) Handles button1.Click

.

Imports System.Drawing

.

Imports System.Runtime.InteropServices

.

Imports System.Windows.Forms

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

Imports System.Runtime.InteropServices

.

Imports System.Reflection

.

    Inherits System.Attribute

.

    using drawing = System.Drawing;

.

    using IDataObject_Com = System.Runtime.InteropServices.ComTypes.IDataObject;

.

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

.

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

.

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

.
Summary
Part of the Task Scheduler 1.0 Interfaces, which consists of IEnumWorkItems, ITask, ITaskScheduler, ITaskTrigger and IScheduledWorkItem. There is some helper code below for actually using the iterator as the marshalling seemed impossible without resorting to the unmanaged helper functions in System.Runtime.InteropServices.Marshal. Not all methods have been tested, so be careful!
.

    using System;

.

    using System.Collections.Generic;

.

    using System.Runtime.InteropServices;

.

    [System.Runtime.InteropServices.InterfaceType(1)]

.

    [System.Runtime.InteropServices.Guid("3127CA40-446E-11CE-8135-00AA004BB851")]

.

        void AddError(string pszPropName, ref System.Runtime.InteropServices.ComTypes.EXCEPINFO pExcepInfo);

.

        <Out(), MarshalAs(UnmanagedType.LPWStr)> ByVal pszPathBuffer As System.Text.StringBuilder, _

.

[Guid(FileSystemBrowserConstant.ComGuid.IFolderFilterSite)]

.

[Guid(FileSystemBrowserConstant.ComGuid.IFolderFilterSite)]

.

using System;

.

using System.Reflection;

.

using System.Runtime.InteropServices;

.

using System.Windows.Forms;

.

  public class ZoneSecurityDemo : System.Windows.Forms.Control, _ZoneSecurityDemo

.

    using System.Runtime.InteropServices;

.

    using System;

.

    using System.Text;

.

    Imports System.Runtime.InteropServices

.

    void ReadAt(long ulOffset, System.IntPtr pv, int cb, out System.UInt32 pcbRead);

.

    void WriteAt(long ulOffset, System.IntPtr pv, int cb, out System.UInt32 pcbWritten);

.

    void Stat(out System.Runtime.InteropServices.STATSTG pstatstg, int grfStatFlag);

.

    void ReadAt(long ulOffset, System.IntPtr pv, int cb, System.IntPtr pcbRead);

.

    void WriteAt(long ulOffset, System.IntPtr pv, int cb, System.IntPtr pcbWritten);

.

    void Stat(out System.Runtime.InteropServices.STATSTG pstatstg, int grfStatFlag);

.

    /// Minimizes the heap by releasing unused memory to the operating system.

.

    ''' 'Minimizes the heap by releasing unused memory to the operating system.

.

    public uint dwOSPlatformId,     // Operating system platform.

.

using System;

.

using System.Runtime.InteropServices;

.

Requires reference to System.Runtime.InteropServices.

.

using System;

.

using System.Windows.Forms;

.

using System.Runtime.InteropServices;

.

using System.Globalization;

.

using System.Security.Permissions;

.

using System;

.

using System.Drawing;

.

using System.IO;

.

using System.Xml;

.

using System.Xml.XPath;

.

using System.Windows.Forms;

.

using System.Globalization;

.

using System.Security.Permissions;

.

            openDialog.InitialDirectory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);

.

            openDialog.InitialDirectory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);

.

            openDialog.InitialDirectory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);

.

                        saveFileDialog.InitialDirectory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);

.

                    vaIn = Convert.ToUInt32(System.Drawing.ColorTranslator.ToOle(value));

.

                    vaIn = Convert.ToUInt32(System.Drawing.ColorTranslator.ToOle(value));

.

                    vaIn = Convert.ToUInt32(System.Drawing.ColorTranslator.ToOle(value));

.

      Sub GetWindow(<System.Runtime.InteropServices.Out()> ByRef phwnd As IntPtr)

.
Note
.Net2 now includes this definition in System.Runtime.InteropServices.Comtypes namespace, but doesn't include return values for the methods
.

        /// The system does not send a message to the application when the user clicks the Cancel button.

.

        [In, MarshalAs(UnmanagedType.Struct)] ref System.Guid rfmtid,

.

        [In, MarshalAs(UnmanagedType.Struct)] ref System.Guid rfmtid,

.

    int GetRunTimes(                    ref SYSTEMTIME pstBegin,

.

                                ref SYSTEMTIME pstEnd,

.

                                out SYSTEMTIME rgstTaskTimes);

.

    int GetNextRunTime(                     ref SYSTEMTIME pstNextRun);

.

    int GetMostRecentRunTime(                   out SYSTEMTIME pstLastRun);

.

    TASK_FLAG_SYSTEM_REQUIRED          = 0x1000,

.

The IServiceProvider defined here is different with "System.IServiceProvider". To remove name collisition, rename "IServiceProvider" to other name such as "UCOMIServiceProvider". Otherwise, you should use fully qualified namespace to the interface since you will normally use "using System" directive.

.

    SFGAO_FILESYSTEM = 0x40000000,

.

    '[helpstring("Resolves a shell link. The system searches for the shell link object and updates the shell link path and its list of identifiers (if necessary)")]

.

    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix"), Flags]

.

[System.Runtime.InteropServices.ComTypes.IStream] in the .NET Framework 2.0.

51: ITask
.

    TASK_EVENT_TRIGGER_AT_SYSTEMSTART = 6, // Ignore the Type field.

.

    using System;

.

    using System.Runtime.InteropServices;

.

    TASK_EVENT_TRIGGER_AT_SYSTEMSTART = 6,

.

    object langbarObject = System.Activator.CreateInstance(classtype);

.
Summary
Exposes methods for a system thumbnail cache that is shared across applications.
.

    Type trayDeskbandType = System.Type.GetTypeFromCLSID(new Guid("E6442437-6C68-4f52-94DD-2CFED267EFB9"));

.

Required referenece to System, System.Security, System.Runtime.InteropServices, System.Reflection Namespaces

.

Required referenece to System, System.Security, System.Runtime.InteropServices, System.Reflection Namespaces

.

Populate pszTitle, pszDocString and pszHelpFile using System.Runtime.InteropServices.Marshal.StringToCoTaskMemUni(string).

.

[System.Runtime.InteropServices.STATSTG], or [System.Runtime.InteropServices.ComTypes.STATSTG] in the .NET Framework 2.0.

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


 
Access PInvoke.net directly from VS: