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]

Constants

.
Summary
Adapter Status command used in the NCB structure's ncb_command value by the NetBIOS API Call. Returns a ADAPTER_STATUS structure
.
Summary
NetBIOS command via the NCB structure's ncb_command to retrieve the number of Lan Adapters. Returns a LANA_ENUM structure
.
Summary
NetBIOS reset command via the NCB ncb_command
.

        /// <summary> 2315 - A failure occurred when executing a remote administration command. </summary>

.

        /// <summary> 2317 - The data returned from a remote administration command has been truncated to 64K. </summary>

.

        /// <summary> 2373 - The system was unable to parse the command line in this file. </summary>

.

    public static PropertyKey WPD_COMMAND_STORAGE_FORMAT = new PropertyKey(0xD8F907A6, 0x34CC, 0x45FA, 0x97, 0xFB, 0xD0, 0x07, 0xFA, 0x47, 0xEC, 0x94, 2);

.

    public static PropertyKey WPD_COMMAND_STORAGE_EJECT = new PropertyKey(0xD8F907A6, 0x34CC, 0x45FA, 0x97, 0xFB, 0xD0, 0x07, 0xFA, 0x47, 0xEC, 0x94, 4);

.

    public static PropertyKey WPD_COMMAND_SMS_SEND = new PropertyKey(0xAFC25D66, 0xFE0D, 0x4114, 0x90, 0x97, 0x97, 0x0C, 0x93, 0xE9, 0x20, 0xD1, 2);

.

    public static PropertyKey WPD_COMMAND_STILL_IMAGE_CAPTURE_INITIATE = new PropertyKey(0x4FCD6982, 0x22A2, 0x4B05, 0xA4, 0x8B, 0x62, 0xD3, 0x8B, 0xF2, 0x7B, 0x32, 2);

.

    public static PropertyKey WPD_COMMAND_MEDIA_CAPTURE_START = new PropertyKey(0x59B433BA, 0xFE44, 0x4D8D, 0x80, 0x8C, 0x6B, 0xCB, 0x9B, 0x0F, 0x15, 0xE8, 2);

.

    public static PropertyKey WPD_COMMAND_MEDIA_CAPTURE_STOP = new PropertyKey(0x59B433BA, 0xFE44, 0x4D8D, 0x80, 0x8C, 0x6B, 0xCB, 0x9B, 0x0F, 0x15, 0xE8, 3);

.

    public static PropertyKey WPD_COMMAND_MEDIA_CAPTURE_PAUSE = new PropertyKey(0x59B433BA, 0xFE44, 0x4D8D, 0x80, 0x8C, 0x6B, 0xCB, 0x9B, 0x0F, 0x15, 0xE8, 4);

.

    public static PropertyKey WPD_COMMAND_DEVICE_HINTS_GET_CONTENT_LOCATION = new PropertyKey(0x0D5FB92B, 0xCB46, 0x4C4F, 0x83, 0x43, 0x0B, 0xC3, 0xD3, 0xF1, 0x7C, 0x84, 2);

.

    public static PropertyKey WPD_COMMAND_GENERATE_KEYPAIR = new PropertyKey(0x78F9C6FC, 0x79B8, 0x473C, 0x90, 0x60, 0x6B, 0xD2, 0x3D, 0xD0, 0x72, 0xC4, 2);

.

    public static PropertyKey WPD_COMMAND_COMMIT_KEYPAIR = new PropertyKey(0x78F9C6FC, 0x79B8, 0x473C, 0x90, 0x60, 0x6B, 0xD2, 0x3D, 0xD0, 0x72, 0xC4, 3);

.

    public static PropertyKey WPD_COMMAND_PROCESS_WIRELESS_PROFILE = new PropertyKey(0x78F9C6FC, 0x79B8, 0x473C, 0x90, 0x60, 0x6B, 0xD2, 0x3D, 0xD0, 0x72, 0xC4, 4);

.

    public static PropertyKey WPD_COMMAND_COMMON_RESET_DEVICE = new PropertyKey(0xF0422A9C, 0x5DC8, 0x4440, 0xB5, 0xBD, 0x5D, 0xF2, 0x88, 0x35, 0x65, 0x8A, 2);

.

    public static PropertyKey WPD_COMMAND_COMMON_GET_OBJECT_IDS_FROM_PERSISTENT_UNIQUE_IDS = new PropertyKey(0xF0422A9C, 0x5DC8, 0x4440, 0xB5, 0xBD, 0x5D, 0xF2, 0x88, 0x35, 0x65, 0x8A, 3);

.

    public static PropertyKey WPD_COMMAND_COMMON_SAVE_CLIENT_INFORMATION = new PropertyKey(0xF0422A9C, 0x5DC8, 0x4440, 0xB5, 0xBD, 0x5D, 0xF2, 0x88, 0x35, 0x65, 0x8A, 4);

.

    public static PropertyKey WPD_PROPERTY_COMMON_COMMAND_CATEGORY = new PropertyKey(0xF0422A9C, 0x5DC8, 0x4440, 0xB5, 0xBD, 0x5D, 0xF2, 0x88, 0x35, 0x65, 0x8A, 1001);

.

    public static PropertyKey WPD_PROPERTY_COMMON_COMMAND_ID = new PropertyKey(0xF0422A9C, 0x5DC8, 0x4440, 0xB5, 0xBD, 0x5D, 0xF2, 0x88, 0x35, 0x65, 0x8A, 1002);

.

    public static PropertyKey WPD_PROPERTY_COMMON_COMMAND_TARGET = new PropertyKey(0xF0422A9C, 0x5DC8, 0x4440, 0xB5, 0xBD, 0x5D, 0xF2, 0x88, 0x35, 0x65, 0x8A, 1006);

.

    public static PropertyKey WPD_COMMAND_OBJECT_ENUMERATION_START_FIND = new PropertyKey(0xB7474E91, 0xE7F8, 0x4AD9, 0xB4, 0x00, 0xAD, 0x1A, 0x4B, 0x58, 0xEE, 0xEC, 2);

.

    public static PropertyKey WPD_COMMAND_OBJECT_ENUMERATION_FIND_NEXT = new PropertyKey(0xB7474E91, 0xE7F8, 0x4AD9, 0xB4, 0x00, 0xAD, 0x1A, 0x4B, 0x58, 0xEE, 0xEC, 3);

.

    public static PropertyKey WPD_COMMAND_OBJECT_ENUMERATION_END_FIND = new PropertyKey(0xB7474E91, 0xE7F8, 0x4AD9, 0xB4, 0x00, 0xAD, 0x1A, 0x4B, 0x58, 0xEE, 0xEC, 4);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_GET_SUPPORTED = new PropertyKey(0x9E5582E4, 0x0814, 0x44E6, 0x98, 0x1A, 0xB2, 0x99, 0x8D, 0x58, 0x38, 0x04, 2);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_GET_ATTRIBUTES = new PropertyKey(0x9E5582E4, 0x0814, 0x44E6, 0x98, 0x1A, 0xB2, 0x99, 0x8D, 0x58, 0x38, 0x04, 3);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_GET = new PropertyKey(0x9E5582E4, 0x0814, 0x44E6, 0x98, 0x1A, 0xB2, 0x99, 0x8D, 0x58, 0x38, 0x04, 4);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_SET = new PropertyKey(0x9E5582E4, 0x0814, 0x44E6, 0x98, 0x1A, 0xB2, 0x99, 0x8D, 0x58, 0x38, 0x04, 5);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_GET_ALL = new PropertyKey(0x9E5582E4, 0x0814, 0x44E6, 0x98, 0x1A, 0xB2, 0x99, 0x8D, 0x58, 0x38, 0x04, 6);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_DELETE = new PropertyKey(0x9E5582E4, 0x0814, 0x44E6, 0x98, 0x1A, 0xB2, 0x99, 0x8D, 0x58, 0x38, 0x04, 7);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_LIST_START = new PropertyKey(0x11C824DD, 0x04CD, 0x4E4E, 0x8C, 0x7B, 0xF6, 0xEF, 0xB7, 0x94, 0xD8, 0x4E, 2);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_LIST_NEXT = new PropertyKey(0x11C824DD, 0x04CD, 0x4E4E, 0x8C, 0x7B, 0xF6, 0xEF, 0xB7, 0x94, 0xD8, 0x4E, 3);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_LIST_END = new PropertyKey(0x11C824DD, 0x04CD, 0x4E4E, 0x8C, 0x7B, 0xF6, 0xEF, 0xB7, 0x94, 0xD8, 0x4E, 4);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_FORMAT_START = new PropertyKey(0x11C824DD, 0x04CD, 0x4E4E, 0x8C, 0x7B, 0xF6, 0xEF, 0xB7, 0x94, 0xD8, 0x4E, 5);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_FORMAT_NEXT = new PropertyKey(0x11C824DD, 0x04CD, 0x4E4E, 0x8C, 0x7B, 0xF6, 0xEF, 0xB7, 0x94, 0xD8, 0x4E, 6);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_FORMAT_END = new PropertyKey(0x11C824DD, 0x04CD, 0x4E4E, 0x8C, 0x7B, 0xF6, 0xEF, 0xB7, 0x94, 0xD8, 0x4E, 7);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_BULK_SET_VALUES_BY_OBJECT_LIST_START = new PropertyKey(0x11C824DD, 0x04CD, 0x4E4E, 0x8C, 0x7B, 0xF6, 0xEF, 0xB7, 0x94, 0xD8, 0x4E, 8);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_BULK_SET_VALUES_BY_OBJECT_LIST_NEXT = new PropertyKey(0x11C824DD, 0x04CD, 0x4E4E, 0x8C, 0x7B, 0xF6, 0xEF, 0xB7, 0x94, 0xD8, 0x4E, 9);

.

    public static PropertyKey WPD_COMMAND_OBJECT_PROPERTIES_BULK_SET_VALUES_BY_OBJECT_LIST_END = new PropertyKey(0x11C824DD, 0x04CD, 0x4E4E, 0x8C, 0x7B, 0xF6, 0xEF, 0xB7, 0x94, 0xD8, 0x4E, 10);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_GET_SUPPORTED = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 2);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_GET_ATTRIBUTES = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 3);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_OPEN = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 4);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_READ = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 5);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_WRITE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 6);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_CLOSE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 7);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_DELETE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 8);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_CREATE_RESOURCE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 9);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_REVERT = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 10);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_SEEK = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 11);

.

    public static PropertyKey WPD_COMMAND_OBJECT_MANAGEMENT_CREATE_OBJECT_WITH_PROPERTIES_ONLY = new PropertyKey(0xEF1E43DD, 0xA9ED, 0x4341, 0x8B, 0xCC, 0x18, 0x61, 0x92, 0xAE, 0xA0, 0x89, 2);

.

    public static PropertyKey WPD_COMMAND_OBJECT_MANAGEMENT_CREATE_OBJECT_WITH_PROPERTIES_AND_DATA = new PropertyKey(0xEF1E43DD, 0xA9ED, 0x4341, 0x8B, 0xCC, 0x18, 0x61, 0x92, 0xAE, 0xA0, 0x89, 3);

.

    public static PropertyKey WPD_COMMAND_OBJECT_MANAGEMENT_WRITE_OBJECT_DATA = new PropertyKey(0xEF1E43DD, 0xA9ED, 0x4341, 0x8B, 0xCC, 0x18, 0x61, 0x92, 0xAE, 0xA0, 0x89, 4);

.

    public static PropertyKey WPD_COMMAND_OBJECT_MANAGEMENT_COMMIT_OBJECT = new PropertyKey(0xEF1E43DD, 0xA9ED, 0x4341, 0x8B, 0xCC, 0x18, 0x61, 0x92, 0xAE, 0xA0, 0x89, 5);

.

    public static PropertyKey WPD_COMMAND_OBJECT_MANAGEMENT_REVERT_OBJECT = new PropertyKey(0xEF1E43DD, 0xA9ED, 0x4341, 0x8B, 0xCC, 0x18, 0x61, 0x92, 0xAE, 0xA0, 0x89, 6);

.

    public static PropertyKey WPD_COMMAND_OBJECT_MANAGEMENT_DELETE_OBJECTS = new PropertyKey(0xEF1E43DD, 0xA9ED, 0x4341, 0x8B, 0xCC, 0x18, 0x61, 0x92, 0xAE, 0xA0, 0x89, 7);

.

    public static PropertyKey WPD_COMMAND_OBJECT_MANAGEMENT_MOVE_OBJECTS = new PropertyKey(0xEF1E43DD, 0xA9ED, 0x4341, 0x8B, 0xCC, 0x18, 0x61, 0x92, 0xAE, 0xA0, 0x89, 8);

.

    public static PropertyKey WPD_COMMAND_OBJECT_MANAGEMENT_COPY_OBJECTS = new PropertyKey(0xEF1E43DD, 0xA9ED, 0x4341, 0x8B, 0xCC, 0x18, 0x61, 0x92, 0xAE, 0xA0, 0x89, 9);

.

    public static PropertyKey WPD_COMMAND_OBJECT_MANAGEMENT_UPDATE_OBJECT_WITH_PROPERTIES_AND_DATA = new PropertyKey(0xEF1E43DD, 0xA9ED, 0x4341, 0x8B, 0xCC, 0x18, 0x61, 0x92, 0xAE, 0xA0, 0x89, 10);

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_COMMANDS = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 2);

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_COMMAND_OPTIONS = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 3);

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_FUNCTIONAL_CATEGORIES = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 4);

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_FUNCTIONAL_OBJECTS = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 5);

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_CONTENT_TYPES = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 6);

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_FORMATS = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 7);

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_FORMAT_PROPERTIES = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 8);

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_FIXED_PROPERTY_ATTRIBUTES = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 9);

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_EVENTS = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 10);

.

    public static PropertyKey WPD_COMMAND_CAPABILITIES_GET_EVENT_OPTIONS = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 11);

.

    public static PropertyKey WPD_PROPERTY_CAPABILITIES_SUPPORTED_COMMANDS = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 1001);

.

    public static PropertyKey WPD_PROPERTY_CAPABILITIES_COMMAND = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 1002);

.

    public static PropertyKey WPD_PROPERTY_CAPABILITIES_COMMAND_OPTIONS = new PropertyKey(0x0CABEC78, 0x6B74, 0x41C6, 0x92, 0x16, 0x26, 0x39, 0xD1, 0xFC, 0xE3, 0x56, 1003);

.

    public static PropertyKey WPD_COMMAND_CLASS_EXTENSION_WRITE_DEVICE_INFORMATION = new PropertyKey(0x33FB0D11, 0x64A3, 0x4FAC, 0xB4, 0xC7, 0x3D, 0xFE, 0xAA, 0x99, 0xB0, 0x51, 2);

.

    public static PropertyKey WPD_COMMAND_CLASS_EXTENSION_REGISTER_SERVICE_INTERFACES = new PropertyKey(0x7F0779B5, 0xFA2B, 0x4766, 0x9C, 0xB2, 0xF7, 0x3B, 0xA3, 0x0B, 0x67, 0x58, 2);

.

    public static PropertyKey WPD_COMMAND_CLASS_EXTENSION_UNREGISTER_SERVICE_INTERFACES = new PropertyKey(0x7F0779B5, 0xFA2B, 0x4766, 0x9C, 0xB2, 0xF7, 0x3B, 0xA3, 0x0B, 0x67, 0x58, 3);

.

    public static PropertyKey WPD_COMMAND_SERVICE_COMMON_GET_SERVICE_OBJECT_ID = new PropertyKey(0x322F071D, 0x36EF, 0x477F, 0xB4, 0xB5, 0x6F, 0x52, 0xD7, 0x34, 0xBA, 0xEE, 2);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_METHODS = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 2);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_METHODS_BY_FORMAT = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 3);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_METHOD_ATTRIBUTES = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 4);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_METHOD_PARAMETER_ATTRIBUTES = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 5);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_FORMATS = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 6);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_FORMAT_ATTRIBUTES = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 7);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_FORMAT_PROPERTIES = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 8);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_FORMAT_PROPERTY_ATTRIBUTES = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 9);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_EVENTS = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 10);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_EVENT_ATTRIBUTES = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 11);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_EVENT_PARAMETER_ATTRIBUTES = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 12);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_INHERITED_SERVICES = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 13);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_FORMAT_RENDERING_PROFILES = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 14);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_COMMANDS = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 15);

.

    public static PropertyKey WPD_COMMAND_SERVICE_CAPABILITIES_GET_COMMAND_OPTIONS = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 16);

.

    public static PropertyKey WPD_PROPERTY_SERVICE_CAPABILITIES_SUPPORTED_COMMANDS = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 1017);

.

    public static PropertyKey WPD_PROPERTY_SERVICE_CAPABILITIES_COMMAND = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 1018);

.

    public static PropertyKey WPD_PROPERTY_SERVICE_CAPABILITIES_COMMAND_OPTIONS = new PropertyKey(0x24457E74, 0x2E9F, 0x44F9, 0x8C, 0x57, 0x1D, 0x1B, 0xCB, 0x17, 0x0B, 0x89, 1019);

.

    public static PropertyKey WPD_COMMAND_SERVICE_METHODS_START_INVOKE = new PropertyKey(0x2D521CA8, 0xC1B0, 0x4268, 0xA3, 0x42, 0xCF, 0x19, 0x32, 0x15, 0x69, 0xBC, 2);

.

    public static PropertyKey WPD_COMMAND_SERVICE_METHODS_CANCEL_INVOKE = new PropertyKey(0x2D521CA8, 0xC1B0, 0x4268, 0xA3, 0x42, 0xCF, 0x19, 0x32, 0x15, 0x69, 0xBC, 3);

.

    public static PropertyKey WPD_COMMAND_SERVICE_METHODS_END_INVOKE = new PropertyKey(0x2D521CA8, 0xC1B0, 0x4268, 0xA3, 0x42, 0xCF, 0x19, 0x32, 0x15, 0x69, 0xBC, 4);

.

    public static PropertyKey WPD_COMMAND_MTP_EXT_GET_SUPPORTED_VENDOR_OPCODES = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 11);

.

    public static PropertyKey WPD_COMMAND_MTP_EXT_EXECUTE_COMMAND_WITHOUT_DATA_PHASE = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 12);

.

    public static PropertyKey WPD_COMMAND_MTP_EXT_EXECUTE_COMMAND_WITH_DATA_TO_READ = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 13);

.

    public static PropertyKey WPD_COMMAND_MTP_EXT_EXECUTE_COMMAND_WITH_DATA_TO_WRITE = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 14);

.

    public static PropertyKey WPD_COMMAND_MTP_EXT_READ_DATA = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 15);

.

    public static PropertyKey WPD_COMMAND_MTP_EXT_WRITE_DATA = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 16);

.

    public static PropertyKey WPD_COMMAND_MTP_EXT_END_DATA_TRANSFER = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 17);

.

    public static PropertyKey WPD_COMMAND_MTP_EXT_GET_VENDOR_EXTENSION_DESCRIPTION = new PropertyKey(0x4d545058, 0x1a2e, 0x4106, 0xa3, 0x57, 0x77, 0x1e, 0x8, 0x19, 0xfc, 0x56, 18);

.

        /// Not enough storage is available to process this command.

.

        /// The device does not recognize the command.

.

        public const int ERROR_BAD_COMMAND = 22;

.

        /// The program issued a command but the command length is incorrect.

.

        /// The network BIOS command limit has been reached.

.

        /// The system does not support the command requested.

.

        /// A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.

.

        /// An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.

.

        /// An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.

.

        /// Not enough resources are available to process this command.

.

        /// No process in the command subtree has a signal handler.

.

        /// Not enough server storage is available to process this command.

.

        /// An error occurred in sending the command to the application.

.

        /// Invalid GW_* command.

.

        public const int ERROR_INVALID_GW_COMMAND = 1443;

.

        public const int ERROR_INVALID_SHOWWIN_COMMAND = 1449;

.

        /// Invalid command line argument.  Consult the Windows Installer SDK for detailed command line help.

.

        public const int ERROR_INVALID_COMMAND_LINE = 1639;

.

        /// The printer command is invalid.

.

        public const int ERROR_INVALID_PRINTER_COMMAND = 1803;

.

        /// Not enough quota is available to process this command.

.

        /// WINS encountered an error while processing the command.

.

        /// The modem did not accept the command sent to it. Verify that the configured modem name matches the attached modem.

.

        /// The modem did not respond to the command sent to it. Verify that the modem is properly cabled and powered on.

.

        /// Not enough memory available to complete this command.

.

        /// The reader or smart card is not ready to accept commands.

7: WM
.
WM_COMMAND 0x111 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_ENTERSIZEMOVE 0x231 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.
.
WM_EXITSIZEMOVE 0x232 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.
.
WM_IME_CONTROL 0x283 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.
.
WM_IME_REQUEST 0x288 Sent to an application to provide commands and request information. A window receives this message through its WindowProc function.
.
WM_MENUCOMMAND 0x126 The WM_MENUCOMMAND message is sent when the user makes a selection from a menu.
.
WM_SYSCOMMAND 0x112 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_TCARD 0x52 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.
.

private const UInt32 WM_COMMAND        = 0x0111;

.

private const UInt32 WM_MENUCOMMAND        = 0x0126;

.

private const UInt32 WM_SYSCOMMAND         = 0x0112;

.

   WM_COMMAND = &H111

.

   WM_MENUCOMMAND = &H126

.

   WM_SYSCOMMAND = &H112

.

WM_COMMAND        equ 111h

.

WM_SYSCOMMAND         equ 112h

.

WM_MENUCOMMAND        equ 126h

.

WM_APPCOMMAND         equ 319h

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())

setupapi

.

Private Sub Command1_Click()

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.

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.
19: 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;

.

     public ShowWindowCommands ShowCmd;

.

     Public showCmd As ShowWindowCommand

.

POINT, RECT, ShowWindowCommands

printui

.

Get available commands in dialup box

Interfaces

.

      void CommandStateChange(int Command, [MarshalAs(UnmanagedType.VariantBool)] bool Enable);

.

      Sub CommandStateChange(ByVal Command As Integer, <MarshalAs(UnmanagedType.VariantBool)> ByVal Enable As Boolean)

.

    void InvokeCommand(IntPtr pici);

.

    void GetCommandString(int idcmd, uint uflags, int reserved, StringBuilder commandstring, int cch);

.

''' Specifies Style of the band object, its Name(displayed in explorer menu) and HelpText(displayed in status bar when menu command selected).

.

''' Specifies Style of the band object, its Name(displayed in explorer menu) and HelpText(displayed in status bar when menu command selected).

.

     uint uCommand, uint dwData,

.

    Function ShowHelp(ByVal hwnd As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> ByVal pszHelpFile As String, ByVal uCommand As Integer, ByVal dwData As Integer, ByVal ptMouse As tagPoint, <MarshalAs(UnmanagedType.IDispatch)> ByVal pDispatchObjectHit As Object) As Integer

.

public interface IOleCommandTarget

.

    //IOleCommandTarget interface from your application, it would

.

Interface IOleCommandTarget

.
Documentation
[IOleCommandTarget] on MSDN
.

    public interface IOleCommandTarget

.

        //IOleCommandTarget interface from your application, it would

.

Here is some complete code for the two classes that are required to fully utilize the IOleCommandTarget COM interface as referenced on http://msdn.microsoft.com/en-us/library/office/aa701079(v=office.12).aspx#infopath2007hostinginfopathforms_notavailable . I am posting this becasue we all know how MS likes to make links and pages disappear from time to time. While they are still valid, you can get example projects at: http://www.microsoft.com/en-us/download/details.aspx?id=21356 InfoPath2007UsingIOLECommands.exe and InfoPath2007UsingIOLECommandsCOM.exe. Happy InfoPathing! If there is such a thing. The happy part that is...

.

NativeCommands.cs

.

    /// This class' methods wrap the IOLE commands.

.

    /// for using IOLE Commands.

.

    public class NativeCommands

.

        private string lastCommandExecuted;

.

        /// returns the last command that was executed.

.

        public string LastCommandExecuted

.

                return lastCommandExecuted;

.

        /// This structure holds the command to be queried and the result of the query

.

            /// Command to be queried

.

            /// Gets or sets the command to be queried.

.

        //import the IOLECommandTarget interface to perform IOLE commands

.

        //IOLECommandTarget is registered in the registry

.

        private interface IOleCommandTarget

.

            /// Checks to see if a given command can be executed

.

            /// <param name="pguidCmdGroup">Unique identifier of the command group, NULL to specify the standard group</param>

.

            /// <param name="cCmds">The number of commands in the prgCmds array</param>

.

            /// <param name="prgCmds">Array of OLECMD structures that indicate the commands status information is required</param>

.

            /// <param name="pCmdText">Pointer to name or status of command, NULL indicates this is not necessary</param>

.

            /// Executes a specified command

.

            /// <param name="pguidCmdGroup">Command group</param>

.

            /// <param name="nCmdID">Identifier of command to execute</param>

.

            /// <param name="nCmdExecOpt">Options for executing the command</param>

.

            /// <param name="pvaOut">Command output</param>

.

        /// Designates the type of support provided by an object for the specified command

.

            /// The command is supported by this object

.

            /// The command is available and enabled

.

            /// The command is an on-off toggle and is currently on

.

        /// Queries whether or not a command can be executed

.

        /// <param name="commandID">ID number of the command to query</param>

.

        /// <returns>True if command can be performed and false if it cannot</returns>

.

        public bool QueryCommandStatus(FormControlCommandIds.CommandIds commandId)

.

            OLECMD[] commands = new OLECMD[1];

.

            commands[0].CmdId = Convert.ToUInt16(commandId,CultureInfo.CurrentCulture);

.

            commands[0].CmdF = 0;

.

            QueryCommandStatus(commands);

.

            //if command is supported and enabled command can be executed

.

            return (((commands[0].CmdF & (uint)OleCmdf.Supported) != 0) && ((commands[0].CmdF & (uint)OleCmdf.Enabled) != 0));

.

        /// Queries whether or not a command can be executed

.

        /// <param name="commands">Group of commands to be queried</param>

.

        public void QueryCommandStatus(OLECMD[] commands)

.

            //Get a IOLECommandTarget object form the ActiveX control

.

            IOleCommandTarget commandTarget = _infoPathControl.GetOcx() as IOleCommandTarget;

.

                commandTarget.QueryStatus(ref FormControlCommandIds.CommandGroup, Convert.ToUInt16(commands.Length), commands, IntPtr.Zero);

.

                throw new HostedException("An error occurred while attempting to query commands", ex);

.

        #region Command Execution

.

        /// Checks whether or not the specified command is on or off

.

        /// <param name="commandID">Command to be executed</param>

.

        /// <returns>True if command is activated or False if not</returns>

.

        public bool IsCommandOn(FormControlCommandIds.CommandIds commandId)

.

            OLECMD[] commands = new OLECMD[1];

.

            commands[0].CmdId = Convert.ToUInt16(commandId,CultureInfo.CurrentCulture);

.

            commands[0].CmdF = 0;

.

            QueryCommandStatus(commands);

.

            return (((commands[0].CmdF & (uint)OleCmdf.Supported) != 0) && ((commands[0].CmdF & (uint)OleCmdf.Enabled) != 0) &&

.

                ((commands[0].CmdF & (uint)OleCmdf.Latched) != 0));

.

        /// Executes a given command

.

        /// <param name="CommandID">Command to be executed</param>

.

        /// <returns>Results of executing a command</returns>

.

        public object ExecuteCommand(FormControlCommandIds.CommandIds commandId)

.

            return ExecuteCommand(commandId, null);

.

        /// Executes a given command with specified parameters

.

        /// <param name="CommandID">Command to be executed</param>

.

        /// <returns>Results of executing the command</returns>

.

        public object ExecuteCommand(FormControlCommandIds.CommandIds commandId, object vaIn)

.

            //remember the last command executed

.

            lastCommandExecuted = commandId.ToString();

.

            //make sure the command can be executed first

.

            if (!QueryCommandStatus(commandId))

.

            // Get the commandTarget from the control

.

            IOleCommandTarget commandTarget = _infoPathControl.GetOcx() as IOleCommandTarget;

.

                commandTarget.Exec(ref FormControlCommandIds.CommandGroup, Convert.ToUInt16(commandId,CultureInfo.CurrentCulture),

.

                throw new HostedException("An error occurred while executing command " + commandId.ToString(), ex);

.

    /// The class makes calls to perform commands against the form control

.

    /// Class is designed to be a central point for executing commands against a form control

.

    public class FormController : NativeCommands

.

        /// Commands

.

            /// Uses the supported InfoPath IOLECommand

.

        /// Makes sure the command was executed properly

.

        /// <param name="commandResult">The result from executing the command</param>

.

        /// <returns>The result from executing the command</returns>

.

        private object ChkResult(object commandResult)

.

            if ((commandResult !=null) && (commandResult.GetType().Equals(typeof(int))))

.

                int result = (int)commandResult;

.

                    throw new NonApplicableCommandException("The command could not be executed at this time because it is not applicable. Command: " +

.

                        LastCommandExecuted);

.

            return commandResult;

.

        /// Makes sure the command was executed properly

.

        /// <param name="commandResult">The result from executing the command</param>

.

        /// <param name="expectedReturnType">The type of object the command was expected to return</param>

.

        /// <returns>The result from executing the command</returns>

.

        private object ChkResult(object commandResult, Type expectedReturnType)

.

            commandResult = ChkResult(commandResult);

.

            if ((commandResult!=null) && (!commandResult.GetType().Equals(expectedReturnType)))

.

                    " but received " + commandResult.GetType().ToString() + "\nCommand: " + LastCommandExecuted);

.

            return commandResult;

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.Save));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SaveAs));

.

                        ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.Close));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingBold));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingItalic));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingUnderline));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingStrikethrough));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingSuperscript));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingSubscript));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.IncreaseFontSizeBy2));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.DecreaseFontSizeBy2));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ClearFontFormatting));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingHeading1));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingHeading2));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingHeading3));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingHeading4));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingHeading5));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingHeading6));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFontFormattingNormal));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetFontsAvailableCount), typeof(int)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetFontAvailableByIndex, index), typeof(string)),CultureInfo.CurrentCulture

.

                        ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedTextFont),typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedTextFont, value));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetFontSizesAvailableCount),typeof(int)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetFontSizeAvailableByIndex, index), typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedTextFontSize), typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedTextFontSize, value));

.

                            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedTextFontColor), typeof(int)), CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedTextFontColor, vaIn));

.

                        ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetDefaultFontColor), typeof(int)),CultureInfo.CurrentCulture

.

                        ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedTextHighlightColor), typeof(int)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedTextHighlightColor, vaIn));

.

                        ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetDefaultHighlightColor), typeof(int)),CultureInfo.CurrentCulture

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.AlignTextLeft));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.AlignTextCenter));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.AlignTextRight));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.AlignTextJustify));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.IncreaseIndent));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.DecreaseIndent));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSingleLineSpacing));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetDoubleLineSpacing));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.Set15LineSpacing));

.

                        ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedTextBackgroundColor)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedTextBackgroundColor, vaIn));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.Undo));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.Redo));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.Cut));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.Copy));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.Paste));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectAll));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.FormatPainterCopyFormatting));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.FormatPainterApplyFormatting));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.FormatPainterCopyFormattingPersistent));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.FormatPainterApplyFormattingPersistent));

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SetFindReplaceOptionUseWildcards);

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFindReplaceOptionUseWildcards, value));

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SetFindReplaceOptionMatchCase);

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFindReplaceOptionMatchCase, value));

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SetFindReplaceOptionWholeWordOnly);

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFindReplaceOptionWholeWordOnly, value));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetFindReplaceOptionSearchDirection),typeof(int)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFindReplaceOptionSearchDirection, value));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetFindReplaceState),typeof(int)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetFindString),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFindString, value));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetReplaceWithString),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetReplaceWithString, value));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.FindReplaceFindNext));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.Replace));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ReplaceAll));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ClearBulletedList));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ClearNumberedList));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertNumberedList));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertBulletedList));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertNumberedListDecimal));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertNumberedListRomanUppercase));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertNumberedListRomanLowercase));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertNumberedListAlphaUppercase));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertNumberedListAlphaLowercase));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertBulletedList));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertBulletedListEmptyCircle));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertBulletedListSolidSquare));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.DrawTable));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.EraseTable));

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertTable, vaIn));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.DeleteSelectedTable));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectTable));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertColumnLeft));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertColumnRight));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertRowAbove));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertRowBelow));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.DeleteSelectedColumns));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.DeleteSelectedRows));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectColumns));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectPreviousColumn));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectNextColumn));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectRows));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectPreviousRow));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectNextRow));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectCell));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.MergeCells));

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SplitCells, vaIn));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedCellAlignmentTop));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedCellAlignmentMiddle));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedCellAlignmentBottom));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedCellVerticalAlignment),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedCellPadding, vaIn));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedCellTopPadding),typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedCellRightPadding),typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedCellBottomPadding),typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedCellLeftPadding),typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetTableHorizontalAlignment),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetTableHorizontalAlignment, value));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetTableDirection),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetTableDirection, value));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedRowHeight),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedRowHeight, value));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedColumnWidth),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedColumnWidth, value));

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SelectNextRow);

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SelectPreviousRow);

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectNextRow));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectPreviousRow));

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SelectNextColumn);

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SelectPreviousColumn);

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectNextColumn));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectPreviousColumn));

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.FindNextMisspelledWord),typeof(bool)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSpellingSuggestionsCount),typeof(int)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSpellingSuggestion, index), typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetCurrentMisspelledWord),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.IgnoreMisspelledWord, misspelled));

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.IgnoreAllOfMisspelledWord, misspelled));

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.CorrectMisspelledWord, vaIn));

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.CorrectAllOfMisspelledWord, vaIn));

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.AddWordToDictionary, misspelled));

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.DeleteMisspelledWord, misspelled));

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SetSpellingOptionCheckAsYouType);

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSpellingOptionCheckAsYouType, value));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetPictureInlineWithText));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetPictureToLeftOfText));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetPictureToRightOfText));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetPictureHeight),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetPictureWidth, value));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetPictureWidth),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetPictureWidth, value));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetPictureAlternativeText),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetPictureAlternativeText, value));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetPictureTextWrapping),typeof(string)),CultureInfo.CurrentCulture

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ShowInsertSymbolDialog));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertImage, filePath));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertPictureFromFile));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertHorizontalLine));

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SelectHyperlink);

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetHyperlinkAddress),typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetHyperlinkDisplayText),typeof(string)),CultureInfo.CurrentCulture

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectHyperlink));

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.InsertHyperlink, vaIn));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.RemoveHyperlink));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GotoFirstErrorOnView));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GotoNextErrorOnView));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ShowCurrentErrorMessage));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.WorkOffline));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.IsFormDirectionLeftToRight),typeof(uint)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.IsFormDirectionRightToLeft),typeof(uint)),CultureInfo.CurrentCulture

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetTextDirectionDefault));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetTextDirectionLeftToRight));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetTextDirectionRightToLeft));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.Submit));

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSubmitButtonCaption),typeof(string)),CultureInfo.CurrentCulture

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ShowBordersShadingDialog));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ShowDigitalSignaturesDialog));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ShowSetLanguageDialog));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ShowMergeFormDialog));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ShowImportFormDataDialog));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ShowExportToWebDialog));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ShowExportToPDFXPSDialog));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ShowExportToExcelDialog));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetAutoSpaceBetweenAsianTextAndNumbers));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetAutoSpaceBetweenAsianAndLatinText));

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.ClearAutoSpace));

.

    /// <summary>Retrieves the command-line arguments associated with a Shell link object</summary>

.

    /// <summary>Sets the command-line arguments for a Shell link object</summary>

.

    /// <summary>Retrieves the show command for a Shell link object</summary>

.

    /// <summary>Sets the show command for a Shell link object. The show command sets the initial show state of the window.</summary>

.

    '[helpstring("Retrieves the shell link command-line arguments")]

.

    '[helpstring("Sets the shell link command-line arguments")]

.

    '[propget, helpstring("Retrieves or sets the shell link show command")]

.

    '[propput, helpstring("Retrieves or sets the shell link show command")]

.

    /// <summary>Retrieves the command-line arguments associated with a Shell link object</summary>

.

    /// <summary>Sets the command-line arguments for a Shell link object</summary>

.

    /// <summary>Retrieves the show command for a Shell link object</summary>

.

    /// <summary>Sets the show command for a Shell link object. The show command sets the initial show state of the window.</summary>

.

    ''' <summary>Retrieves the command-line arguments associated with a Shell link object</summary>

.

    ''' <summary>Sets the command-line arguments for a Shell link object</summary>

.

    ''' <summary>Retrieves the show command for a Shell link object</summary>

.

    ''' <summary>Sets the show command for a Shell link object. The show command sets the initial show state of the window.</summary>

.

     // Command creation callback

.

     HRESULT OnCreateUICommand(UInt32 commandId,

.

                   UI_CommandType typeID,

.

                   [Out, MarshalAs(UnmanagedType.Interface)] out IUICommandHandler commandHandler);

.

     // Command destroy callback

.

     HRESULT OnDestroyUICommand(UInt32 commandId,

.

                UI_CommandType typeID,

.

                [MarshalAs(UnmanagedType.Interface)] IUICommandHandler commandHandler);

.
Summary
The IUICommandHandler interface is implemented by the application and defines the methods for gathering Command information and handling Command events from the Windows Ribbon (Ribbon) framework.
.

// Command handler interface

.

public interface IUICommandHandler

.

     HRESULT Execute(UInt32 commandId,              // the command that has been executed

.

             [MarshalAs(UnmanagedType.Interface)] IUISimplePropertySet commandExecutionProperties); // additional data for this execution

.

     HRESULT UpdateProperty(UInt32 commandId,

.
Documentation
[IUICommandHandler] on MSDN
.

     // Loads and instantiates the views and commands specified in markup

.

     HRESULT GetUICommandProperty(UInt32 commandId, [In] ref PropertyKey key, out PropVariant value);

.

     HRESULT SetUICommandProperty(UInt32 commandId, [In] ref PropertyKey key, [In] ref PropVariant value);

.

     HRESULT InvalidateUICommand(UInt32 commandId, UI_Invalidations flags, [In] ref PropertyKey key);

.

     // Flush all the pending UI command updates

.

        [In, MarshalAs(UnmanagedType.BStr)] string strCommandline,

.

    void DeviceCommand(

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);

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


 
Access PInvoke.net directly from VS: