Desktop Functions: Smart Device Functions:
|
Search Results for "DM" in [All]credui0NHæÓñ« 5jv4áfz0Þ j¿ÿçQ$Q=@ <(xb±Ð/lÉÆ:púE7Ä yÍ¿V¬[7B5AS]nÞ&I. wÎÀ]á=rÿ#Ëúò|{L=²fÃàìIH7(×ÁèHð ÃåOùA!¹üèW§zRòc(Ô¼£20bø¿ø7í½¯ÏÊõ-̾ísÕû«ÊÆáí´´ðwboQà!Mh 4(è?KGa¶1pöAaÝw_§È÷|1Z¹ÌÇ`DmÕ Ë1 (ÇQÛSf*¤uí¨×ëê«2\v0¯|Ï¿ðÌø÷Õ3_Ï}¾«áÓSV",Skô¯ÿÚIC¸,-pQ¨`µxü»IÇ4gãYµ¼I«LöFOÐ&ÝÚâéyØøÂ¤7CVö¡30¹UY¢þXJ]ü¥Ýaô¡óDÙljþ^,ìÅGä 8quí=<ìMsåm\ii5çrXÚ¾ì 2: ! ¦Î>fÔAý ,®òU>º#WW}͸éÎ.æ:ȬËÝÂjæÝ¨ÒªifâH:r@¨ÀÒèzò¢ÇpÑGØUÒ.Ee1ʱ;è{'6éhk«-r]7« ?<û?îäsÜm &ç/5y7ðÙ°,ù·âEγdM7wæ}&_¾[VƤ¸Hñ1¾ï»QÙWÁ®Ë ·Ò©TèJQç¸7§Eñ«í©Ó[p
/// Credential providers should enumerate only administrators. This value is intended for User Account Control (UAC) purposes only. We recommend that external callers not set this flag.
CREDUIWIN_ENUMERATE_ADMINS = 0x100,
CredUIWin_Enumerate_Admins = &H100
credui.pszMessageText = "DisplayedMessage"; gdi32Calling this API is required when working with PrivateFontCollection and AddMemoryFont, or you won't get it working. privateFontCollection.AddMemoryFont(ptrFont, fontdata.Length);
private static extern int SendMessage(IntPtr hWnd, WindowsMessages wMsg, IntPtr wParam, IntPtr lParam);
//This version of SendMessage is a blocking call until all windows respond.
long result = SendMessage(HWND_BROADCAST, WindowsMessages.WM_FONTCHANGE, IntPtr.Zero, IntPtr.Zero); msportsë\v$ï Õ0æYJ£A-DM$¸ÿ\x I0¶ØcÂìòÓ çµJȽº8ß;û3¶Y¶ÝÞ2!¡ ÿ«Ýí*qмwÜå`G³ÄZlpÁàâ£ÑæO>ßöpòVdøá¢@?òôRf'©PñOüRôÍz¨ËÒTúZ72r^4P@Y¯uú-®U 8: !!!!!!! 8vxj:cô®Â'méG8zG¯ê ¹ô§Ð½¡ùúFØj(´[]ºùß]?Yîeþ/c´tòÙ5O"Ù¤ñ,§¸<mÕáèH£Iª?ßÝ4ì95çJùôï:«ßZ¿öÀ)Kþß%GÃÂ'HÀW·AíKzÏãÌölNÚ÷mßfåVÁç¦â{Àº@êú;ä$«IºIã8hË PùøoÐ&;.Ó¥lÀÈýÿèì#ù¾¸°ù¤Äà$s?ô#f·«Ú¸GbFÂÌv̺Æ7zö8;'mÌ8a½ïQò&G°JèS6?ßÑÈ? e%l, `'{ȱöXßñZ?þ«Yì`lfÛb³°èÐ 5}»/ùBDu·ìÁÑ·=ÜOdM¸£¨â&¿äO 9: ! NÓïÝ|§ÕnÓWÃîK_5q{¿i.,ñm²lÐÖâöéôiØ,ÆL³VÙxÈ+÷ý ñsL¼§Ö£FïðºèÆ(lo3¦DJí+´ëåX,QãIµìÎsDòñ['ª³ÃGÜ+ÄÕ!Y³"DmÁí±ZÆÚè2åë»`d½0åi¸%ÏâêùU Åz6PÉSoa=õcjl¶ÚõµòéÈ×±õô°öLÛÄAñ?«?]d%FeÜ&|¡ Y MÉ9ͤÔfû¬¯a|ÒèÙveÔÆ%Ãu¯&srtK±<B¶##7zs§£ðCFÇN,"µ GMÔ3 ã winhttp10: !!!!! ô1ÈÙM0à¾Á9Ç×b«(SêhYØs;<UF3ä¬2/Î"nZÊÅǽɰ¹·£dÔåÓ~Ü6W=ÙÏòEB_¹õèfÜHûQ;³ã¢Æ_FâïÖ²IäJÞSζ߽pÙúÕ½]ÄObW}Â"ØcÛÓïs3/fZTZbÜq¯0Èõå~A]S&ɤ[p÷zÀÌu|'æçeôÔ7;z%ôÅ=stî8¥ì¹I9"zÏØâ5Ù)Öäµuþ*òc©È,³»¤ÛìþËsIåÒû~I::Nûà&´»?OX»äS Ì /×Mñƶné°êE¶Þ¾MUXfPjáÎ×ãfdФTKSîZ3ä¥Qñ(ó¤ÆÜ0ww¥Æ¢'ÝÑ 8ªjÚ©¿¥AÚgýÈ4B2Ù4Ñg-JíÊR¶|Uê "ù¸.(<B¾Gq)Îqã5ignÝc?¤¿§ñ0).»¨ V +éªËhãÛßÜdIOaópyÐcÇÈêr:5ÄwØþ¼Éx¡ÇÎûcm¼b£»ø×)C@(«¬¨ßÒNÞÔó̸ºßËy{ÔïÊÈÞ¾Û¦%Ï5Îl£ N¤£-a¥Ö-Vr`EÁ˵©väH. ö¨U¤?@<íq°÷¯àÚN_« Ðqù¤xëGeK/{ëä³p¼Â<=Ý]®Àõæ¸j¥qCèÐãq¤Dm@]JT`$!KfÇçEdôÏc³[Ø=î% Ës£Ý ̧Î|'ºÇ^àûÁ̾u0ód_6Î!7©£û3®§ÌSÏáµï°XþqÞ¢S´öeôú@ÆmñhmvÞîm·}xã([Å]°cº`i`¢ãXß)ɽ=Ê|ð}myôåË·¢]tÏðö¼s8¿ÊÌD8×7;;*RÒ¡í kªPìÁ¤¯i&Ý icmp11: !!!!!!!!!! 77ÍJ0G©AdmÃc¥Øûð1\UY¡!`ÝÐçêÎùíù¢Uú,wì6õ[¦ö0ìYÇ( fltlib12: !!! 1Éå:tYÊt¬"DMZ×Yq"ésðTzø=:þQW·5t\q2²A¢©1V¿&$üM´cgypQß¶G%Bï¬07´aLRùÏ]|ZF[¨¦èÐ2 # ÆnD(2úþM°FI[3Æ]£,µ8¯ý²%Òî Delegates13: !!!!!!! ñmÝlÏ© ¹S\.UÁ»ôWUt½¸¨PûܾIÑ`%¹ÃOËì(- :ó7Z.ó<i¾|>ömîa+NĨáèÁfçÊõNüµtkÁãÍù±ÌËY5Wi^3`Ï4?Q¹ådÍLÚ8Îêùé¹w%Õ͹P¹7ïÜö²]A¸ù¸gxG7ðî¼×j&©Ä¾Jÿ/´-!¦T¤v"«d[U³GAÕ,ÇU Idmç É2G5Rx6I±ÿs=Åêt¶gjþh«üå>!íýØtéàɱ6É\Ý8»wKRä¾?æ×¾?˲Xñ?$@Æô^dÿX{(?¢#9"³5[Ë(p. aAw¾¯¿i¨HZòé/Àõfu²Ù3l8}±Ö7v»U@2¾)¸¸Î³NÞÒïSQ)})Ø]+BózÏK` &@RÄ¢wÚÛ×Yí4´,Z±-à?¾3pAAw}ªbÖõXó°øÍho Ϊ ×dIÔTª¿â»½_L¨s/]R3Vj·\íhµõëYb®lÔ¬«þ dÏÝïlõUñzÈijûLqnl¬PbÙð Ï 14: !! Í C¶/l-!F?dËÄÉf3_5|â« ¸ÐV¦ þ´A J¢Rþ)áR¹`ûQʤ½"ÿ!Ðûj±üm¢Ðþéßÿ"´æY®;¬Ð2PxgK¸zIT}fíh â«äËá¨x* £~MfÎÐ,¥3£äé*cïëÑ*ðÆ`}b|.Pzö¸ÕXÍuQ jÂØõw´G½ -òëËÎàïÓÛ¯Q.éoYÓÍw`1GAÀܾ>Ø£ÄÁbdË«BÚsmqêc=,ÂÒɳ°é±/³Y<Dm$ÏBøGTß_Û5ÊÖð6}ìñ8n±¼^%ÜvB½üÆÒîL:ån ,DRhé©ròÙ@Pupoºwjùø÷úEÈO7>wF¦´Ñägõ³gD6ÂtTìÀG¹ÙÔf®y3{ÿ).«ûd£Ñ9xMåy\à avifil3215: !!!!!!!!!!!!!!!! /Zîóé²JZÂÇwí>õ'Tu`ÞºQ6Éÿߥ(º¦óPFCDõÁlr*O¼ûwa±(Ò=ÅOÝjÆYvvAçÁÇÛ,» MOlx¨£^ ÚQ²eâܲt½,+øÃ4 ¡ÝM°}óÖâε{D¸»ÃH2ÛÐszÊ>ájßÎÌñ,WlªT¯øÏUgíË}ÂKoF% ¬ôK¼²!1°¸.![Ê]/g2ÒLï7â[ûcòMÉr-ìVDM,e7ô´×²Aü¢=©é2±skÄËxð»Ëò;Núùw!%eh5dÞ(ÈI¢o1§wÒé^ÃO^Ì+çót²mr;äüfø¢N¦oöCØN(Ûð¢¡<yZÃ/ÿ¸:èÐ×ËÍöÏ_¹9òÈ[´ðòúÿÕ¹alubÛãþ-ÖNÖ12§ (÷h4ÏtrV4l«ma%Z ñÑ=04}úTÿ©4áäÕì>ÉbL oleacc
if ( SendMessageTimeout(hWnd, nMsg, UIntPtr.Zero, IntPtr.Zero,
SendMessageTimeoutFlags.SMTO_ABORTIFHUNG, 1000, out lRes) == IntPtr.Zero ) msdeltaÚ²ÿcàl9_é`$MÜÙRÉéB]Aølfíî55Â|Ã\X!4 EÊ·<·£iò³ý³ÂHõró TJNô
òÎÿqhámåVÉI«&©aÊ·þÉ:»ûìQÃÅal0õ=è×É^g( odbccp3218: !!!!!!!! ´ç°zU,Ò%Â9Àÿ]MÓ6f×Hµ¾U F/àPB}M±% hÕVõeÕz*I7/N5£$ã aªO)p®½Àþ=é|0Öõ=¹PÖZþt«l'¼ïfÀÒX¶"E%®Xø% oC&6EûhÁ÷U]ñåÓJSÿH6×u8ñ&ÇRÏ7 C¾'OÔcVùé|SüÉ^#G(QHϱ@'dé¶ç²(\²ËZ%#¬dôeÐõEîz(ÏÐEÍ7ÂSG¶FßìÇSòàúÑ][ +>`<Uq«B§VºVLç¢3>ç¼f÷ãñëUoYÊ{Ù\³Dú°ñåø4 Õë±ÙáFnFO$ \ʺ-«'ÞdMïÑjú×¥@þÂkîû|åTÓ,ãÑ*Qb©òBo©b6нP¾|³s»ñðÔJÔ̲n¨gÚý,tCÕ IÒf×2)t|ÈÅÊøÑX¢`ÝÄ]ÞÎgf~+#_¬3zòihnaX%çüL~wRÓpy溦À? 8ssv)ÂiÁÉmâlèæßk^SgÙUdm¦$ZÌÈzÏ˦®|mà²Uö¹C»)´eúÕïÿDà.{ÓÙí±hÏSVÖó\K߯7 advapi32ð£SIcMAõ£\ÊàDÕIM¸4f§Àv\ó8T±Åqïfw*¡¥ ÆÜÆrì Èa3ÏI óhÖaÉ@¨G¡Çà)UVï©õË }`qÿFÓ7aQïmlWÍð|ÈÆ M0.¡cCkvic¬î.¿/¢dm¥Ù!Øã¦¹ªÈÒ±Ô(£`ºèôÖ¹d¦Þ`ÁvCWÖ8 Ô4ÊÞào¿ýCzÉÌUBÒ3¼¥Y4,æf}&ᨿíüä¡Ö£õË,®ÔÀì"&Þ<-`{ô!à¡yNCMrk³ðkõh£ÝH~O±«Lõ6e-ìHùA»éÀ±8º 20: !!!!!!!!!! ùx!¼jFîÞ$W?©8@ýXÿu¬ÜSxéÅ ÒK\«ÜѼW7ÐXNáÍD¾ÒÍè¹Dm´NóÎq hr=þz§ÈzJê{ÑO±äà/"!aO¯Ñ½hÛxÈSY£³$:ð¹Äß"©©Wr÷s:ðs}`AZt0]ë"âSn£¼4èÉU"£ÃÍqEä;ÿëw'ÛU¼tÒ®éîc-]DJ-`ê¿UzìùóX/nª×JyWa©û©ÛNqØÇÀH¯¿¨æ %ÝAϸUE 21: !!!!!!! 4:½B7vÖX~µKÃm·ì [Yq'¡iÌý¬iïGéÀ¦yF%|ßþû},xA¨èm¤rÄy¢(hdm`øpUùÝÊ×~n5$®í÷ã*êàÔ¹"[[fó\b9!0>4Õ×=úG¯q«´3Ó´oÓÁà±QÕ×M_:ijZ¬(ÇRAñze]'öÃ1÷Y¤xR éÕÇ3&åßHÄ®;e;f®õUOÚí/ÆD)TèWÌÃC±ãÐÓl/ÐÚ$. Vs׍«o÷úa COúNkCÂ_Qé`õ&Ôý+ë2?=ø_¡|-dù@Þ¯¬Çাw$
case SecurityEntity.SE_TRUSTED_CREDMAN_ACCESS_NAME:
return "SeTrustedCredManAccessPrivilege";
SE_TRUSTED_CREDMAN_ACCESS_NAME
Const DOMAIN_ALIAS_RID_ADMINS As Integer = 544
Dim AdminGroup as IntPtr
If Not AllocateAndInitializeSid(NtAuthority, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, 0, AdminGroup) Then
MsgBox("Yikes, couldn't create the Local Admininstrator Group's SID") 24: BackupEventLog eventLogSession.ExportLogAndMessages("Application", PathType.LogName, "", @"logFile.evtx", /tolerateQueryErrors*/ false, CultureInfo.CurrentCulture);
[DllImport("Certadm.dll", CharSet=CharSet.Auto, SetLastError=true)] Please see the CredMarshalCredential function.
Dim Token, ImpersonatedToken, AdminGroup As IntPtr
Dim IsAdmin As Boolean
' Next we build the SID for the local Administrators group
If Not AllocateAndInitializeSid(NtAuthority, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, 0, AdminGroup) Then
MsgBox("Yikes, couldn't create the Local Admininstrator Group's SID")
' Lastly, we check to see if the impersonated token is in the Admin Group
If Not CheckTokenMembership(ImpersonatedToken, AdminGroup, IsAdmin) Then
FreeSid(AdminGroup)
MsgBox("IsAdmin=" & IsAdmin)
Dim user As String = "administrator"
CREATE_SEPARATE_WOW_VDM = 0x00000800,
String user = "administrator"; 29: CreateService
/// it should be granted only to administrators.
''' it should be granted only to administrators.
CREATE_SEPARATE_WOW_VDM = 0x00000800,
CREATE_SHARED_WOW_VDM = 0x00001000,
CREATE_SEPARATE_WOW_VDM = 0x00000800,
CREATE_SHARED_WOW_VDM = 0x00001000,
CREATE_SEPARATE_WOW_VDM = &H800
CREATE_SHARED_WOW_VDM = &H1000
static extern bool CredMarshalCredential(int credType,
Declare Function CredMarshalCredential Lib "advapi32.dll" (TODO) As TODO
NativeMethods.CredMarshalCredential(NativeMethods.CertCredential, 32: CryptGenKey
ALG_SID_DSS_DMS = 2, The LookupAccountName function attempts to find a SID for the specified name by first checking a list of well-known SIDs. If the name does not correspond to a well-known SID, the function checks built-in and administratively defined local accounts. Next, the function checks the primary domain. If the name is not found there, trusted domains are checked.
string accountName = "Administrator"; 34: LookupAccountSid The LookupAccountSid function attempts to find a name for the specified SID by first checking a list of well-known SIDs. If the supplied SID does not correspond to a well-known SID, the function checks built-in and administratively defined local accounts. Next, the function checks the primary domain. Security identifiers not recognized by the primary domain are checked against the trusted domains that correspond to their SID prefixes.
// Sid for BUILTIN\Administrators
public const string SE_TRUSTED_CREDMAN_ACCESS_NAME = "SeTrustedCredManAccessPrivilege"; 36: LsaOpenPolicy To administer the local security policy of a local or remote system, you must call the LsaOpenPolicy function to establish a session with that system's LSA subsystem. LsaOpenPolicy connects to the LSA of the target system and returns a handle to the Policy object of that system. You can use this handle in subsequent LSA function calls to administer the local security policy information of the target system.
LSA_AccessPolicy.POLICY_AUDIT_LOG_ADMIN |
LSA_AccessPolicy.POLICY_SERVER_ADMIN |
LSA_AccessPolicy.POLICY_TRUST_ADMIN |
POLICY_TRUST_ADMIN = 0x00000008L,
POLICY_AUDIT_LOG_ADMIN = 0x00000200L,
POLICY_SERVER_ADMIN = 0x00000400L,
LSA_AccessPolicy.POLICY_AUDIT_LOG_ADMIN |
LSA_AccessPolicy.POLICY_SERVER_ADMIN |
LSA_AccessPolicy.POLICY_TRUST_ADMIN |
POLICY_TRUST_ADMIN = 0x00000008L,
POLICY_AUDIT_LOG_ADMIN = 0x00000200L,
POLICY_SERVER_ADMIN = 0x00000400L,
public bool PasswordMatched;
public bool PasswordMatched;
public bool PasswordMustChangeAtNextLogon;
NERR_PasswordMustChange = 2701,
inputArgs.PasswordMatched = true; 39: TraceEvent
public static extern uint TraceEvent(Int64 traceHandle, ref ADMIN_EVENT_ETW_HEADER evnt); user3240: 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) 41: 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); 43: 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!
45: EndMenu 46: GetGUIThreadInfo
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)"; 48: GetMenuItemID
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! 49: GetQueueStatus
QS_SENDMESSAGE = 0x0040,
QS_ALLINPUT = (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE)
public uint KeyboardMode;
public int dwKeyboardMode; 52: GetSubMenu
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! 53: Hello I did not mean to create this page in the user32 section so may an admin delete it 54: InSendMessage
55: InSendMessageEx 56: LoadMenu 57: LoadMenuIndirect 58: PeekMessage
bool foundMessage = PeekMessage(ref msg, hWnd, 0, 0, 0);
bool foundMessage = PeekMessage(out msg, IntPtr.Zero, 0, 0, 0);
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
Win32.SendMessageTimeout(windowHandle, lMsg, IntPtr.Zero, IntPtr.Zero, SendMessageTimeoutFlags.SMTO_ABORT_IF_HUNG, 1000, out lRes); Cut off search results after 60. Please refine your search. |