Desktop Functions: Smart Device Functions:
|
Search Results for "DM" in [All]oleacc
if ( SendMessageTimeout(hWnd, nMsg, UIntPtr.Zero, IntPtr.Zero,
SendMessageTimeoutFlags.SMTO_ABORTIFHUNG, 1000, out lRes) == IntPtr.Zero ) Constants2: BM_CLICK
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 8: NERR_
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; 9: PIPE_ 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 11: PRINTER_ACCESS
private const int PRINTER_ACCESS_ADMINISTRATOR = 0x4;
private const int PRINTER_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | PRINTER_ACCESS_ADMINISTRATOR | PRINTER_ACCESS_USE; 12: PROPERTYKEY
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) 14: WINERROR
/// 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
Public Enum WndMsg mapi3216: MAPIFindNext
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). 17: MAPIReadMail
/// 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,
/// message. MAPISendDocuments differs from the MAPISendMail function in that it allows 19: MAPISendMail
/// 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); 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; 25: ITaskTrigger
[MarshalAs(UnmanagedType.U2)] public ushort wEndMonth; 26: ITfLangBarMgr
///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( shlwapi28: 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, user3229: AppendMenu
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) 30: BlockInput 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); 32: CreatePopupMenu
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!
|