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

ncrypt

.

Ëٜ§De§8g:RZì[%ªÛ§ÔªAJŠÿ'^£Ï‚Qaµªžy“3ç°P¨²L#i}FsV<qš_g¸îvµ"„&Ök7}Ù©Nß F5RsEtŒ

.

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

        [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

[DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

        [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

        [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    static extern int NCryptSetProperty(

.

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    internal static extern int NCryptSetProperty(IntPtr hObject,

.

Declare Function NCryptSetProperty Lib "ncrypt.dll" (TODO) As TODO

.
Documentation
[NCryptSetProperty] on MSDN

wer

.

[DllImport("wer.dll", SetLastError = true, CharSet = CharSet.Unicode)]

.

    <DllImport("wer.dll", SetLastError:=True, CharSet:=CharSet.Unicode)> Private Shared Function WerAddExcludedApplication(ByVal pwzExeName As String, ByVal bAllUsers As Boolean) As Integer

.

[DllImport("wer.dll", CharSet = CharSet.Unicode, SetLastError = true)]

.

[DllImport("wer.dll", CharSet = CharSet.Unicode, SetLastError = true)]

.

[DllImport("wer.dll", CharSet = CharSet.Unicode, SetLastError = true)]

.

internal static extern int WerReportSetParameter(IntPtr hReportHandle, int dwparamID, string pwzName, string pwzValue);

.

Declare Function WerReportSetParameter Lib "wer.dll" (TODO) As TODO

.
Documentation
[WerReportSetParameter] on MSDN
.

[DllImport("wer.dll", CharSet = CharSet.Unicode, SetLastError = true)]

Structures

16: ACTCTX
.

[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Unicode)]

.
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.

.

      /// <param name="iMinAnimate">If non-zero and SPI_SETANIMATION is specified, enables minimize/restore animation.</param>

.

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

.

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]

.

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

19: BITMAP
.

The unmanaged size of the structure must be set before the structure can be used by the API. This can be done by using the Init() call which uses the Marshal.SizeOf(this) method to get the appropriate size.

.

The unmanaged size of the structure must be set before the structure can be used by the API. This can be done by using the Init() call which uses the Marshal.SizeOf(this) method to get the appropriate size.

.

The unmanaged size of the structure must be set before the structure can be used by the API. This can be done by using the Init() call which uses the Marshal.SizeOf(this) method to get the appropriate size.

.

      ' Creates and initializes a BitVector32 with all bit flags set to FALSE.

.

      ' Sets the alternating bits to TRUE.

.

      Console.WriteLine("Setting alternating bits to TRUE:")

.

' Setting alternating bits to TRUE:

.

     Set(ByVal value As Byte)

.

     End Set

.

     Set(ByVal value As Byte)

.

     End Set

.

     Set(ByVal value As Byte)

.

     End Set

.

     Set(ByVal value As Byte)

.

     End Set

.

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]

.

  [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]

.

      set

.

      set

.

  <FieldOffset(0)> Public dwFileAttributes As Int32

.

  <FieldOffset(4)> Public ftCreationTime As Int64         ' FILETIME

.

  <FieldOffset(12)> Public ftLastAccessTime As Int64      ' FILETIME

.

  <FieldOffset(20)> Public ftLastWriteTime As Int64       ' FILETIME

.

  <FieldOffset(28)> Public dwVolumeSerialNumber As Int32

.

  <FieldOffset(32)> Public nFileSizeHigh As Int32

.

  <FieldOffset(36)> Public nFileSizeLow As Int32

.

  <FieldOffset(40)> Public nNumberOfLinks As Int32

.

  <FieldOffset(44)> Public nFileIndexHigh As Int32

.

  <FieldOffset(48)> Public nFileIndexLow As Int32

.

with [FieldOffset()] for every field of structure.

.
Summary
The CAPTUREPARMS structure contains parameters that control the streaming video capture process. This structure is used to get and set parameters that affect the capture rate, the number of buffers to use while capturing, and how capture is terminated.
.

    /// This structure is used to get and set parameters that affect the capture rate, the number of

.

    [StructLayout(LayoutKind.Sequential, Pack=1, CharSet=CharSet.Ansi)]

.

        /// to perform step and streaming capture. The default value is FALSE. Applications that set

.

        /// Maximum number of index entries in an AVI file. Values range from 1800 to 324,000. If set

.

        /// set to AVSTREAMMASTER_AUDIO, the audio stream is considered the master stream and the video stream

.

        /// duration is forced to match the audio duration. If this member is set to AVSTREAMMASTER_NONE, the

.

        ''' to perform step and streaming capture. The default value is FALSE. Applications that set this

.

        ''' Maximum number of index entries in an AVI file. Values range from 1800 to 324,000. If set to 0,

.

        ''' member is set to AVSTREAMMASTER_AUDIO, the audio stream is considered the master stream

.

        ''' set to AVSTREAMMASTER_NONE, the durations of audio and video streams can differ.

.

    [StructLayout(LayoutKind.Sequential, Pack=4, CharSet=CharSet.Unicode)]

.

     /// The size of the structure, in bytes. Must be set to sizeof(CHANGEFILTERSTRUCT)

.

        Reset = 0, Allow = 1, DisAllow = 2

.

[StructLayout(LayoutKind.Sequential, Pack=4, CharSet=CharSet.Auto)]

.

    public int yOffset;

.

    public byte bCharSet;

.

<StructLayout(LayoutKind.Sequential, Pack := 4, CharSet := CharSet.Auto)> _

.

    Public yOffset As Integer

.

    Public bCharSet As Byte

33: CIDA
.

    /// An array of offsets, relative to the beginning of this structure. The array contains

.

    /// cidl+1 elements. The first element of aoffset contains an offset to the fully-qualified

.

    /// Each of the remaining elements of the array contains an offset to one of the PIDLs to be

.

    public uint[] aoffset;

.

        public string        lpVerb;        // either a string or MAKEINTRESOURCE(idOffset)

.

   public void SetColor(System.Drawing.Color color)

.

    [FieldOffset(0)]

.

    [FieldOffset(1)]

.

    [FieldOffset(2)]

.

    [FieldOffset(0)]

.

[StructLayout ( LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 4 )]

.

const UInt32 PCF_DTRDSR    = 0x0001; // DTR (data-terminal-ready)/DSR (data-set-ready) supported

.

const UInt32 PCF_SETXCHAR      = 0x0020; // Settable XON/XOFF supported

.

    int dwSettableParams;

.

    int dwSettableBaud;

.

    short wSettableData;

.

    short wSettableStopParity;

.

    Dim dwSettableParams As Integer

.

    Dim dwSettableBaud As Integer

.

    Dim wSettableData As Short

.

    Dim wSettableStopParity As Short

.
Summary
The COMMTIMEOUTS structure is used in the SetCommTimeouts and GetCommTimeouts functions to set and query the time-out parameters for a communications device. The parameters determine the behavior of ReadFile, WriteFile, ReadFileEx, and WriteFileEx operations on the device.
.

If an application sets ReadIntervalTimeout and ReadTotalTimeoutMultiplier to MAXDWORD and sets ReadTotalTimeoutConstant to a value greater than zero and less than MAXDWORD, one of the following occurs when the ReadFile function is called:

.

    public const int CERT_STORE_SET_LOCALIZED_NAME_FLAG = 0x00000002;

.

    Public Const CERT_STORE_SET_LOCALIZED_NAME_FLAG As Integer = &H2

.

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]

.

   public MessageType Type { get; set; }           // MessageType.FV_RUBBERBAND_GEORECT_MSG (3)

.

   public int MessageId { get; set; }

.

   public double NW_Latitude { get; set; }

.

   public double NW_Longitude { get; set; }

.

   public double SE_Latitude { get; set; }

.

   public double SE_Longitude { get; set; }

.

         NativeWindow.SetForegroundWindow(this.Handle);

.

[DllImport("advapi32", SetLastError = true, CharSet = CharSet.Unicode)]

.

<DllImport("advapi32", SetLastError:=True, CharSet:=CharSet.Unicode)>

.

     /// This value can be used to create a process that uses a different set of credentials

.

    [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]

.

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

.

   public uint dwDebugInfoFileOffset;

.

  [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]

.

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _

.

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]

.

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> Structure CRYPTPROTECT_PROMPTSTRUCT

.
Summary
The CRYPT_BIT_BLOB structure contains a set of bits represented by an array of bytes.
.

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _

.

  [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Unicode)]

.

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]

.

1. cbSize set to 20 bytes works well for me

.

        DATADIR_SET = 2

.

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]

.

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> Structure DATA_BLOB

54: DCB
.

The DCB structure defines the control setting for a serial communications device.

.

        set { Flags[fBinary] = value; }

.

        set { Flags[fParity] = value; }

.

        set { Flags[fOutxCtsFlow] = value; }

.

        set { Flags[fOutxDsrFlow]  = value; }

.

        set { Flags[fDtrControl] = (int)value; }

.

        set { Flags[fDsrSensitivity] = value; }

.

        set { Flags[fTXContinueOnXoff] = value; }

.

        set { Flags[fOutX] = value; }

.

        set { Flags[fInX] = value; }

.

        set { Flags[fErrorChar] = value; }

.

        set { Flags[fNull] = value; }

.

        set { Flags[fRtsControl]  = (int)value; }

.

        set { Flags[fAbortOnError] = value; }

.

[StructLayout (LayoutKind.Sequential, CharSet=CharSet.Unicode)]

.

    /// Set of flags that determine which members of this structure are being requested.

.

    /// A value that receives a set of flags that define the mode of operation for the band object.

.

[StructLayout(LayoutKind.Explicit, CharSet = CharSet.Ansi)]

.

    [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)]

.

Since the DEVMODE members beyond dmDisplayFrequency do not have to be declared, the structure can vary in size. You should set dmSize to effective size of your implemetation before calling API functions:

.

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

.

    [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Auto)]

.

   [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]

.

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

.

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]

.

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

.

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]

.

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]

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


 
Access PInvoke.net directly from VS: