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

Structures

.
Summary
The BG_BASIC_CREDENTIALS structure identifies the user name and password to authenticate. (MSDN)
.

   public string Password;

.

      Public Password As String

.

        public int            nShow;         // one of SW_ values for ShowWindow() API

.

        public string        lpParametersW;        // Unicode parameters, for those commands that can use it.

.

   switch (m.Msg)

.

public static extern bool CreateProcessWithTokenW(IntPtr hToken, LogonFlags dwLogonFlags, string lpApplicationName, string lpCommandLine, CreationFlags dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, [In] ref STARTUPINFO lpStartupInfo, out PROCESS_INFORMATION lpProcessInformation);

.

    Public Shared Function CreateProcessWithTokenW(hToken As IntPtr, dwLogonFlags As Integer, lpApplicationName As String, lpCommandLine As String, dwCreationFlags As Integer, lpEnvironment As IntPtr, lpCurrentDirectory As IntPtr, ByRef lpStartupInfo As STARTUPINFO, ByRef lpProcessInformation As PROCESS_INFORMATION) As Boolean

.
Documentation
[CreateProcessWithTokenW] on MSDN
.

- Removed "[MarshalAs(UnmanagedType.LPWStr)]" attributes on pswMessageText and pszCaptionText.

.

    public Int32 dmPelsWidth;

.

    Public dmPelsWidth As Integer

.

    public Int32 dmPelsWidth;

.
WARNING
The documentation (from which I created this structure) seems to have REVERSED the fields dwTimeStamp and dwReserved. When I look at live data on the server, the field which is allegedly "dwTimeStamp" is zero, but "dwReserved" contains a value equal to the time stamp (An integer value representing the number of hours that have elapsed since midnight (00:00:00), January 1, 1601 UTC). The LDP.exe tool parses the data correctly. So I'm going to switch my struct above to reflect reality.
.

   EnablePasswordAtLogon     = 0x04,

.

   EnablePasswordAtLogon = &H4

.

    ''' a COFF symbol table could be created by specifying the linker switch

.

    ReservedBytesWo = &H80

.

    RunFromSwapIfInRemovableMedia = &H400

.

    RunFromSwapIfInNetworkMedia = &H800

.

      ' created by specifying the linker switch /DEBUGTYPE:COFF.  COFF symbol tables are almost

.

    ''' The linker /NOENTRY switch sets this field to 0.

.

    ''' The ImageBase can be set at link time with the /BASE switch, or later with the  

.

    ''' This field can be set with the linker /ALIGN switch.

.

    ''' SectionAlignment. The linker switch /OPT:WIN98 sets the file alignment on x86  

.

    ''' It can be set with the linker /VERSION switch.

.

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

.

    ''' file when the /RELEASE linker switch is used.

.

    ' The linker /NOENTRY switch sets this field to 0.

.

    ' The ImageBase can be set at link time with the /BASE switch, or later with the REBASE utility.

.

    ' This field can be set with the linker /ALIGN switch.

.

    ' It can be set with the linker /VERSION switch.

.

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

.

    ' can be 0.  The checksum is placed in the file when the /RELEASE linker switch is used.

.

    ' The linker /NOENTRY switch sets this field to 0.

.

    ' The ImageBase can be set at link time with the /BASE switch, or later with the REBASE utility.

.

    ' This field can be set with the linker /ALIGN switch.

.

    ' It can be set with the linker /VERSION switch.

.

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

.

    ' can be 0.  The checksum is placed in the file when the /RELEASE linker switch is used.

.

            FF_SWISS = (2 << 4),

.

        FF_SWISS = (2 << 4)

.
Summary
.

private const uint MIXERCONTROL_CT_CLASS_SWITCH = 0x20000000u;

.

private const uint MIXERCONTROL_CT_SC_SWITCH_BOOLEAN = 0x00000000u;

.

private const uint MIXERCONTROL_CT_SC_SWITCH_BUTTON  = 0x01000000u;

.

     BOOLEAN    =(MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN),

.

     BUTTON     =(MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN),

.

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

.

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

.
Summary
.

   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.PasswordLength + 1)]

.

   public string szPassword;

.

const int PasswordLength = 256;

.
Summary
This is used for calling the AcquireCredentials function. This is typically used for NTLM/Kerberos Authentication. This structure contains the credentials (user name, password, and domain name).
.

      public string Password;

.

      public int PasswordLength;

.

        public string shi2_passwd;

.

    <MarshalAs(UnmanagedType.LPWStr)> Dim shi2_passwd As String

.

        public IntPtr shi502_passwd;

.

    public string shi503_passwd;    // used w/ share level security only

.

        public string password;

.

        public int password_age;

.

        public int password_expired;

.

            public string password;

.

            public int password_age;

.

        public string password;

.

        public int password_age;

.

            public string password;

.

            public int password_age;

.

            public int password_expired;

.

            Public password As String

.

            Public password_age As Integer

.

            Public password_expired As Integer

crypt32

.

        [MarshalAs(UnmanagedType.LPWStr)] String szPassword,

.

    <MarshalAs(UnmanagedType.LPWStr)> ByVal szPassword As String, _

Constants

.

    switch (Msg) {

.

const readonly int CRED_TYPE_DOMAIN_PASSWORD = 2;

.

const readonly int CRED_TYPE_DOMAIN_VISIBLE_PASSWORD = 4;

.

   DOMAIN_PASSWORD

.

   DOMAIN_VISIBLE_PASSWORD

28: IDC_
.

            IDC_SIZENESW = 32643,

.

        IDC_SIZENESW = 32643,

.

        IDC_SIZENESW = 32643

29: MAPI
.

  /// If the user needs to provide a password and profile name to enable a successful logon,

.

  /// MAPILogon should only prompt for a password and not allow the user to change the profile name.

.

  /// Either MAPI_PASSWORD_UI or MAPI_LOGON_UI should not be set, since the intent is

.

  public const uint MAPI_PASSWORD_UI = 0x00020000;

.

    Public Const MAPI_PASSWORD_UUI As UInteger = &H20000

30: NERR_
.

        /// <summary> 2203 - The password parameter is invalid. </summary>

.

        public const int BadPassword = 2203;

.

        /// <summary> 2242 - The password of this user has expired. </summary>

.

        public const int PasswordExpired = 2242;

.

        /// <summary> 2243 - The password of this user cannot change. </summary>

.

        public const int PasswordCantChange = 2243;

.

        /// <summary> 2244 - This password cannot be used now. </summary>

.

        public const int PasswordHistConflict = 2244;

.

        /// <summary> 2245 - The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements. </summary>

.

        public const int PasswordTooShort = 2245;

.

        /// <summary> 2246 - The password of this user is too recent to change. </summary>

.

        public const int PasswordTooRecent = 2246;

.

        /// <summary> 2403 - This share name or password is invalid. </summary>

.

        public const int BadPasswordCore = 2403;

.

        /// <summary> 2458 - A password mismatch has been detected. </summary>

.

        public const int PasswordMismatch = 2458;

.

        /// <summary> 2701 - The password must change at the next logon. </summary>

.

        public const int PasswordMustChange = 2701;

.

        /// <summary> 2703 - The password is too long. </summary>

.

        public const int PasswordTooLong = 2703;

.

        /// <summary> 2704 - The password does not meet the complexity policy. </summary>

.

        public const int PasswordNotComplexEnough = 2704;

.

        /// <summary> 2705 - The password does not meet the requirements of the password filter DLLs. </summary>

.

        public const int PasswordFilterError = 2705;

.

    public static PropertyKey PKEY_Pairing_IsWifiOnlyDevice = new PropertyKey(0x8807cae6, 0x7db6, 0x4f10, 0x8e, 0xe4, 0x43, 0x5e, 0xaa, 0x13, 0x92, 0xbc, 0x0000010);    // VT_BOOL

.

    public static PropertyKey PKEY_WCN_DevicePasswordId = new PropertyKey(0x88190b89, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x0000000c); // VT_INT

.

    public static PropertyKey SENSOR_DATA_TYPE_BOOLEAN_SWITCH_STATE = new PropertyKey(0X38564A7C, 0XF2F2, 0X49BB, 0X9B, 0X2B, 0XBA, 0X60, 0XF6, 0X6A, 0X58, 0XDF, 2); //[VT_BOOL]

.

    public static PropertyKey SENSOR_DATA_TYPE_MULTIVALUE_SWITCH_STATE = new PropertyKey(0X38564A7C, 0XF2F2, 0X49BB, 0X9B, 0X2B, 0XBA, 0X60, 0XF6, 0X6A, 0X58, 0XDF, 3); //[VT_R8]

.

See BuildExplicitAccessWithName

33: SW
.

const UInt32 SWP_NOSIZE      =0x0001;

.

const UInt32 SWP_NOMOVE      =0x0002;

.

const UInt32 SWP_NOZORDER    =0x0004;

.

const UInt32 SWP_NOREDRAW    =0x0008;

.

const UInt32 SWP_NOACTIVATE      =0x0010;

.

const UInt32 SWP_FRAMECHANGED    =0x0020;

.

const UInt32 SWP_SHOWWINDOW      =0x0040;

.

const UInt32 SWP_HIDEWINDOW      =0x0080;

.

const UInt32 SWP_NOCOPYBITS      =0x0100;

.

const UInt32 SWP_NOOWNERZORDER   =0x0200;

.

const UInt32 SWP_NOSENDCHANGING  =0x0400;

.

const UInt32 SWP_DRAWFRAME       =SWP_FRAMECHANGED;

.

const UInt32 SWP_NOREPOSITION    =SWP_NOOWNERZORDER;

.

const UInt32 SWP_DEFERERASE      =0x2000;

.

const UInt32 SWP_ASYNCWINDOWPOS  =0x4000;

.

    Const SWP_NOSIZE As Integer = &H1

.

    Const SWP_NOMOVE As Integer = &H2

.

    Const SWP_NOZORDER As Integer = &H4

.

    Const SWP_NOREDRAW As Integer = &H8

.

    Const SWP_NOACTIVATE As Integer = &H10

.

    Const SWP_FRAMECHANGED As Integer = &H20

.

    Const SWP_SHOWWINDOW As Integer = &H40

.

    Const SWP_HIDEWINDOW As Integer = &H80

.

    Const SWP_NOCOPYBITS As Integer = &H100

.

    Const SWP_NOOWNERZORDER As Integer = &H200

.

    Const SWP_NOSENDCHANGING As Integer = &H400

.

    Const SWP_DRAWFRAME As Integer = SWP_FRAMECHANGED

.

    Const SWP_NOREPOSITION As Integer = SWP_NOOWNERZORDER

.

    Const SWP_DEFERERASE As Integer = &H2000

.

    Const SWP_ASYNCWINDOWPOS As Integer = &H4000

34: SWP
.

const UInt32 SWP_NOSIZE      =0x0001;

.

const UInt32 SWP_NOMOVE      =0x0002;

.

const UInt32 SWP_NOZORDER    =0x0004;

.

const UInt32 SWP_NOREDRAW    =0x0008;

.

const UInt32 SWP_NOACTIVATE      =0x0010;

.

const UInt32 SWP_FRAMECHANGED    =0x0020;

.

const UInt32 SWP_SHOWWINDOW      =0x0040;

.

const UInt32 SWP_HIDEWINDOW      =0x0080;

.

const UInt32 SWP_NOCOPYBITS      =0x0100;

.

const UInt32 SWP_NOOWNERZORDER   =0x0200;

.

const UInt32 SWP_NOSENDCHANGING  =0x0400;

.

const UInt32 SWP_DRAWFRAME       =SWP_FRAMECHANGED;

.

const UInt32 SWP_NOREPOSITION    =SWP_NOOWNERZORDER;

.

const UInt32 SWP_DEFERERASE      =0x2000;

.

const UInt32 SWP_ASYNCWINDOWPOS  =0x4000;

.

        /// The specified network password is not correct.

.

        public const int ERROR_INVALID_PASSWORD = 86;

.

        /// The verify-on-write switch parameter value is not correct.

.

        public const int ERROR_INVALID_VERIFY_SWITCH = 118;

.

        public const int ERROR_SWAPERROR = 999;

.

        /// The account name is invalid or does not exist, or the password is invalid for the account name specified.

.

        /// The format of the specified password is invalid.

.

        /// The password is too complex to be converted to a LAN Manager password. The LAN Manager password returned is a NULL string.

.

        /// Unable to update the password. The value provided as the current password is incorrect.

.

        public const int ERROR_WRONG_PASSWORD = 1323;

.

        /// Unable to update the password. The value provided for the new password contains values that are not allowed in passwords.

.

        public const int ERROR_ILL_FORMED_PASSWORD = 1324;

.

        /// Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirement of the domain.

.

        public const int ERROR_PASSWORD_RESTRICTION = 1325;

.

        /// Logon failure: unknown user name or bad password.

.

        /// Logon failure: user account restriction.  Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced.

.

        /// Logon failure: the specified account password has expired.

.

        /// A cross-encrypted password is necessary to change a user password.

.

        /// A cross-encrypted password is necessary to change this user password.

.

        /// Mutual Authentication failed. The server's password is out of date at the domain controller.

.

        /// The user's password must be changed before logging on the first time.

.

        /// The network connection was made successfully, but the user had to be prompted for a password other than the one originally specified.

.

        /// Security Account Manager needs to get the boot password.

.

        /// Manifest Parse Error : Switch from current encoding to specified encoding not supported.

.

        public const int ERROR_SXS_XML_E_INVALIDSWITCH = 14068;

.

        /// The server process could not be started because the configured identity is incorrect.  Check the username and password.

.

        public const int STG_E_DISKISWRITEPROTECTED = (int)(0x80030013 - 0x100000000);

.

        /// The identity or password set on the application is not valid

.

        public const int COMADMIN_E_USERPASSWDNOTVALID = (int)(0x80110414 - 0x100000000);

36: WM
.
WM_NEXTMENU 0x213 The WM_NEXTMENU message is sent to an application when the right or left arrow key is used to switch between the menu bar and the system menu.

urlmon

.

    Dim sw As Stopwatch = Stopwatch.StartNew()

.

    sw.Stop()

.

    Console.WriteLine("Total time to copy {0:N0} bytes = {1}", new TimeSpan(sw.ElapsedTicks))

.

    sw = Nothing

.

                sWhereToSaveOnDisk,

msvcrt

.

static extern int swprintf(

.

swprintf(buffer, "Greetings from thread %d\n", __arglist(Thread.CurrentThread.ManagedThreadId));

setupapi

.

Dim BytesWritten As Long

.

Len(PrintOut), BytesWritten, 0)

.

Debug.Print “Sent ” & BytesWritten & ” bytes.”

.

    EntryPoint:="SetupDiGetClassDevsW", _

.

    EntryPoint:="SetupDiGetClassDevsW", _

.

Public Declare Auto Function SetupDiGetClassDevs Lib "setupapi.dll" Alias "SetupDiGetClassDevsW" ( _

ntdll

.

    ProcessWorkingSetWatch, // q: PROCESS_WS_WATCH_INFORMATION[]; s: void

.

    ProcessWx86Information,

.

    ProcessWow64Information, // q: ULONG_PTR

.

    ProcessWorkingSetWatchEx, // q: PROCESS_WS_WATCH_INFORMATION_EX[]

.

    ProcessWindowInformation, // 50, q: PROCESS_WINDOW_INFORMATION

.

    SystemContextSwitchInformation = 0x0024,

cards

.

See the CardsWrapper example.

.

See the CardsWrapper example.

.

See the CardsWrapper example.

.

See the CardsWrapper example.

kernel32

.

MFC automatically manages activation context switching for fusion/winsxs support.

.

    Public Function IsWinXP() As Boolean

.

    Public Function IsWinVista() As Boolean

.

   uint nNumberOfBytesToWrite, out uint lpNumberOfBytesWritten, bool bAbort,

.

        out uint lpNumberOfAttrsWritten

.

        out uint lpNumberOfCharsWritten

.

        out uint lpNumberOfCharsWritten,

.

        out uint lpNumberOfEventsWritten

.

        out uint lpNumberOfAttrsWritten

.

        out uint lpNumberOfCharsWritten

.

        CALLBACK_STREAM_SWITCH = 0x00000001

.

        CALLBACK_STREAM_SWITCH = &H1

.

        CALLBACK_STREAM_SWITCH = 0x00000001

.

        CALLBACK_STREAM_SWITCH = &H1

.

namespace nsWin32Calls

.

using nsWin32Calls;        // encapsulates Win32 calls

.

        switch (mode)

.

                    StreamWriter sw = new StreamWriter(stream, Encoding.Unicode);

.

                    sw.WriteLine(s);

.

                    sw.Flush();

.

        StreamWriter sw = new StreamWriter(stream, Encoding.Unicode);

.

        sw.AutoFlush = true;

.

            sw.WriteLine("Hello world {0}", i);

.

        sw.Write("Final line");

.

        sw.Close();

.

     DiskIsWritable = (EFileDevice.Disk << 16) | (0x0009 << 2) | EMethod.Buffered | (0 << 14),

.

   Private Function SwapStringBytes(ByVal sIn As String) As String

.

       SwapStringBytes = sTemp

.

<DllImport("kernel32.dll", CharSet:=CharSet.Unicode, EntryPoint:="EnumResourceNamesW", SetLastError:=True)> _

.

<DllImport("kernel32.dll", CharSet:=CharSet.Unicode, EntryPoint:="EnumResourceNamesW", SetLastError:=True)> _

.

    <DllImport("kernel32.dll", CharSet:=CharSet.Unicode, EntryPoint:="EnumResourceNamesW", SetLastError:=True)> _

.

    <DllImport("kernel32.dll", CharSet:=CharSet.Unicode, EntryPoint:="EnumResourceNamesW", SetLastError:=True)> _

.

    [DllImport("kernel32.dll", EntryPoint = "EnumResourceNamesW", CharSet = CharSet.Unicode, SetLastError = true)]

.

    static extern bool EnumResourceNamesWithName(

.

    [DllImport("kernel32.dll", EntryPoint = "EnumResourceNamesW", CharSet = CharSet.Unicode, SetLastError = true)]

.

    static extern bool EnumResourceNamesWithID(

.

      if (EnumResourceNamesWithID(hMod, RT_ICON, new EnumResNameDelegate(EnumRes), IntPtr.Zero) == false)

.

    EnumResourceTypesW(hMod, callBack, IntPtr.Zero)

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


 
Access PInvoke.net directly from VS: