Desktop Functions: Smart Device Functions:
|
Search Results for "Command" in [All]winspool1: SetJob
int Level, ref byte pJob, int Command_Renamed);
Level As Integer, ByRef pJob As Byte, Command_Renamed As Integer) 2: XcvData netapi32With all the different information you can get with just one command; this one sure is difficult. Very, very little documentation on this because Microsoft probably doesn't want easy access to these. My company has allowed me to contribute my findings as long as I mention it. We are Digital Boundary Group, based in London, Ontario, Canada, and we do penetration testing. Please visit us at http://digitalboundary.net I will be allowed to continue my contributions as long as my company does not lose credit for its contributions. This is a simple console program which lets you send messages (quite similar to the NET SEND command...).
/// The command to run.
public string Command;
public int CurrentCommands; Enums
/// dialog box, reordering, shortcut menus, new folders, delete, and other shortcut menu commands.
''' dialog box, reordering, shortcut menus, new folders, delete, and other shortcut menu commands.
// Core command properties
internal static PropertyKey UI_PKEY_CommandId = new PropertyKey(new Guid(Convert.ToString(100, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4);
internal static PropertyKey UI_PKEY_CommandType = new PropertyKey(new Guid(Convert.ToString(105, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4);
enum DeferWindowPosCommands :uint {
Public Enum DeferWindowPosCommands As UInteger
Public Enum DeferWindowPosCommands 10: DeskBandCommands
enum DeskBandCommands
Enum DeskBandCommands
/// Represents possible dialogbox command id values by the MB_GetString function.
public enum DialogBoxCommandID : int
Public Enum DialogBoxCommandID 12: HCBT
SysCommand = 8,
SysCommand = 8 13: HRESULT
///Not enough memory available to complete this command.
[Description("Not enough memory available to complete this command.")]
///The reader or smart card is not ready to accept commands.
[Description("The reader or smart card is not ready to accept commands.")]
'''Not enough memory available to complete this command.
<Description("Not enough memory available to complete this command.")> _
'''The reader or smart card is not ready to accept commands.
<Description("The reader or smart card is not ready to accept commands.")> _ 14: MoveFileFlags This is the command you would use for an uninstaller program, a program to delete itself. If you set the first parameter to a directory everything inside of the directory can be (re)moved. To delete set the second parameter to null. 15: OLECMDEXECOPT 16: OLECMDF 17: OLECMDID 18: RasError
/// <summary>654. A command or response in the device.INF file section refers to an undefined macro. </summary>
/// <summary>660. The device.INF file contains no responses for the command. </summary>
/// <summary>661. The device.INF file is missing a command. </summary>
ERROR_NO_COMMAND_FOUND,
ERROR_IN_COMMAND,
/// <summary>700. The expanded command in the device.INF file is too long. </summary> 19: RawInputCommand
/// Enumeration contanining the command types to issue.
public enum RawInputCommand
Enum RawInputCommand 21: SC_ACTION_TYPE
Run_Command = 3
Run_Command = 3
enum ShowWindowCommands
/// is similar to <see cref="Win32.ShowWindowCommand.Normal"/>, except
/// <see cref="Win32.ShowWindowCommand.ShowMinimized"/>, except the
/// similar to <see cref="Win32.ShowWindowCommand.Show"/>, except the
Enum ShowWindowCommands As Integer
''' is similar to <see cref="Win32.ShowWindowCommands.Normal"/>, except
''' <see cref="Win32.ShowWindowCommands.ShowMinimized"/>, except the
''' similar to <see cref="Win32.ShowWindowCommands.Show"/>, except the 23: SHOWWINDOW_FLAGS
public enum ShowWindowCommands : uint {
/// Displays a window in its most recent size and position. This value is similar to <see cref="ShowWindowCommands.SW_SHOWNORMAL"/>, except the window is not activated.
/// Displays the window as a minimized window. This value is similar to <see cref="ShowWindowCommands.SW_SHOWMINIMIZED"/>, except the window is not activated.
/// Displays the window in its current size and position. This value is similar to <see cref="ShowWindowCommands.SW_SHOW"/>, except the window is not activated.
Public Enum ShowWindowCommands 24: SysCommands
enum SysCommands : int
Public Enum SysCommands As Int32
'''Sets the state of the display. This command supports devices that In WM_SYSCOMMAND messages, the four low-order bits of the wParam parameter are used internally by the system. To obtain the correct result when testing the value of wParam, an application must combine the value 0xFFF0 with the wParam value by using the bitwise AND operator. 25: UI_CommandType 26: UI_ExecutionVerb 27: UI_Invalidations 28: WindowsMessages
/// Sent to an application that has initiated a training card with Microsoft Windows Help. The message informs the application when the user clicks an authorable button. An application initiates a training card by specifying the HELP_TCARD command in a call to the WinHelp function.
/// The WM_COMMAND message is sent when the user selects a command item from a menu, when a control sends a notification message to its parent window, or when an accelerator keystroke is translated.
COMMAND = 0x0111,
/// A window receives this message when the user chooses a command from the Window menu, clicks the maximize button, minimize button, restore button, close button, or moves the form. You can stop the form from moving by filtering this out.
SYSCOMMAND = 0x0112,
/// The WM_MENUCOMMAND message is sent when the user makes a selection from a menu.
MENUCOMMAND = 0x0126,
/// The WM_ENTERSIZEMOVE message is sent one time to a window after it enters the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border, or when the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns.
/// The WM_EXITSIZEMOVE message is sent one time to a window, after it has exited the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border, or when the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns.
/// Sent by an application to direct the IME window to carry out the requested command. The application uses this message to control the IME window that it has created. To send this message, the application calls the SendMessage function with the following parameters.
/// Sent to an application to provide commands and request information. A window receives this message through its WindowProc function.
/// The WM_APPCOMMAND message notifies a window that the user generated an application command event, for example, by clicking an application command button using the mouse or typing an application command key on the keyboard.
APPCOMMAND = 0x0319,
/// The user completed an input event (for example, pressed an application command button on the mouse or an application command key on the keyboard), and the application did not handle the WM_APPCOMMAND message generated by that input.
/// If the Shell procedure handles the WM_COMMAND message, it should not call CallNextHookEx. See the Return Value section for more information.
HSHELL_APPCOMMAND = 12,
'''The WM_COMMAND message is sent when the user selects a command item from a menu when a control sends a notification message to its parent window or when an accelerator keystroke is translated.
WM_COMMAND = &H111
'''The WM_ENTERSIZEMOVE message is sent one time to a window after it enters the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border or when the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns.
'''The WM_EXITSIZEMOVE message is sent one time to a window after it has exited the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border or when the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns.
'''Sent by an application to direct the IME window to carry out the requested command. The application uses this message to control the IME window that it has created. To send this message the application calls the SendMessage function with the following parameters.
'''Sent to an application to provide commands and request information. A window receives this message through its WindowProc function.
'''The WM_MENUCOMMAND message is sent when the user makes a selection from a menu.
WM_MENUCOMMAND = &H126
'''A window receives this message when the user chooses a command from the Window menu (formerly known as the system or control menu) or when the user chooses the maximize button minimize button restore button or close button.
WM_SYSCOMMAND = &H112
'''Sent to an application that has initiated a training card with Microsoft Windows Help. The message informs the application when the user clicks an authorable button. An application initiates a training card by specifying the HELP_TCARD command in a call to the WinHelp function.
''' Notifies a window that the user generated an application command event, for example,
''' by clicking an application command button using the mouse or typing an application command key on the keyboard.
WMAppcommand = &H319
''' A window receives this message when the user chooses a command from the Window menu
''' The type of system command requested
''' if a window menu command is chosen with the mouse.
''' if a window menu command is chosen with the mouse.
''' This parameter is –1 if the command is chosen using a system accelerator, or zero if using a mnemonic.
''' In <see cref="WmSysCommand"/> messages,
WmSysCommand = &H112
''' Message sent when the user selects a command item from a menu,
WmCommand = &H111
''' or when the window passes the <see cref="WindowsMessages.WmSysCommand"/> message to the
''' or when the window passes the <see cref="WindowsMessages.WmSysCommand"/> message to the
WmMenuCommand = &H126
public const Int32 WM_SYSCOMMAND = 0x112;
if(m.Msg == WM_SYSCOMMAND) 29: WindowStyles
/// The child window should pass the message to the parent window procedure, which should call the WinHelp function using the HELP_WM_HELP command.
/// <summary>Specifies a palette window, which is a modeless dialog box that presents an array of commands.</summary>
''' The child window should pass the message to the parent window procedure, which should call the WinHelp function using the HELP_WM_HELP command.
''' <summary>Specifies a palette window, which is a modeless dialog box that presents an array of commands.</summary> 30: WindowStylesEx
/// The child window should pass the message to the parent window procedure, which should call the WinHelp function using the HELP_WM_HELP command.
/// <summary>Specifies a palette window, which is a modeless dialog box that presents an array of commands.</summary>
''' The child window should pass the message to the parent window procedure, which should call the WinHelp function using the HELP_WM_HELP command.
''' <summary>Specifies a palette window, which is a modeless dialog box that presents an array of commands.</summary> 31: WinHelpCommands
///<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 cfgmgr32comdlg3233: FtpCommand
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 34: GetOpenFileName tcc (http://bellard.org/tcc/) command line to compile: gcc (under cygwin) command line to compile: user3235: CancelShutdown 36: CreatePopupMenu
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); 37: CreateWindowEx
Win32.ShowWindow(hwnd, ShowWindowCommands.Normal );
enum DeferWindowPosCommands :uint {
Public Enum DeferWindowPosCommands As UInteger
Public Enum DeferWindowPosCommands 39: DeleteMenu
internal const UInt32 MF_BYCOMMAND =0x00000000; 40: EnableMenuItem
internal const UInt32 MF_BYCOMMAND =0x00000000;
Main(System.Environment.GetCommandLineArgs()) 42: GetLastInputInfo Compile at bash command line with: gcc -Wall idle.c 43: GetMenu 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. 44: GetMenuItemID
Sendmessage(hwndMain, WM_COMMAND, intMID, 0) 'Click the MenuItem! 45: GetMenuString 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. 46: GetRawInputData
/// <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 49: GetSubMenu
Sendmessage(hwndMain, WM_COMMAND, intMID, 0) 'Click the MenuItem! 50: MB_GetString 51: mouse_event 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. 52: ReleaseCapture
private const int WM_SYSCOMMAND = 0x112;
SendMessage(ctrl.Handle, WM_SYSCOMMAND, MOUSE_MOVE, ref nul); 53: SetParent
const int WM_SYSCOMMAND = 274;
SendMessage(proc.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0); 54: ShowWindow
Public Shared Function ShowWindowAsync(hWnd As IntPtr, <MarshalAs(UnmanagedType.I4)>nCmdShow As ShowWindowCommands) As <MarshalAs(UnmanagedType.Bool)> Boolean 55: ShowWindowAsync
Public Function ShowWindowAsync(hWnd As IntPtr, <MarshalAs(UnmanagedType.I4)>nCmdShow As ShowWindowCommands) As <MarshalAs(UnmanagedType.Bool)> Boolean 56: WinHelpCommands
///<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 gsapi
// execute this command, to convert pdf to tiff 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, Cut off search results after 60. Please refine your search. |