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

winscard

.

        byte[] sendBytes = new byte[] { 0xFF, 0xCA, 0x00, 0x00, 0x00 }; //get UID command for iClass cards

hhctrl

.

        HTMLHelpCommand command,

.

    public enum HTMLHelpCommand : uint

.

     ByVal uCommand As Integer, ByVal dwData As IntPtr) As Integer

.

Public Enum HTMLHelpCommand

.

HTMLHelp(Nothing, filePath, HTMLHelpCommand.HH_HELP_CONTEXT, contextID)

.

HTMLHelp(Nothing, filePath, HTMLHelpCommand.HH_DISPLAY_TOC, 0)

.

HtmlHelp(IntPtr.Zero, filePath, HTMLHelpCommand.HH_HELP_CONTEXT, contextID)

.

HtmlHelp(IntPtr.Zero, filePath, HTMLHelpCommand.HH_DISPLAY_TOC, 0)

.

        HTMLHelpCommand uCommand,

.

    HtmlHelp(IntPtr.Zero, null, HTMLHelpCommand.HH_DISPLAY_TEXT_POPUP, param);

winmm

.
Summary
The mciSendString function sends a command string to an MCI device. The device that the command is sent to is specified in the command string [This page was changed by iMpostoR]
.

static extern Int32 mciSendString(string command, StringBuilder buffer, int bufferSize, IntPtr hwndCallback);

.

Private Shared Function mciSendString(ByVal command As String, ByVal buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hwndCallback As IntPtr) As Integer

.

Declare Ansi Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal command As String, ByRef buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hWndCallback As IntPtr) As Integer

.

string sCommand = "open \"" + strFilePath + "\" type mpegvideo alias MediaFile";

.

mciSendString(sCommand, null, 0, 0);

.

sCommand = "play MediaFile notify";

.

mciSendString(sCommand, null, 0, _frmObject.Handle.ToInt64());

.

static extern Int32 mciSendString(string command, string buffer, int bufferSize, IntPtr hwndCallback);

.

private void EjectCdCommand()

.

private void CloseCdCommand()

.

     Dim sCommand As String = "open """ + strFilePath + """ type waveaudio alias MediaFile"

.

     mciSendString(sCommand, Nothing, 0, IntPtr.Zero)

.

     sCommand = "play MediaFile notify"

.

     mciSendString(sCommand, Nothing, 0, Me.Handle.ToInt64())

user32

.
Summary
Cancels shutdown of the computer. Same as console command "Shutdown -a"
.

        void IContextMenu.GetCommandString(int idCmd, uint uFlags, int pwReserved, StringBuilder commandString, int cchMax)

.

                commandString = new StringBuilder("...");

.

                commandString = new StringBuilder("...");

.

        void IContextMenu.InvokeCommand (IntPtr pici)

.

                Type typINVOKECOMMANDINFO = Type.GetType("ShellExt.INVOKECOMMANDINFO");

.

                INVOKECOMMANDINFO ici = (INVOKECOMMANDINFO)Marshal.PtrToStructure(pici, typINVOKECOMMANDINFO);

.

            Win32.ShowWindow(hwnd, ShowWindowCommands.Normal );

.
Summary
DeferWindowPosCommands - Enumeration for DeferWindowPos() API call for parameter uFlags
.

enum DeferWindowPosCommands :uint {

.

Public Enum DeferWindowPosCommands As UInteger

.

Public Enum DeferWindowPosCommands

.
Documentation
[DeferWindowPosCommands] on MSDN
.

        internal const UInt32 MF_BYCOMMAND    =0x00000000;

.

    internal const UInt32 MF_BYCOMMAND    =0x00000000;

.

     Main(System.Environment.GetCommandLineArgs())

.

Compile at bash command line with: gcc -Wall idle.c

.

internal const UInt32 MF_BYCOMMAND =0x00000000;

.

MF_BYCOMMAND

.

Indicates that uIDItem gives the identifier of the menu item. If neither the MF_BYCOMMAND nor MF_BYPOSITION flag is specified, the MF_BYCOMMAND flag is the default flag.

.

Sendmessage(hwndMain, WM_COMMAND, intMID,  0) 'Click the MenuItem!

.

internal const UInt32 MF_BYCOMMAND =0x00000000;

.

MF_BYCOMMAND

.

Indicates that uIDItem gives the identifier of the menu item. If neither the MF_BYCOMMAND nor MF_BYPOSITION flag is specified, the MF_BYCOMMAND flag is the default flag.

.

    /// <param name="uiCommand">Command to issue when retrieving data.</param>

.

    public static extern int GetRawInputData(IntPtr hRawInput, RawInputCommand uiCommand, out RAWINPUT pData, ref int pcbSize, int cbSizeHeader);

.

    /// <param name="uiCommand">Command to issue when retrieving data.</param>

.

    public static extern int GetRawInputData(IntPtr hRawInput, RawInputCommand uiCommand, byte[] pData, ref int pcbSize, int cbSizeHeader);

.

            outSize = Win32API.GetRawInputData(m.LParam, RawInputCommand.Input, out input, ref size, Marshal.SizeOf(typeof(RAWINPUTHEADER)));

.

    public static extern uint GetRawInputDeviceInfo(int deviceHandle, uint command, ref DeviceInfo data, ref uint dataSize);

.

static extern uint GetRawInputDeviceInfo(IntPtr hDevice, uint uiCommand, IntPtr pData, ref uint pcbSize);

.

Declare Function GetRawInputDeviceInfo Lib "user32.dll" Alias "GetRawInputDeviceInfoW" (ByVal hDevice As IntPtr, ByVal uiCommand As DeviceInfoTypes, ByVal pData As IntPtr, ByRef pcbSize As UInteger) As Integer

.

Sendmessage(hwndMain, WM_COMMAND, intMID,  0) 'Click the MenuItem!

.

DialogBoxCommandID

.

This code assumes a form called frmMain with a command button called cmdClick a picture box called picClicker and a text box called txtResults

.

Note Twips are no more. Also, I stripped the FOR loop of delta moves from the command button click to the middle of the picture box.

.

private const int WM_SYSCOMMAND = 0x112;

.

   SendMessage(ctrl.Handle, WM_SYSCOMMAND, MOUSE_MOVE, ref nul);

.

    const int WM_SYSCOMMAND = 274;

.

    SendMessage(proc.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0);

.

Public Shared Function ShowWindowAsync(hWnd As IntPtr, <MarshalAs(UnmanagedType.I4)>nCmdShow As ShowWindowCommands) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

ShowWindowCommands

.

Public Function ShowWindowAsync(hWnd As IntPtr, <MarshalAs(UnmanagedType.I4)>nCmdShow As ShowWindowCommands) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

ShowWindowCommands

.
Summary
.

///<Summary>Commands to pass to WinHelp()</Summary>

.

enum WinHelpCommands : uint

.

     HELP_COMMAND      = 0x0102;

.

'''<Summary>Commands to pass to WinHelp()</Summary>

.

Public Enum WinHelpCommands As UInteger

.

     HELP_COMMAND      = &H0102

.

Public Enum WinHelpCommands

.

     HELP_COMMAND       As Long = &H0102

.
Documentation
[WinHelpCommands] on MSDN

dhcpsapi

.

        SqlCommand selCommand = new SqlCommand(strSQL, sqlConnection1);

.

        selCommand.CommandType = CommandType.Text;

.

        SqlDataReader rowReader = selCommand.ExecuteReader();

mpr

.

        CONNECT_COMMAND_LINE = 0X800,

.

    COMMANDLINE     = 0x00000800,

shlwapi

.

   COMMAND = 1,

.

   DDECOMMAND,

.

   qa.GetString(ASSOCF.NOTRUNCATE, ASSOCSTR.COMMAND,

.

   qa.GetString(ASSOCF.NOTRUNCATE, ASSOCSTR.COMMAND,

.

     Console.WriteLine("No command line is associated to .doc print verb.");

.

    Command = 1,

.

    DDECommand,

.
Summary
PathGetArgs - Finds the command line arguments within a given path.
.

/// Finds the command line arguments within a given path.

.

''' Finds the command line arguments within a given path.

advapi32

.

        failureActions.lpCommand = "";

.

        failureActions.lpCommand = "";

.

    string lpCommandLine,

.

    ByVal strCommandLine As String, _

.

                           <[In](), Out(), [Optional]()> ByVal lpCommandLine As StringBuilder, _

.

Use StringBuilder for lpCommandLine parameter for unicode version of this function.

.

     if (!CreateProcessAsUser(hToken, String.Empty, commandLine,

.

     String             commandLine,

.

    Public Function CreateProcessWithLogonW(ByVal userName As String, ByVal domain As String, ByVal password As String, ByVal logonFlags As UInt32, ByVal applicationName As String, ByVal commandLine As String, ByVal creationFlags As UInt32, ByVal environment As UInt32, ByVal currentDirectory As String, ByRef startupInfo As StartupInfo, ByRef processInformation As ProcessInformation) As Boolean

.

    Public Function CreateProcessWithLogonW(ByVal userName As String, ByVal domain As String, ByVal password As String, ByVal logonFlags As UInt32, ByVal applicationName As String, ByVal commandLine As String, ByVal creationFlags As UInt32, ByVal environment As UInt32, ByVal currentDirectory As String, ByRef startupInfo As StartupInfo, ByRef processInformation As ProcessInformation) As Boolean

.

    Dim command As String = "c:\windows\Notepad.exe"

.

        command, command, Convert.ToUInt32(0), Convert.ToUInt32(0), _

.

            String commandLine,

.

            String command = @"c:\windows\notepad.exe";

.

                    command,

.

                    command,

.

        Console.WriteLine( "Command line: {0}", failureActions.lpCommand );

.

        public string lpCommand;

.

        Console.WriteLine( "Command line: {0}", failureActions.lpCommand );

.

        public string lpCommand;

.

    /// Run a command.

.

    SC_ACTION_RUN_COMMAND = 3

.

        public string lpCommand;

wininet

.
Summary
Sends commands directly to an FTP server.
.

public static extern bool FtpCommandA

.

[MarshalAs(UnmanagedType.VBByRefStr)] ref string lpszCommand,

.

IntPtr phFtpCommand);

.

Declare Function FtpCommandA Lib "wininet.dll" _

.

ByVal lpszCommand As String, _

.

ByVal phFtpCommand As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

lpszCommand (in) A pointer to a string that contains the command to send to the FTP server.

.

phFtpCommand (out) A pointer to a handle that is created if a valid data socket is opened. The fExpectResponse parameter must be set to TRUE for phFtpCommand to be filled.

.

Dim ret As Boolean = FTPCommandA(ConnectionHandle, False, 0, sCommand, IntPtr.Zero, IntPtr.Zero)

.
Documentation

setupapi

.

Private Sub Command1_Click()

ntdll

.

        arr = new Int32[] { (Int32)Commands.MEMORYLIST };

.

        arr = new Int32[] { (Int32)Commands.MEMORYLIST };

comdlg32

.

static extern bool FtpCommand(IntPtr hConnect, bool fExpectResponse, [MarshalAs(UnmanagedType.U4)] int dwFlags, string lpszCommand, IntPtr dwContext, ref IntPtr phFtpCommand);

.

Private Shared Function FtpCommand(ByVal hConnect As IntPtr, ByVal fExpectResponse As Boolean, <MarshalAs(UnmanagedType.U4)> ByVal dwFlags As Integer, ByVal lpszCommand As String, ByVal dwContext As IntPtr, ByRef phFtpCommand As IntPtr) As Boolean

.
Documentation
[FtpCommand] on MSDN
.

tcc (http://bellard.org/tcc/) command line to compile:

.

gcc (under cygwin) command line to compile:

winfax

.

   int Command, ref FAX_JOB_ENTRY JobEntry);

Structures

.

    public struct CMINVOKECOMMANDINFOEX {

.

        public int            cbSize;        // Marshal.SizeOf(CMINVOKECOMMANDINFO)

.

        public int            dwHotKey;        // Optional hot key to assign to any application activated by the command. If the fMask member does not specify CMIC_MASK_HOTKEY, this member is ignored.

.

        public IntPtr        hIcon;            // Icon to use for any application activated by the command. If the fMask member does not specify CMIC_MASK_ICON, this member is ignored.

.

        public string        lpVerbW;                // Unicode verb, for those commands that can use it.

.

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

.

        public string        lpDirectoryW;        // Unicode directory, for those commands that can use it.

.

        public POINT        ptInvoke;                // Point where the command is invoked. This member is not valid prior to Microsoft Internet Explorer 4.0.

.

Structure CMINVOKECOMMANDINFOEX

.
Documentation
[CMINVOKECOMMANDINFOEX] on MSDN
.

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

.
Summary
Used by the (NetBIOS) function to retrieve the list of LAN Adapters. The LANA_ENUM structure is pointed to by the ncb_buffer member of the NCB structure when an application issues the NCBENUM command.
.

  *  Structure returned to the NCB command NCBENUM.

.

        public uint dwCommandId;

.
Summary
The NAME_BUFFER structure contains information about a local network name via the (NetBIOS) API Call. One or more NAME_BUFFER structures follows an ADAPTER_STATUS structure when an application specifies the NCBASTAT command in the ncb_command member of the NCB structure.
53: NCB
.
Summary
.

        byte ncb_command;

.

   Dim ncb_command As Byte

.

   UCHAR   ncb_command;        /* command code           */

.

                   /* state when an ASYNCH command   */

.

        public ushort Command;

.

    /// Wrapper for the ScsiPassThrough command

.

        /// Constructor for the command to send to the robot

.

            public string lpCommand;

.

   Public lpCommand As String

.

        public int CurrentCommands;

.

    public bool CommandQueueing;

.

        public int idCommand;

.

        Public idCommand As Int32

.

        public int idCommand;

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


 
Access PInvoke.net directly from VS: