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

oleacc

.

if ( SendMessageTimeout(hWnd, nMsg, UIntPtr.Zero, IntPtr.Zero,

.

     SendMessageTimeoutFlags.SMTO_ABORTIFHUNG, 1000, out lRes) == IntPtr.Zero )

Constants

.

        SendMessage(parent, WM_SIZE, SIZE_RESTORED, 0);

.

Use this method to get the list of items out of a combo box using Windows API call (SendMessage). You need to

.

get the count of items in the combo box first (also with SendMessage api).

.

        Dim ptrLength As Integer = SendMessage(windowHandle, ComboBox_GetComboBoxTextLength, iPtr, zero)

.

        SendMessage(windowHandle, ComboBox_GetComboBoxText, iPtr, winText)

.

    public static Guid KSCATEGORY_WDMAUD = new Guid("3E227E76-690D-11D2-8161-0000F8775BF1");

5: HWND
.

Used in SendMessage API

6: LR_
.

    /// If fuLoad includes both the LR_LOADTRANSPARENT and LR_LOADMAP3DCOLORS values, LRLOADTRANSPARENT takes precedence.

.

    public const int LR_LOADMAP3DCOLORS = 0x1000;

.

    ''' If fuLoad includes both the LR_LOADTRANSPARENT and LR_LOADMAP3DCOLORS values, LRLOADTRANSPARENT takes precedence.

.

    LR_LOADMAP3DCOLORS = &H1000

7: MAPI
.

  /// MAPIReadMail does not mark the message as read.

.

  /// If the messaging system does not support this flag, MAPIReadMail always marks the

.

  /// message as read. If MAPIReadMail encounters an error, it leaves the message unread.

.

  /// MAPIReadMail should not copy file attachments but should write message text into the

.

  /// MAPIReadMail ignores this flag if the calling application has set the

.

  /// MAPIReadMail should read the message header only.

.

  /// MAPIReadMail should write the message text to a temporary file

.

        public const int InvalidMaxUsers = 2122;

.

        /// <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> 2452 - This operation is not allowed on the last administrative account. </summary>

.

        public const int LastAdmin = 2452;

.

        public const int PasswordMismatch = 2458;

.

        /// <summary> 2470 - Try down-level (remote admin protocol) version of API instead. </summary>

.

        public const int PasswordMustChange = 2701;

.

const int PIPE_READMODE_BYTE = 0x00000000

.

const int PIPE_READMODE_MESSAGE= 0x00000002

10: PIPE_
.

const int PIPE_READMODE_BYTE = 0x00000000

.

const int PIPE_READMODE_MESSAGE= 0x00000002

.

private const int PRINTER_ACCESS_ADMINISTRATOR = 0x4;

.

private const int PRINTER_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | PRINTER_ACCESS_ADMINISTRATOR | PRINTER_ACCESS_USE;

.

    UnratedMin = 0,

.

    UnratedMax = 0,

13: TCM_
.

    // (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)

.

    // (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))

.

    // (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)

.

    // (BOOL)SNDMSG((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))

.

    // (BOOL)SNDMSG((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))

.

    // (int)SNDMSG((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM FAR*)(pitem))

.

    // (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)

.

    // (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)

.

    // (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT FAR*)(prc))

.

    // (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)

.

    // (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)

.

    // (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))

.

    // (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)

.

    // (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT FAR *)prc)

.

    // (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))

.

    //     (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)

.

    //     (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))

.

    //     (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)

.

    // (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)

.

    // SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)

.

    //     (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)

.

    //     (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)

.

    // (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG (fHighlight, 0))

.

    //     (DWORD)SNDMSG((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw)

.

    //     (DWORD)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)

.

    '     (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)

.

    '     (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))

.

    '     (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)

.

    '     (BOOL)SNDMSG((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))

.

    '     (BOOL)SNDMSG((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))

.

    '     (int)SNDMSG((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM FAR*)(pitem))

.

    '     (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)

.

    '     (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)

.

    '     (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT FAR*)(prc))

.

    '     (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)

.

    '     (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)

.

    '     (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))

.

    '     (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)

.

    '     (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT FAR *)prc)

.

    '     (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))

.

    '     (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)

.

    '     (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))

.

    '     (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)

.

    '     (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)

.

    '     SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)

.

    '     (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)

.

    '     (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)

.

    '     (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG (fHighlight, 0))

.

    '     (DWORD)SNDMSG((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw)

.

    '     (DWORD)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)

.

        /// Windows cannot find the network path. Verify that the network path is correct and the destination computer is not busy or turned off. If Windows still cannot find the network path, contact your network administrator.

.

        /// Cannot nest calls to LoadModule.

.

        /// Windows cannot open this program because it has been prevented by a software restriction policy. For more information, open Event Viewer or contact your system administrator.

.

        public const int ERROR_VDM_DISALLOWED = 1286;

.

        /// The last remaining administration account cannot be disabled or deleted.

.

        public const int ERROR_LAST_ADMIN = 1322;

.

        /// This installation is forbidden by system policy.  Contact your system administrator.

.

        /// Only administrators have permission to add, remove, or configure server software during a Terminal services remote session. If you want to install or configure software on the server, contact your network administrator.

.

        /// The operator or administrator has refused the request.

.

        /// Please contact your administrator.

.

        /// Please call your system administrator to obtain a unique license number.

.

        /// Please contact your system administrator.

.

        public const int ERROR_DS_RIDMGR_INIT_ERROR = 8211;

.

        /// The administrative limit for this request was exceeded.

.

        public const int ERROR_DS_ADMIN_LIMIT_EXCEEDED = 8228;

.

        public const int ERROR_DS_INVALID_DMD = 8360;

.

        /// Only an administrator can modify the membership list of an administrative group.

.

        /// Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased.

.

        public const int WSA_QOS_ADMISSION_FAILURE = 11010;

.

        /// Rejected for administrative reasons - bad credentials.

.

        public const int WSA_QOS_ESDMODEOBJ = 11029;

.

        /// The size of this object exceeds the maximum size set by the Administrator.

.

        public const int CS_E_ADMIN_LIMIT_EXCEEDED = (int)(0x8004016D - 0x100000000);

.

        /// Cannot modify or delete an object that was not added using the COM+ Admin SDK

.

        /// Cannot modify or delete an object that was added using the COM+ Admin SDK

.

        public const int TYPE_E_BADMODULEKIND = (int)(0x800288BD - 0x100000000);

.

        /// The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.

.

        public const int RPC_E_INVALIDMETHOD = (int)(0x80010107 - 0x100000000);

.

        public const int CERTSRV_E_NO_CAADMIN_DEFINED = (int)(0x8009400D - 0x100000000);

.

        public const int COMADMIN_E_OBJECTERRORS = (int)(0x80110401 - 0x100000000);

.

        public const int COMADMIN_E_OBJECTINVALID = (int)(0x80110402 - 0x100000000);

.

        public const int COMADMIN_E_KEYMISSING = (int)(0x80110403 - 0x100000000);

.

        public const int COMADMIN_E_ALREADYINSTALLED = (int)(0x80110404 - 0x100000000);

.

        public const int COMADMIN_E_APP_FILE_WRITEFAIL = (int)(0x80110407 - 0x100000000);

.

        public const int COMADMIN_E_APP_FILE_READFAIL = (int)(0x80110408 - 0x100000000);

.

        public const int COMADMIN_E_APP_FILE_VERSION = (int)(0x80110409 - 0x100000000);

.

        public const int COMADMIN_E_BADPATH = (int)(0x8011040A - 0x100000000);

.

        public const int COMADMIN_E_APPLICATIONEXISTS = (int)(0x8011040B - 0x100000000);

.

        public const int COMADMIN_E_ROLEEXISTS = (int)(0x8011040C - 0x100000000);

.

        public const int COMADMIN_E_CANTCOPYFILE = (int)(0x8011040D - 0x100000000);

.

        public const int COMADMIN_E_NOUSER = (int)(0x8011040F - 0x100000000);

.

        public const int COMADMIN_E_INVALIDUSERIDS = (int)(0x80110410 - 0x100000000);

.

        public const int COMADMIN_E_NOREGISTRYCLSID = (int)(0x80110411 - 0x100000000);

.

        public const int COMADMIN_E_BADREGISTRYPROGID = (int)(0x80110412 - 0x100000000);

.

        public const int COMADMIN_E_AUTHENTICATIONLEVEL = (int)(0x80110413 - 0x100000000);

.

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

.

        public const int COMADMIN_E_CLSIDORIIDMISMATCH = (int)(0x80110418 - 0x100000000);

.

        public const int COMADMIN_E_REMOTEINTERFACE = (int)(0x80110419 - 0x100000000);

.

        public const int COMADMIN_E_DLLREGISTERSERVER = (int)(0x8011041A - 0x100000000);

.

        public const int COMADMIN_E_NOSERVERSHARE = (int)(0x8011041B - 0x100000000);

.

        public const int COMADMIN_E_DLLLOADFAILED = (int)(0x8011041D - 0x100000000);

.

        public const int COMADMIN_E_BADREGISTRYLIBID = (int)(0x8011041E - 0x100000000);

.

        public const int COMADMIN_E_APPDIRNOTFOUND = (int)(0x8011041F - 0x100000000);

.

        public const int COMADMIN_E_REGISTRARFAILED = (int)(0x80110423 - 0x100000000);

.

        public const int COMADMIN_E_COMPFILE_DOESNOTEXIST = (int)(0x80110424 - 0x100000000);

.

        public const int COMADMIN_E_COMPFILE_LOADDLLFAIL = (int)(0x80110425 - 0x100000000);

.

        public const int COMADMIN_E_COMPFILE_GETCLASSOBJ = (int)(0x80110426 - 0x100000000);

.

        public const int COMADMIN_E_COMPFILE_CLASSNOTAVAIL = (int)(0x80110427 - 0x100000000);

.

        public const int COMADMIN_E_COMPFILE_BADTLB = (int)(0x80110428 - 0x100000000);

.

        public const int COMADMIN_E_COMPFILE_NOTINSTALLABLE = (int)(0x80110429 - 0x100000000);

.

        public const int COMADMIN_E_NOTCHANGEABLE = (int)(0x8011042A - 0x100000000);

.

        public const int COMADMIN_E_NOTDELETEABLE = (int)(0x8011042B - 0x100000000);

.

        public const int COMADMIN_E_SESSION = (int)(0x8011042C - 0x100000000);

.

        public const int COMADMIN_E_COMP_MOVE_LOCKED = (int)(0x8011042D - 0x100000000);

.

        public const int COMADMIN_E_COMP_MOVE_BAD_DEST = (int)(0x8011042E - 0x100000000);

.

        public const int COMADMIN_E_REGISTERTLB = (int)(0x80110430 - 0x100000000);

.

        public const int COMADMIN_E_SYSTEMAPP = (int)(0x80110433 - 0x100000000);

.

        public const int COMADMIN_E_COMPFILE_NOREGISTRAR = (int)(0x80110434 - 0x100000000);

.

        public const int COMADMIN_E_COREQCOMPINSTALLED = (int)(0x80110435 - 0x100000000);

.

        public const int COMADMIN_E_SERVICENOTINSTALLED = (int)(0x80110436 - 0x100000000);

.

        public const int COMADMIN_E_PROPERTYSAVEFAILED = (int)(0x80110437 - 0x100000000);

.

        public const int COMADMIN_E_OBJECTEXISTS = (int)(0x80110438 - 0x100000000);

.

        public const int COMADMIN_E_COMPONENTEXISTS = (int)(0x80110439 - 0x100000000);

.

        public const int COMADMIN_E_REGFILE_CORRUPT = (int)(0x8011043B - 0x100000000);

.

        public const int COMADMIN_E_PROPERTY_OVERFLOW = (int)(0x8011043C - 0x100000000);

.

        public const int COMADMIN_E_NOTINREGISTRY = (int)(0x8011043E - 0x100000000);

.

        public const int COMADMIN_E_OBJECTNOTPOOLABLE = (int)(0x8011043F - 0x100000000);

.

        public const int COMADMIN_E_APPLID_MATCHES_CLSID = (int)(0x80110446 - 0x100000000);

.

        public const int COMADMIN_E_ROLE_DOES_NOT_EXIST = (int)(0x80110447 - 0x100000000);

.

        public const int COMADMIN_E_START_APP_NEEDS_COMPONENTS = (int)(0x80110448 - 0x100000000);

.

        public const int COMADMIN_E_REQUIRES_DIFFERENT_PLATFORM = (int)(0x80110449 - 0x100000000);

.

        public const int COMADMIN_E_CAN_NOT_EXPORT_APP_PROXY = (int)(0x8011044A - 0x100000000);

.

        public const int COMADMIN_E_CAN_NOT_START_APP = (int)(0x8011044B - 0x100000000);

.

        public const int COMADMIN_E_CAN_NOT_EXPORT_SYS_APP = (int)(0x8011044C - 0x100000000);

.

        public const int COMADMIN_E_CANT_SUBSCRIBE_TO_COMPONENT = (int)(0x8011044D - 0x100000000);

.

        public const int COMADMIN_E_EVENTCLASS_CANT_BE_SUBSCRIBER = (int)(0x8011044E - 0x100000000);

.

        public const int COMADMIN_E_LIB_APP_PROXY_INCOMPATIBLE = (int)(0x8011044F - 0x100000000);

.

        public const int COMADMIN_E_BASE_PARTITION_ONLY = (int)(0x80110450 - 0x100000000);

.

        public const int COMADMIN_E_START_APP_DISABLED = (int)(0x80110451 - 0x100000000);

.

        public const int COMADMIN_E_CAT_DUPLICATE_PARTITION_NAME = (int)(0x80110457 - 0x100000000);

.

        public const int COMADMIN_E_CAT_INVALID_PARTITION_NAME = (int)(0x80110458 - 0x100000000);

.

        public const int COMADMIN_E_CAT_PARTITION_IN_USE = (int)(0x80110459 - 0x100000000);

.

        public const int COMADMIN_E_FILE_PARTITION_DUPLICATE_FILES = (int)(0x8011045A - 0x100000000);

.

        public const int COMADMIN_E_CAT_IMPORTED_COMPONENTS_NOT_ALLOWED = (int)(0x8011045B - 0x100000000);

.

        public const int COMADMIN_E_AMBIGUOUS_APPLICATION_NAME = (int)(0x8011045C - 0x100000000);

.

        public const int COMADMIN_E_AMBIGUOUS_PARTITION_NAME = (int)(0x8011045D - 0x100000000);

.

        public const int COMADMIN_E_REGDB_NOTINITIALIZED = (int)(0x80110472 - 0x100000000);

.

        public const int COMADMIN_E_REGDB_NOTOPEN = (int)(0x80110473 - 0x100000000);

.

        public const int COMADMIN_E_REGDB_SYSTEMERR = (int)(0x80110474 - 0x100000000);

.

        public const int COMADMIN_E_REGDB_ALREADYRUNNING = (int)(0x80110475 - 0x100000000);

.

        public const int COMADMIN_E_MIG_VERSIONNOTSUPPORTED = (int)(0x80110480 - 0x100000000);

.

        public const int COMADMIN_E_MIG_SCHEMANOTFOUND = (int)(0x80110481 - 0x100000000);

.

        public const int COMADMIN_E_CAT_BITNESSMISMATCH = (int)(0x80110482 - 0x100000000);

.

        public const int COMADMIN_E_CAT_UNACCEPTABLEBITNESS = (int)(0x80110483 - 0x100000000);

.

        public const int COMADMIN_E_CAT_WRONGAPPBITNESS = (int)(0x80110484 - 0x100000000);

.

        public const int COMADMIN_E_CAT_PAUSE_RESUME_NOT_SUPPORTED = (int)(0x80110485 - 0x100000000);

.

        public const int COMADMIN_E_CAT_SERVERFAULT = (int)(0x80110486 - 0x100000000);

.

        public const int COMADMIN_E_OBJECT_PARENT_MISSING = (int)(0x80110808 - 0x100000000);

.

        public const int COMADMIN_E_OBJECT_DOES_NOT_EXIST = (int)(0x80110809 - 0x100000000);

.

        public const int COMADMIN_E_APP_NOT_RUNNING = (int)(0x8011080A - 0x100000000);

.

        public const int COMADMIN_E_INVALID_PARTITION = (int)(0x8011080B - 0x100000000);

.

        public const int COMADMIN_E_SVCAPP_NOT_POOLABLE_OR_RECYCLABLE = (int)(0x8011080D - 0x100000000);

.

        public const int COMADMIN_E_USER_IN_SET = (int)(0x8011080E - 0x100000000);

.

        public const int COMADMIN_E_CANTRECYCLELIBRARYAPPS = (int)(0x8011080F - 0x100000000);

.

        public const int COMADMIN_E_CANTRECYCLESERVICEAPPS = (int)(0x80110811 - 0x100000000);

.

        public const int COMADMIN_E_PROCESSALREADYRECYCLED = (int)(0x80110812 - 0x100000000);

.

        public const int COMADMIN_E_PAUSEDPROCESSMAYNOTBERECYCLED = (int)(0x80110813 - 0x100000000);

.

        public const int COMADMIN_E_CANTMAKEINPROCSERVICE = (int)(0x80110814 - 0x100000000);

.

        public const int COMADMIN_E_PROGIDINUSEBYCLSID = (int)(0x80110815 - 0x100000000);

.

        public const int COMADMIN_E_DEFAULT_PARTITION_NOT_IN_SET = (int)(0x80110816 - 0x100000000);

.

        public const int COMADMIN_E_RECYCLEDPROCESSMAYNOTBEPAUSED = (int)(0x80110817 - 0x100000000);

.

        public const int COMADMIN_E_PARTITION_ACCESSDENIED = (int)(0x80110818 - 0x100000000);

.

        public const int COMADMIN_E_PARTITION_MSI_ONLY = (int)(0x80110819 - 0x100000000);

.

        public const int COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_1_0_FORMAT = (int)(0x8011081A - 0x100000000);

.

        public const int COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_NONBASE_PARTITIONS = (int)(0x8011081B - 0x100000000);

.

        public const int COMADMIN_E_COMP_MOVE_SOURCE = (int)(0x8011081C - 0x100000000);

.

        public const int COMADMIN_E_COMP_MOVE_DEST = (int)(0x8011081D - 0x100000000);

.

        public const int COMADMIN_E_COMP_MOVE_PRIVATE = (int)(0x8011081E - 0x100000000);

.

        public const int COMADMIN_E_BASEPARTITION_REQUIRED_IN_SET = (int)(0x8011081F - 0x100000000);

.

        public const int COMADMIN_E_CANNOT_ALIAS_EVENTCLASS = (int)(0x80110820 - 0x100000000);

.

        public const int COMADMIN_E_PRIVATE_ACCESSDENIED = (int)(0x80110821 - 0x100000000);

.

        public const int COMADMIN_E_SAFERINVALID = (int)(0x80110822 - 0x100000000);

.

        public const int COMADMIN_E_REGISTRY_ACCESSDENIED = (int)(0x80110823 - 0x100000000);

.

        public const int COMADMIN_E_PARTITIONS_DISABLED = (int)(0x80110824 - 0x100000000);

15: WM
.
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.
.

Public Enum WndMsg

mapi32

.

    string lpszSeedMessageID, uint flFlags, uint ulReserved, StringBuilder lpszMessageID);

.

To get the Message ID of the first message, lpszSeedMessageID should be null or should point to an empty string. Pass null or an empty string for lpszMessageType to find InterPersonal Message (IPM).

.
Summary
MAPIReadMail - Retrieves a message for reading.
.

  /// The MAPIReadMail function retrieves a message for reading.

.

  public static extern uint MAPIReadMail(IntPtr lhSession, IntPtr ulUIParam, string lpszMessageID,

.

   Public Shared Function MAPIReadMail(ByVal lhSession As IntPtr, ByVal ulUIParam As IntPtr, ByVal lpszMessageID As String,

.
Documentation
[MAPIReadMail] on MSDN
.

  /// message. MAPISendDocuments differs from the MAPISendMail function in that it allows

.
Summary
MAPISendMail - Sends a message.
.

  /// The MAPISendMail function sends a message.

.

  public static extern uint MAPISendMail(IntPtr lhSession, IntPtr ulUIParam,

.

    Private Shared Function MAPISendMail(ByVal sess As IntPtr, ByVal hwnd As IntPtr, ByVal message As MapiMessage,

.

    static extern int MAPISendMail(IntPtr sess, IntPtr hwnd, MapiMessage message, int flg, int rsv);

.

    public int SendMail(string fileName)

.

        int result = MAPISendMail(new IntPtr(0), new IntPtr(0), msg, 0x00000001 | 0x00000008, 0);

.
Documentation
[MAPISendMail] on MSDN

Interfaces

.

    ,BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE

.

    void AddMenu ( [In] int dwIDCtl, [In, MarshalAs ( UnmanagedType.LPWStr )] string pszLabel );

.

    /// STDMETHOD(GetAssemblyProps)(        // S_OK or error.

.

    /// STDMETHOD(GetAssemblyRefProps)(     // S_OK or error.

.

    /// STDMETHOD(GetFileProps)(        // S_OK or error.

.

    /// STDMETHOD(GetExportedTypeProps)(    // S_OK or error.

.

    /// <param name="mdmr">[in] An <c>mdManifestResource</c> token that represents the resource for which to get the properties. </param>

.

    /// STDMETHOD(GetManifestResourceProps)(    // S_OK or error.

.

    ///     mdManifestResource  mdmr,       // [IN] The ManifestResource for which to get the properties.

.

        [In] uint mdmr,

.

    /// STDMETHOD(EnumAssemblyRefs)(        // S_OK or error

.

    /// STDMETHOD(EnumFiles)(           // S_OK or error

.

    /// STDMETHOD(EnumExportedTypes)(       // S_OK or error

.

    /// <param name="rManifestResources">[out] The array used to store the <c>mdManifestResource</c> metadata tokens.</param>

.

    /// <param name="cMax">[in] The maximum number of <c>mdManifestResource</c> tokens that can be placed in <c>rManifestResources</c>.</param>

.

    /// <param name="pcTokens">[out] The number of <c>mdManifestResource</c> tokens actually placed in <c>rManifestResources</c>.</param>

.

    /// STDMETHOD(EnumManifestResources)(       // S_OK or error

.

    ///     mdManifestResource  rManifestResources[],   // [OUT] Put ManifestResources here.

.

    /// STDMETHOD(GetAssemblyFromScope)(    // S_OK or error

.

    /// STDMETHOD(FindExportedTypeByName)(      // S_OK or error

.

    /// <param name="ptkManifestResource">[out] The array used to store the <c>mdManifestResource</c> metadata tokens, each of which represents a manifest resource.</param>

.

    /// STDMETHOD(FindManifestResourceByName)(  // S_OK or error

.

    ///     mdManifestResource *ptkManifestResource) PURE;  // [OUT] Put the ManifestResource token here.

.

    void FindManifestResourceByName(

.

    /// STDMETHOD_(void, CloseEnum)(

.

    //STDMETHOD(FindAssembliesByName)(    // S_OK or error

.

    tdReservedMask      =   0x00040800,

.

    /// STDMETHOD(DefineScope)(         // Return code.

.

    /// STDMETHOD(OpenScope)(           // Return code.

.

    /// STDMETHOD(OpenScopeOnMemory)(       // Return code.

24: ITask
.

    public ushort          wEndMonth;

.

    [MarshalAs(UnmanagedType.U2)] public ushort        wEndMonth;

.

      ///virtual HRESULT STDMETHODCALLTYPE AdviseEventSink(

.

      ///virtual HRESULT STDMETHODCALLTYPE UnadviseEventSink(

.

      ///virtual HRESULT STDMETHODCALLTYPE GetThreadMarshalInterface(

.

      int GetThreadMarshalInterface(uint dwThreadId, uint dwType,

.

      ///virtual HRESULT STDMETHODCALLTYPE GetThreadLangBarItemMgr(

.

      ///virtual HRESULT STDMETHODCALLTYPE GetInputProcessorProfiles(

.

      ///virtual HRESULT STDMETHODCALLTYPE RestoreLastFocus(

.

      ///virtual HRESULT STDMETHODCALLTYPE SetModalInput(

.

      ///virtual HRESULT STDMETHODCALLTYPE ShowFloating(

.

      ///virtual HRESULT STDMETHODCALLTYPE GetShowFloatingStatus(

.

    void ReadMultiple(

shlwapi

28: IsOS
.

     /// Administration mode or Application Server mode, or Windows Server 2003 (or

.

     /// Administration mode. Consider using a more specific value such as

.

     /// TerminalServer, TerminalRemoteAdmin, or PersonalTerminalServer.

.

     /// Administration mode or Windows Server 2003 (or one of its successors) in

.

     /// the Remote Desktop for Administration mode (these are the default

.

     TerminalRemoteAdmin = 15,

.

     /// The user should be presented with administrator UI. It is possible to have

.

     /// server administrative UI on a non-server machine. This value informs the

.

     /// application that an administrator's profile has roamed to a non-server, and

.

     /// UI should be appropriate to an administrator. Otherwise, the user is shown

.

     /// a mix of administrator and nonadministrator settings.

.

     ServerAdminUI = 34,

user32

.
Summary
.

static extern bool AppendMenu(IntPtr hMenu, MenuFlags uFlags, uint uIDNewItem, string lpNewItem);

.

Shared Function AppendMenu(ByVal hMenu As IntPtr, ByVal uFlags As MenuFlags, ByVal uIDNewItem As Int32, ByVal lpNewItem As String) As Boolean

.

    Shared Function AppendMenu(ByVal hMenu As IntPtr, ByVal uFlags As MenuFlags, ByVal uIDNewItem As Int32, ByVal lpNewItem As String) As Boolean

.

        AppendMenu(hMenu, MenuFlags.MF_STRING, 2, strMenuItem)

.
Documentation
[AppendMenu] on MSDN
.

This method requires administrator rights.

.

To change the postion of a secondary device it is very important to use dmPositionX and dmPositionY from DEVMODE (see structs).

.

First i tried it with a PointL struct dmPosition.x and dmPosition.y until i luckily found this page:

.

DEVMODE dm = new DEVMODE();

.

EnumDisplaySettings(d.DeviceName, 0, ref dm);

.

dm.dmPelsWidth = 1024;

.

dm.dmPelsHeight = 768;

.

dm.dmPositionX = Screen.PrimaryScreen.Bounds.Right;

.

dm.dmFields = DM.Position | DM.PelsWidth | DM.PelsHeight;

.

ChangeDisplaySettingsEx(d.DeviceName, ref dm, IntPtr.Zero, CDS_UPDATEREGISTRY, IntPtr.Zero);

.

        void AddMenuItem(uint hMenu, string text, int id, uint position)

.

                AddMenuItem(hMenu, "Reschedule", id, 0);

.

                AddMenuItem(hMenu, "Retry Now", ++id, 1);

.

                AddMenuItem(hMenu, "Cancel", ++id, 2);

.

                AddMenuItem(hMenu, "Commit", 100 + id, 0);

.

                AddMenuItem(hMenu, "Rollback", 100 + (++id), 1);

.

    internal static extern bool AppendMenu(HMenu hmenu, MFMENU uflags, IntPtr uIDNewItemOrSubmenu, string text);

.

Comment from admin@paradisim.net : When you post your examples, let people know if/who wrote the example that way Myself & Others can give credit to you if it gets re-used in our own code!

.

        public IntPtr hwndMenuOwner;

.

        public IntPtr hwndMoveSize;

.

        public int hwndMenuOwner;

.

        public int hwndMoveSize;

.

        public IntPtr hwndMenuOwner;

.

        public IntPtr hwndMoveSize;

.

          return "Thai Kedmanee";

.

          return "Thai Kedmanee (non-shiftlock)";

.

Dim hwndMain as IntPtr = FindWindowEx(intptr.Zero,intptr.Zero,vbNullString,"My Window Title") 'Get the Window Handle

.

Dim hwndMenu As IntPtr = GetMenu(hwndMain) 'Get the MenuHandle

.

Dim hwndSubmenu as intptr = GetSubMenu(hwndMenu,1) 'Get the SubMenuHandle to the visible MenuItem, in this case the second one (counting from zero)

.

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

.

        QS_SENDMESSAGE =    0x0040,

.

        QS_ALLINPUT = (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE)

.

            public uint KeyboardMode;

.

        public int dwKeyboardMode;

.

Dim hwndMain as IntPtr = FindWindowEx(intptr.Zero,intptr.Zero,vbNullString,"My Window Title") 'Get the Window Handle

.

Dim hwndMenu As IntPtr = GetMenu(hwndMain) 'Get the MenuHandle

.

Dim hwndSubmenu as intptr = GetSubMenu(hwndMenu,1) 'Get the SubMenuHandle to the visible MenuItem, in this case the second one (counting from zero)

.

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

42: Hello
.

I did not mean to create this page in the user32 section so may an admin delete it

.
Summary
.

static extern InSendMessageExFlags InSendMessageEx(IntPtr lpReserved);

.

InSendMessageExFlags

.
Documentation
[InSendMessageEx] on MSDN
.

bool foundMessage = PeekMessage(ref msg, hWnd, 0, 0, 0);

.

  bool foundMessage = PeekMessage(out msg, IntPtr.Zero, 0, 0, 0);

.
Summary
.

public static extern bool PostThreadMessage(uint threadId, uint msg, UIntPtr wParam, IntPtr lParam);

.

Public Shared Function PostThreadMessage(ByVal id As Integer, ByVal msg As Integer, ByVal wparam As IntPtr, ByVal lparam As IntPtr) As Integer

.

<DllImport("user32.dll", EntryPoint:="PostThreadMessageW", ExactSpelling:=True)> _

.

Friend Shared Function PostThreadMessage(ByVal idThread As UInt32, ByVal msg As UInt32, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As Boolean

.
Documentation
[PostThreadMessage] on MSDN
.

Win32.SendMessageTimeout(windowHandle, lMsg, IntPtr.Zero, IntPtr.Zero, SendMessageTimeoutFlags.SMTO_ABORT_IF_HUNG, 1000, out lRes);

.

    Private Shared Function SendMessage(ByVal hWnd As IntPtr,

.

        SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0)

.

private static extern int SendMessage(IntPtr hWnd, int msg , int wParam , ref int lParam);

.

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

.

  private static extern UInt32 SendMessage(

.

  lResult = SendMessage(  // returns LRESULT in lResult

.

    private static extern uint SendMessage(

.

    private static extern uint SendMessage(

.

        return (int)SendMessage(this._handle, SB_GETPARTS, 0, 0);

.

        uint length = (uint)SendMessage(this._handle, SB_GETTEXTLENGTH, index, 0);

.

            StatusBar.SendMessage(this._handle, SB_GETTEXT, (IntPtr)index, allocated);

.
Summary
.

public static extern IntPtr SendMessageTimeout(

.

    SendMessageTimeoutFlags fuFlags,

.

public static extern IntPtr SendMessageTimeout(

.

    SendMessageTimeoutFlags flags,

.

[DllImport("user32.dll", EntryPoint = "SendMessageTimeout", SetLastError=true, CharSet=CharSet.Auto)]

.

public static extern uint SendMessageTimeoutText(

.

    SendMessageTimeoutFlags flags,

.

[DllImport("user32.dll", EntryPoint = "SendMessageTimeout", CharSet = CharSet.Auto)]

.

public static extern int SendMessageTimeout(

.

SendMessageTimeoutFlags

.

Public Sub SendMessageTimeout(ByVal windowHandle As IntPtr,ByVal Msg As Integer,ByVal wParam As IntPtr,ByVal lParam As IntPtr,ByVal flags As SendMessageTimeoutFlags,ByVal timeout As Integer,ByRef result As IntPtr)

.

Public Shared Function SendMessageTimeout(ByVal windowHandle As IntPtr, ByVal Msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr, ByVal flags As SendMessageTimeoutFlags, ByVal timeout As Integer, ByRef result As IntPtr) As IntPtr

.

Win32.SendMessageTimeout(windowHandle, lMsg, IntPtr.Zero, IntPtr.Zero, SendMessageTimeoutFlags.SMTO_ABORT_IF_HUNG, 1000, out lRes);

.

    int result = SendMessageTimeout(hwnd, WM_GETTEXTLENGTH, 0, 0, 0X2C, 5, out length); //0X2C = SMTO_ABORTIFHUNG | SMTO_BLOCK | SMTO_NOTIMEOUTIFNOTHUNG | SMTO_ERRORONEXIT

.
Documentation
[SendMessageTimeout] on MSDN
.
Summary
.

static extern bool SendMessageCallback(IntPtr hWnd, uint Msg, UIntPtr wParam,

.

    IntPtr lParam, SendMessageDelegate lpCallBack, UIntPtr dwData);

.

C# signature for the SendMessageDelegate:

.

delegate void SendMessageDelegate(IntPtr hWnd, uint uMsg, UIntPtr dwData, IntPtr lResult);

.
Documentation
[SendMessageCallback] on MSDN
.
Summary
.

public static extern IntPtr SendMessageTimeout(

.

    SendMessageTimeoutFlags fuFlags,

.

public static extern IntPtr SendMessageTimeout(

.

    SendMessageTimeoutFlags flags,

.

[DllImport("user32.dll", EntryPoint = "SendMessageTimeout", SetLastError=true, CharSet=CharSet.Auto)]

.

public static extern uint SendMessageTimeoutText(

.

    SendMessageTimeoutFlags flags,

.

SendMessageTimeoutFlags

.

Public Sub SendMessageTimeout(ByVal windowHandle As IntPtr,ByVal Msg As Integer,ByVal wParam As IntPtr,ByVal lParam As IntPtr,ByVal flags As SendMessageTimeoutFlags,ByVal timeout As Integer,ByRef result As IntPtr)

.

Public Shared Function SendMessageTimeout(ByVal windowHandle As IntPtr, ByVal Msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr, ByVal flags As SendMessageTimeoutFlags, ByVal timeout As Integer, ByRef result As IntPtr) As IntPtr

.

Win32.SendMessageTimeout(windowHandle, lMsg, IntPtr.Zero, IntPtr.Zero, SendMessageTimeoutFlags.SMTO_ABORT_IF_HUNG, 1000, out lRes);

.
Documentation
[SendMessageTimeout] on MSDN
.

Public Declare Function SendNotifyMessage Lib "user32.dll" Alias "SendMessageA" ( _

.

    static extern int SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);

.

            SendMessage(hWndNextWindow, m.Msg, m.WParam, m.LParam);

.

            SendMessage(hWndNextWindow, m.Msg, m.WParam, m.LParam);

.

    public void UnmanagedMoveCursorOverButton(Button button)

.

    public void ManagedMoveCursorOverButton(Button button)

.

    public void UnmanagedMoveCursorOverButton(Button button)

.

    public void ManagedMoveCursorOverButton(Button button)

.

    static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, int wParam, int lParam);

.

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

.
Note
This SetWindowText will set text to the controls(textbox for example) in the same process. If they exist in other processes, use SendMessage instead... - jp

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


 
Access PInvoke.net directly from VS: