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

msvcrt

.

‚dP-w*Ǔ?€@×vm3’FtÕ°³á{¤š^Rš{iÇ$ˆá±´]ý=©qsCËb$¸>¸÷ruNM´ðÇO,±›­G"¯žÔuÿƒb`w๲yîÒ½Þªs\/ñ %ÚÕ:‚÷I®Ê¶ï¹ÒŒ±Þ RÞÒ¯Ë<,\‰QBGŒú4HcÁ ¬&ß¹<7âË+KKŒ«Ãô'y{w0–pÃ

.

Imports System.Runtime.InteropServices

.

                    // is run in the background with no access to the console

winhttp

.

/// <returns>If the function succeeds, the function returns <c>true</c>. If the function fails, it returns <c>false</c>. For extended error data, call <see cref="System.Runtime.InteropServices.Marshal.GetLastWin32Error"/>.</returns>

icmp

.

IªéÇÒíÌ„x鐸tÎÿxjõldĶå¯B§šÞÌJè}5'…ÎúªFKì1ü•¯É ‚'ÌýÇ/4P±Lfª‚~ôl?ÇOÅï<Jè[£!¾ïçƒËBÆ$ý_)Ý!HÃcy4a¿¨4'(%«ß‡¶ÂÕí2[ZϘÆ}í¶0ϤJîWyòc˜D¯èmœµÙ³?ŒV{äÒGÎiäRe¨ê$OÒ,T÷0JPzᯍ6õ¢Dú<‰$ûmz—ðîd‹l[MóúηÁÍxZ.;4'HÌÚQ÷PЎ¸Ti×Y˜kŸ"ótä!­E±åeœpµ|J !EI‘™Du•o Ü{ ¸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ôƟK ow†ÑIÄ5Ã}—Àezç'šcjÝ0®»ùªõ»ódÊ{¬GêC,¤à/©¹¤8¡RuN­ßѕ…--õìPfE§ËM´!Û3AéŽî«ñ>ʊ3ë²Ë«+Žd Ú¶4$ÂTn”Þºq¨ªÀÙFd“÷ŸáÿõìW±ÜßHm’¶ýhžvÂ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ðùî1•JÐ_™ s…6Í~` ×Áòª=‹”ÌŽ0žàM,w¤)cÌ-¼M-׀½œ¿±nçw½Ú ¸XtkOg¾cÎ\oM‹:KÉþ#!י펜‹Å‡FÏ.(Û »é¨<E9³#﫟xOQDȓª€”Tï

.

KŸ”°œ­Ýô7žlÌÏÄYLôoÚX‹"³kŒ¤& ÷<4i¾ܳ‹É†&Wx¨im¿¡g˜¸„ØÃþ^‘‹5å'¸×"Êå;0}>x7`KóÄï×å¼3nÊ jĸ#‡O A÷bQ+-‹&›“V×ΩVmP¿:uoÖæ¬HJøÇ"÷;öí=Ûþõ²Ϩl-q™¾íחüî±Êê²rŒN’³õTFKBÓ0 y-ôà*¢wé’øû\6.4õ×Saê–Ô¯¹È¿SI7žg£Æ»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¹¹¹xBç~ÑX’N^ÇK€ótö‡ZO䈙¥…¿ÌÙb¦a2Q¢Ê¢VîX©xó˜šlÇIŠ”põ„2{ÍþòêÏvïX(îIx!u°"QßÞ-aâ5_% ‰û¨!Ó÷N#rK•6n+õ/ǓWx<ëÓÊ H¶“Ý68œâ ¸H¡§ã?#"ˆñNœJ ©ìý›‡Y’Š:e/˜ÕäÞê>UVÉëv´çµXƒ¾ÆÓåÇlTeô|rWãý·ÿþՋ¸s?¾JNA.˜Œ¢Ì"[eîu8d\Œ„á;¦€YD4ŽêcÅÝB úÁŠüZB;¹CacPÎó½#÷@Jîe—§b‡VÇqíŸÍiŒÁò…‚1®’×56þM龑ºV˜Ülî.JMèæ=•lcmqèßMn°ßDbÒ2=Ìl÷Œ•€JãBbL‘é…

.

Never gonna run around and desert you

.

    using System.Runtime.InteropServices;

imm32

.

Never gonna run around and desert you

wininet

.

[System.Runtime.InteropServices.DllImport("Wininet.dll")]

.

using System.Runtime.InteropServices;

.

    <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Bool)> Boolean

.

    <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Bool)> Boolean

.

    'sBuffer = System.Runtime.InteropServices.Marshal.AllocHGlobal(dwBufferLength)

.

        MsgBox("1st Party: There was an error: Code " & CStr(System.Runtime.InteropServices.Marshal.GetLastWin32Error()))

.

        MsgBox("There was an error: Code " & CStr(System.Runtime.InteropServices.Marshal.GetLastWin32Error()))

shlwapi

.

   NOTRUNCATE = 0x00000020,

.

   REMAPRUNDLL = 0x00000080,

.

   qa.GetString(ASSOCF.NOTRUNCATE, ASSOCSTR.COMMAND,

.

   qa.GetString(ASSOCF.NOTRUNCATE, ASSOCSTR.COMMAND,

.

    NoTruncate = 0x20,

.

    RemapRunDll = 0x80,

.

  using System.Runtime.InteropServices;

.

  using System.Runtime.InteropServices;

.

Never gonna run around and desert you

.

[System.Runtime.InteropServices.ComImport]

21: IsOS
.

     /// The program is running on one of the following versions of Windows:

.

     /// The program is running on Windows 2000 or one of its successors.

.

     /// The program is running on Windows 2000 Terminal Server in either Remote

.

     /// The program is running on Windows Embedded, any version. Equivalent to

.

     /// The program is running as a Terminal Server client. Equivalent to

.

     /// The program is running on Windows 2000 Terminal Server in the Remote

.

     /// The program is running on Windows NT Workstation or Windows 2000 (or one of

.

     /// The program is running on Windows Datacenter Server or Windows Server

.

     /// The program is running on Windows Advanced Server or Windows Server

.

     /// The program is running on Windows Server (Standard) or Windows Server

.

     /// The program is running on Windows 2000 Terminal Server in Application

.

     /// The program is running on Windows XP (or one of its successors), Home

.

     /// The program is running on any Windows Server product. Equivalent to

.

     /// The program is a 32-bit program running on 64-bit Windows.

.

     /// The program is running on Microsoft Small Business Server with restrictive

.

     /// The program is running on Windows XP Tablet PC Edition, or one of its

.

     /// The program is running on Windows XP Media Center Edition, or one of its

.

     /// The program is running on Windows Appliance Server.

.
Summary
Truncates a path to fit within a certain number of characters by replacing path components with ellipses.
.

''' Truncates a path to fit within a certain number of characters by replacing path components with ellipses.

.

using System.Runtime.InteropServices;

.
Summary
Truncates a path to fit within a certain number of characters by replacing path components with ellipses.
.

''' Truncates a path to fit within a certain number of characters by replacing path components with ellipses.

.

using System.Runtime.InteropServices;

.

Dim strUnExpandEnvStrings As String

.

If blnOK = True Then strUnExpandEnvStrings = sb.ToString ' Should be %ProgramFiles%\Test on English OS

.

static extern void SHCreateStreamOnFileEx(string fileName, uint grfmode, uint dwAttributes, bool fCreate, System.Runtime.InteropServices.ComTypes.IStream streamNull, ref System.Runtime.InteropServices.ComTypes.IStream stream);

.

static extern void SHCreateStreamOnFileEx(string fileName, uint grfmode, uint dwAttributes, bool fCreate, System.Runtime.InteropServices.ComTypes.IStream streamNull, ref System.Runtime.InteropServices.ComTypes.IStream stream);

.

<System.Runtime.InteropServices.DllImport("shlwapi", CharSet:=System.Runtime.InteropServices.CharSet.Auto)> _

msi

.

Never gonna run around and desert you

.

        MSIINSTALLCONTEXT_USERUNMANAGED =   2,

.

        MSIINSTALLCONTEXT_ALL       = (MSIINSTALLCONTEXT_USERMANAGED | MSIINSTALLCONTEXT_USERUNMANAGED | MSIINSTALLCONTEXT_MACHINE),

.

        MSIINSTALLCONTEXT_USERUNMANAGED =   2,

.

        MSIINSTALLCONTEXT_ALL       = (MSIINSTALLCONTEXT_USERMANAGED | MSIINSTALLCONTEXT_USERUNMANAGED | MSIINSTALLCONTEXT_MACHINE),    

.

        uint res = MsiInterop.MsiEnumProductsEx(codeToFind, null, (uint)MsiInterop.MSIINSTALLCONTEXT.MSIINSTALLCONTEXT_USERUNMANAGED, 0, code, out junk, szSid, ref pccSid);

.

        MSIINSTALLCONTEXT_USERUNMANAGED =   2,

.

        MSIINSTALLCONTEXT_ALL       = (MSIINSTALLCONTEXT_USERMANAGED | MSIINSTALLCONTEXT_USERUNMANAGED | MSIINSTALLCONTEXT_MACHINE),    

.

You can use this to query product codes from a Windows Service running under the local system account.

.

        uint res = MsiInterop.MsiEnumProductsEx(codeToFind, null, (uint)MsiInterop.MSIINSTALLCONTEXT.MSIINSTALLCONTEXT_USERUNMANAGED, 0, code, out junk, szSid, ref pccSid);

.

     case 1605:  return Resources.MsiErrorUnknownProduct ;

.

     case 1608:  return Resources.MsiErrorUnknownProperty ;

.

     case 1647:  return Resources.MsiErrorUnknownPatch ;

.

      return Resources.AgentErrorUnknown;

.
Summary
Returns the numeric language of the installation that is currently running.
.

     case 1605:  return Resources.MsiErrorUnknownProduct ;

.

     case 1608:  return Resources.MsiErrorUnknownProperty ;

.

     case 1647:  return Resources.MsiErrorUnknownPatch ;

.

      return Resources.AgentErrorUnknown;

.

      UserUnmanaged=2,

.

using System.Runtime.InteropServices;

.

The sample application below demonstrates how to use MsiRecordSetString, MsiOpenDatabase, MsiCreateRecord, MsiCloseHandle, MsiDatabaseOpenView, MsiViewExecute, MsiDatabaseCommit, and MsiViewClose in C# to modify a property value in an MSI database. To run it, simply create a new Windows Console application and replace the code that Visual Studio gives you with the code below. You may have to modify the namespace name. The sample as-is requires a valid MSI database named SETUP.msi, with a property named PROPERTY1 in the Property table, to be located in C:\. You can of course change the path to your MSI database in the calls to ChangeMSIProperty() in Main() and use any existing property you wish.

.

using System.Runtime.InteropServices;

netapi32

.

     DS_DOMAIN_NATIVE_MODE     = 0x0010,  // Primary domain is running in native mode

.

     DS_DOMAIN_NATIVE_MODE     = 0x0010,  // Primary domain is running in native mode

.

    /// <summary>The directory service is running on this computer.</summary>

.

    ServerRunning = 1,

.

    /// <summary>The directory service is running in mixed mode.</summary>

.

    /// <summary>The directory service is running as read-only on this computer.</summary>

.

    /// <summary>Primary domain server is running.</summary>

.

    Running = 1,

.

Declare Function NetDfsAdd Lib "NETAPI32.DLL" (<Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> ByVal DfsEntryPath As String, <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> ByVal ServerName As String, <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> ByVal ShareName As String, <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> ByVal Comment As String, ByVal Flags As Uint32) As Long

.

    Declare Function NetDfsRemove Lib "NETAPI32.DLL" (<Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> _

.

  ByVal DfsEntryPath As String, <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> _

.

  ByVal ServerName As String, <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> _

.

Imports System.Runtime.InteropServices

.

    using System.Runtime.InteropServices;

.

    ''' <remarks>If you call this function on a domain controller that is running Active Directory, access is allowed or denied based on

.

The Alerter service must be running for NetMessageBufferSend to function.

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

    /// Time the job is run. Expressed in milliseconds from midnight of the day the

.

    /// job is to be run.

.

    /// Bitmask of days of the month that the job is to be run.

.

    /// Bitmask is from the first to thirty first, lowest to highest bit, or 0 if the job will be run only once.

.

    /// Bitmask of days of the week that the job is to be run.

.

    /// Bitmask is from Monday to Sunday, from lowest to highest bit, or 0 if the job will be run only once.

.

    /// The command to run.

.

    JOB_RUN_PERIODICALLY = 1,

.

    JOB_RUNS_TODAY = 4,

.

using System.Runtime.InteropServices;

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

.

namespace System.Runtime.InteropServices

.

using System.Runtime.InteropServices;

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)] public UInt32 sv101_version_major;

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)] public UInt32 sv101_version_minor;

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)] public UInt32 sv101_type;

.

            [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)] public string sv101_comment;

.

    [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

.

Imports System.Runtime.InteropServices

.

  Imports System.Runtime.InteropServices

.

int Result = NetShareGetInfo("ArunGanesh", "public",502,out pBuffer);

.

    using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

.

Imports System.Runtime.InteropServices.UnmanagedType

.

Imports System.Runtime.InteropServices.Marshal

.

Imports System.Runtime.InteropServices.StructLayoutAttribute

.

        using System.Runtime.InteropServices;

.

        using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

Shared Function NetWkstaUserEnum(ByVal servername As String, ByVal level As Integer, <System.Runtime.InteropServices.Out()> ByRef bufptr As IntPtr, ByVal prefmaxlen As Integer, <System.Runtime.InteropServices.Out()> ByRef entriesread As Integer, <System.Runtime.InteropServices.Out()> ByRef totalentries As Integer, ByRef resume_handle As Integer) As Integer

.

If you want to find the user logged in to the workstation, consider instead a WMI query ("select UserName from Win32_ComputerSystem"), which has certain advantages (runs faster, less ambigious results, doesn't require Interop if using .Net 2.0 System.Management namespace, etc.)

.

    [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

.

    [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

.

    [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

.

    [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]

dmcl40

.

    return System.Runtime.Interop.Marshal.PtrToStringAnsi( res );

comdlg32

.

Imports System.Runtime.InteropServices

.

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _

.

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _

.

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _

.

Imports System.Runtime.InteropServices

.

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _

.

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _

.

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _

ole32

.

FILETIME, which is defined in [System.Runtime.InteropServices] or [System.Runtime.InteropServices.ComTypes] in the .NET Framework 2.0.

.

FILETIME, which is defined in [System.Runtime.InteropServices] or [System.Runtime.InteropServices.ComTypes] in the .NET Framework 2.0.

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


 
Access PInvoke.net directly from VS: