Desktop Functions: Smart Device Functions:
|
Search Results for "system" in [All]winscard1: SCardConnect
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)); winspoolDoesn'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; 7: EnumJobs
Public Submitted As SYSTEMTIME
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> Structure SYSTEMTIME
Imports System.Runtime.InteropServices 8: EnumPorts 9: EnumPrinters 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. 11: OpenPrinter 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. Interfaces13: + var obj = System.Runtime.InteropServices.Marshal.BindToMoniker("IIS://localhost/W3SVC") as IADs; Required referenece to System, System.Security, System.Runtime.InteropServices, System.Reflection Namespaces. 15: IActiveDesktop
int GetWallpaper([MarshalAs(UnmanagedType.LPWStr)] System.Text.StringBuilder pwszWallpaper,
int GetPattern([MarshalAs(UnmanagedType.LPWStr)] System.Text.StringBuilder pwszPattern, int cchPattern, int dwReserved); 16: IADs 17: IAutoComplete2
// 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); 19: ICatInformation
/// 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> 20: IClassFactory
CLSCTX.CLSCTX_LOCAL_SERVER, new System.IntPtr(), 21: IClassFactory2
CLSCTX.CLSCTX_LOCAL_SERVER, new System.IntPtr(), 22: ICustomDoc
using System.Runtime.InteropServices;
Imports System.Runtime.InteropServices 23: IDataObject Also available in System.Runtime.InteropServices.ComTypes 24: IDeskBand 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 25: IDeskBand2 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; 28: IEnumWorkItems 29: IErrorLog
[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); 30: IExtractImage
<Out(), MarshalAs(UnmanagedType.LPWStr)> ByVal pszPathBuffer As System.Text.StringBuilder, _ 31: IFolderFilter
[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 35: ILockBytes
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); 36: IMalloc
/// 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. 38: IObjectSafety
using System;
using System.Runtime.InteropServices; 39: IOleClientSite 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)); 41: IOleWindow
Sub GetWindow(<System.Runtime.InteropServices.Out()> ByRef phwnd As IntPtr) 42: IPersistFile |