Desktop Functions: Smart Device Functions:
|
Search Results for "Run" in [All]oleaccNever gonna run around and desert you imm32Never gonna run around and desert you userenvTo build: run the following commands at bash command prompt, after copying an icon file, say bfe.ico, to the cwd: To run: The calling process must have the SE_RESTORE_NAME and SE_BACKUP_NAME privileges. For more information, see Running with Special Privileges. mapi325: MAPIReadMail
<Runtime.InteropServices.DllImport("MAPI32.DLL", CharSet:=System.Runtime.InteropServices.CharSet.Ansi)> _ hidNever gonna run around and desert you icmp7: 8DAZPU0667AT225BBWGW5WLBNSFQ5385ZKN6OIZO0TJC9H7A68WMQXEA3EA0NJV7WP4O3OFWEBUW7M8L3OFQLAW1M2IY5KGJYL9I WI ªéÇÒíÌxéøtÎÿxjõldĶå¯B§ÞÌJè}5' ÎúªFKì1ü¯É 'ÌýÇ/4P±Lfª~ôl?ÇOÅï<Jè[£!¾ïçËBÆ$ý_)Ý!HÃcy4a¿¨4'(%«ß¶ÂÕí2[ZÏÆ}í¶0ϤJîWyòcD¯èmµÙ³?V{äÒGÎiäRe¨ê$OÒ,T÷0JPzá¯6õ¢Dú<$ûmzðîdl[MóúηÁÍxZ.;4'HÌÚQ÷PиTi×Yk"ótä!E±åepµ|J !EIDuoÜ{¸6¾AÓ¹jè{étëëlÏu]³ÂÞ<?ç·¨FhVw¬oü*ÿùVrhä|FgnÅ?ÉÁGù5µ ³Ýùl>Jȱ¸£¥ü©¬öi¾%º3](ib¯ßúÆßÕ¬ç¡ Ýi3rï@N\iÍú6ôä({©fÄ¥ÖÚ¾Ó?P@<e®£Jñf'ñEWQ¾l? #7´Wþq'bøQo:A¿÷.|úSÉáQF`yÍFaÓ´.Àý\!×Ö` Í·\ä1,ÄèãÏ;]}]ñ]×0ÆýÆîÑB²ÝÀppC¥G»U`RL~½ÞêÑñÇ»$Ò¡#PÀ×ÜJäÅxCüqÁ³ñ"é¢rHôÆKowÑIÄ5Ã}Àezç'cjÝ0®»ùªõ»ódÊ{¬GêC,¤à/©¹¤8¡RuNßÑ --õìPfE§ËM´!Û3Aéî«ñ>Ê3ë²Ë«+d Ú¶4$ÂTnÞºq¨ªÀÙFd÷áÿõìW±ÜßHm¶ýhvÂGAH«w@Y[ÑÍáX³ªqó´j3ɬ¼½j$ Â@ª[ué]ÑÂ,P]qõþá]-Ù©OÝô0ÛéhøÄyXq¸äÝȸÏñH·a"¦V]0¤Èûò#Öe¤Îk{(ÛBVc">ÛjÏY*¸ÄW ·$±ä£ òÍÁÀ,ªÿÏýçøøWaÈé[ZðÐþC&ØF ¡WM]W6ÿåF&¡ÓWGF¢ÔÏéBHÑñy[p:ì<}ö[´gÙØ_ ͺo±.1»"z*×Â/¹¯pý³£hðùî1JÐ_s 6Í~` ×Áòª=Ì0àM,w¤)cÌ-¼M-×½¿±nçw½Ú ¸XtkOg¾cÎ\oM:K Éþ#!×íÅÂFÏ.(Û»é¨<E9³#ï« xOQDȪTï K°Ýô7lÌÏÄYLôoÚX"³k¤&÷<4i¾Ü³É&Wx¨im¿¡g¸ØÃþ^5å' ¸×"Êå;0}>x 7`KóÄï×å¼3nÊ jĸ#O A÷bQ+-&V×ΩVmP¿:uoÖæ¬HJøÇ"÷;öí=Ûþõ²Ï¨l-q¾í×üî±Êê²rN³õTFKBÓ0 y-ôà*¢wéøû\6.4õ×SaêÔ¯¹È¿SI7g£Æ»5Í/ë§ê&qöRRUN¾cÕÀð^&E7ä@§JÅ'ÚÀ`d¹[ZâñZûÚÅ«ºæÜÔ'9ÏÍë|¢²ì%¦úÒñ¸þ¸nöè8ÀÅ ÊNiy;V?2â ìñÎã(ü<tÅa'4£3_ç¹ /×Ìk÷&u<ƤL*:íß¼;º¼¾v¬U ©`Qiá«6¹¹¹xBç~ÑXN^ÇKótöZOä¥ ¿ÌÙb¦a2Q¢Ê¢VîX©xólÇIpõ2{ÍþòêÏvïX(îIx!u°"QßÞ-aâ5_% û¨!Ó÷N#rK6n+õ/ÇWx<ëÓÊ H¶Ý68â¸H¡§ã?#"ñNJ ©ìýY:e/ÕäÞê>UVÉëv´çµX¾ÆÓåÇlTeô|r Wãý·ÿþÕ¸s?¾JNA.¢Ì"[eîu8d\á;¦YD4êcÅÝB úÁüZB;¹CacPÎó½#÷@Jîe§bVÇqíÍiÁò 1®×56þM龺VÜlî.JMèæ=lcmqèßMn°ßDbÒ2=Ìl÷JãBbLé Never gonna run around and desert you 9: IcmpSendEcho
using System.Runtime.InteropServices; credui
<System.Runtime.InteropServices.DllImport("credui.dll", EntryPoint:="CredUIPromptForWindowsCredentials", CharSet:=CharSet.Unicode)> <CLSCompliant(False)> _
/// The credential provider should align the credential BLOB pointed to by the refOutAuthBuffer parameter to a 32-bit boundary, even if the provider is running on a 64-bit system. kernel3211: AllocConsole
Application.Run(new Form1()); 12: APIGetVersionEx
'see if the current process is running on Windows XP
'returns True if running Windows XP
'see if the current process is running on Windows Vista
'returns True if running Windows Vista 13: AttachConsole, When running an application that is GUI from a console window, you may want to echo something to that console window (such as command line options when the user specifies /? on the command line), but also don't want a console window popping up when you don't need it (such is the behavior of a windows C# 'Console Application'). In this case these work great, and are fully compatible thereafter with the .NET Console.xxx static functions.
14: AttachConsole When running an application that is GUI from a console window, you may want to echo something to that console window (such as command line options when the user specifies /? on the command line), but also don't want a console window popping up when you don't need it (such is the behavior of a windows C# 'Console Application'). In this case these work great, and are fully compatible thereafter with the .NET Console.xxx static functions.
Checks for RemoteDebugger on the 'hProcess'. The "remote" in CheckRemoteDebuggerPresent does not imply that the debugger necessarily resides on a different computer; instead, it indicates that the debugger resides in a separate and parallel process. Use the IsDebuggerPresent function to detect whether the calling process is running under the debugger. 16: ConsoleFunctions
using System.Runtime.InteropServices;
using System.Runtime.InteropServices; // Needed for the DllImport Attribute 18: CreateEvent
using System.Runtime.InteropServices;
/// This class is best suitable for processes run in the same security context, 19: CreateHardLink
using System.Runtime.InteropServices; 20: CreateMutex Here's how I use CreateMutex() to prevent more than one instance of my application from running at any given time.
// already another instance of this application running.
// So, don't allow this instance to run.
// once the app is up and running, I log the failure from
// run the app.
Application.Run( form ); This implements a Mutex using a Null DACL (with all the security problems with that). This allows the Mutex to be sharable cross-process. In my implementation I access this Mutex from both ASP.Net and a Windows service running under different ids. 21: CreateNamedPipe
using System.Runtime.InteropServices;
[return: System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.I1)]
using System.Runtime.InteropServices;
[DllImport("kernel32", SetLastError = true, CharSet = System.Runtime.InteropServices.CharSet.Auto)]
[DllImport("kernel32", SetLastError = true, CharSet = System.Runtime.InteropServices.CharSet.Auto)]
[DllImport("kernel32", SetLastError = true, CharSet = System.Runtime.InteropServices.CharSet.Auto)] 24: DeviceIoControl
using System.Runtime.InteropServices;
Imports System.Runtime.InteropServices
Dim wVendorUnique() As Short
Dim wMoreVendorUnique As Short Sample and signature code originally used System.Runtime.InteropServices.FILETIME, but this uses ints instead of uints (DWORDs) meaning that this line:
using System.Runtime.InteropServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices; 29: FormatMessage
<System.Runtime.InteropServices.DllImport("Kernel32.dll", EntryPoint:="FormatMessageW", SetLastError:=True, CharSet:=System.Runtime.InteropServices.CharSet.Unicode)>
<System.Runtime.InteropServices.DllImport("Kernel32.dll", SetLastError:=True)>
'so Runtime.InteropServices.Marshal.GetLastWin32Error() returns a valid error
Dim nLastError As Integer = Runtime.InteropServices.Marshal.GetLastWin32Error
Dim sRet As String = Runtime.InteropServices.Marshal.PtrToStringAuto(lpMsgBuf, dwChars)
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)] 33: GetDateFormat
using System.Runtime.InteropServices; 34: GetDriveType
using System.Runtime.InteropServices;
throw new System.Runtime.InteropServices.ExternalException(" GetExitCodeProcess Error " + lastError, lastError); 36: GetLastError [System.Runtime.InteropServices.Marshal.GetLastWin32Error] 37: GetLocaleInfo using System.Runtime.InteropServices; 38: GetLocaleInfoEx using System.Runtime.InteropServices; 39: GetLocalTime
Imports System.Runtime.InteropServices 40: GetLogicalDrives
using System.Runtime.InteropServices;
using System.Runtime.InteropServices; 42: GetLongPathName
using System.Runtime.InteropServices;
using System.Runtime.InteropServices; If you need to get all the section names by passing a null lpAppName or all the key names by passing a null lpKeyName, then you'll need to use a technique like is shown for [GetPrivateProfileSection] to handle the double null-terminated result. .NET's marshaler will truncate the StringBuilder at the first null it finds, so to get back the full double null-terminated result string, you have to manage your own memory buffer. An alternative to the technique above is to use a char[] in place of a StringBuilder when you need to obtain all key names or all section names. The char[] will not truncate at the first null it finds.
using System.Runtime.InteropServices;
Imports System.Runtime.InteropServices 45: GetProcAddress GetProcAddress only comes in an ANSI flavor, hence we help the runtime by telling it to always use ANSI when marshalling the string parameter. We also prevent the runtime looking for a non-existent GetProcAddressA, because the default for C# is to set ExactSpelling to false. This API becomes a lot more interesting in .NET v2.0 because the System.Runtime.InteropServices.Marshal class gains a new API called GetDelegateForFunctionPointer(). This means that you will be able to write code like this: 46: GetProcessTimes
System.Runtime.InteropServices.FILETIME ftCreation, ftExit, ftKernel, ftUser;
out System.Runtime.InteropServices.FILETIME lpCreationTime,
out System.Runtime.InteropServices.FILETIME lpExitTime,
out System.Runtime.InteropServices.FILETIME lpKernelTime,
out System.Runtime.InteropServices.FILETIME lpUserTime);
public static DateTime FiletimeToDateTime(System.Runtime.InteropServices.FILETIME fileTime)
public static TimeSpan FiletimeToTimeSpan(System.Runtime.InteropServices.FILETIME fileTime) 47: GetProductInfo
using System.Runtime.InteropServices; 48: GetShortPathName
Imports System.Runtime.InteropServices
<MarshalAs(Runtime.InteropServices.UnmanagedType.U4)> ByVal bufferSize As Integer) As Integer
<Runtime.InteropServices.DllImport("kernel32.dll", SetLastError:=True, CharSet:=Runtime.InteropServices.CharSet.Auto)> _
<Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPTStr)> _
<Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.U4)> _
using System.Runtime.InteropServices;
// I just create a new thread. This gets the language of the operating system (even if the running thread
using System.Runtime.InteropServices; // Necessary!
using System.Runtime.InteropServices; using FILETIME=System.Runtime.InteropServices.ComTypes.FILETIME; 53: GetTempFileName
throw new Exception("Win32 Error: " + System.Runtime.InteropServices.Marshal.GetLastWin32Error()); 54: GetTempPath
'''information about and functionality for the current test run. 55: GetThreadTimes Although the API returns times in 100 nanosecond units, the precision is only to that of the process scheduler, about 15 milliseconds (depending on OS version). So don't expect pinpoint accuracy on short running functions. 56: GetVersion 57: GetVersionEx
Imports System.Runtime.InteropServices
Imports System.Runtime.InteropServices
Imports System.Runtime.InteropServices
Imports System.Runtime.InteropServices This is a quick way to help protect your applications from being reverse engineered at runtime. Call this when your application starts and exit if it returns true. Call this before your application starts to protect it from runtime analysis. This is a weak form of protection, and is trivially bypassed. For a more robust mechanism, use a .NET obfuscator tool. Cut off search results after 60. Please refine your search. |