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]

odbccp32

.

using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

.

     ODBC_ERROR_OUTPUT_STRING_TRUNCATED = 22,

winmm

.

   using System.Runtime.InteropServices;

.

<Runtime.InteropServices.StructLayout(Runtime.InteropServices.LayoutKind.Sequential, CharSet:=Runtime.InteropServices.CharSet.Auto)> _

.

     <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=32)> _

.

[System.Runtime.InteropServices.StructLayout(Runtime.InteropServices.LayoutKind.Sequential, CharSet = System.Runtime.InteropServices.CharSet.Auto)]

.

     [MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst = 32)]

.

         waveOutGetDevCaps(i, wc, System.Runtime.InteropServices.Marshal.SizeOf(wc))  

.

using System.Runtime.InteropServices;

userenv

.

To 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.

fbwflib

.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

.

Bring to the table win-win survival strategies to ensure proactive domination. At the end of the day, going forward, a new normal that has evolved from generation X is on the runway heading towards a streamlined cloud solution. User generated content in real-time will have multiple touchpoints for offshoring.

mpr

.

[DllImport("mpr.dll", CharSet = System.Runtime.InteropServices.CharSet.Ansi)]

.

  using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

    [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPTStr)] public string lpLocalName;

.

    [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPTStr)] public string lpRemoteName;

.

    [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPTStr)] public string lpComment;

.

    [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPTStr)] public string lpProvider;

.

Imports System.Runtime.InteropServices

.

    <MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPTStr)> Public lpLocalName As String

.

    <MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPTStr)> Public lpRemoteName As String

.

    <MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPTStr)> Public lpComment As String

.

    <MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPTStr)> Public lpProvider As String

oleaut32

.
Summary
Retrieves a a running object that has been registered with OLE.
.

Declare Unicode Function LoadTypeLib Lib "oleaut32.dll" (ByVal szFile As String, ByRef TPpTypeLib As System.Runtime.InteropServices.ComTypes.ITypeLib) As Integer

.

In VB.Net you can substitute [System.Runtime.InteropServices.ComTypes.ITypeLib2] or [System.Runtime.InteropServices.UCOMITypeLib] for [System.Runtime.InteropServices.ComTypes.ITypeLib], defined in mscorlib.dll.

.

Note that in v2.0 (Whidbey) of the .NET Framework, the System.Runtime.InteropServices.UCOMITypeLib interface has been deprecated in favor of System.Runtime.InteropServices.ComTypes.ITypeLib.

.

Declare Unicode Function RegisterTypeLib Lib "oleaut32.dll" (ByVal ptlib As System.Runtime.InteropServices.ComTypes.ITypeLib, ByVal szFullPath As String, ByVal szHelpDir As String) As Integer

.

For the ITypeLib parameter in C#, you can use [System.Runtime.InteropServices.UCOMITypeLib], already defined in mscorlib.dll. Note that in v2.0 (Whidbey) of the .NET Framework, this interface has been deprecated in favor of System.Runtime.InteropServices.ComTypes.ITypeLib.

.

In VB.Net you can substitute [System.Runtime.InteropServices.ComTypes.ITypeLib2] or [System.Runtime.InteropServices.UCOMITypeLib] for [System.Runtime.InteropServices.ComTypes.ITypeLib], defined in mscorlib.dll.

.

System.Runtime.InteropServices.Marshal.FreeBSTR

.

http://msdn2.microsoft.com/en-us/library/system.runtime.interopservices.marshal.freebstr.aspx

.

Declare Unicode Function UnRegisterTypeLib Lib "oleaut32.dll" (ByRef LibID As System.Guid, ByVal nVerMajor As Short, ByVal nVerMinor As Short, ByVal lCID As Integer, ByVal tSysKind As System.Runtime.InteropServices.ComTypes.SYSKIND) As Integer

.

In VB.Net you can substitute [System.Runtime.InteropServices.SYSKIND] for [System.Runtime.InteropServices.ComTypes.SYSKIND], defined in mscorlib.dll.

.

Note that in v2.0 (Whidbey) of the .NET Framework, the System.Runtime.InteropServices.SYSKIND interface has been deprecated in favor of System.Runtime.InteropServices.ComTypes.SYSKIND.

winhttp

18: lorem1
.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

.

/// <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>

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;

.

[System.Runtime.InteropServices.ComImport]

25: 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)> _

shell32

.

using System.Runtime.InteropServices;

.

    using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

.

    using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

.

Imports System.Runtime.InteropServices

.

using System.Runtime.InteropServices;

36: Run
.

static extern TODO Run(TODO);

.

Declare Function Run Lib "shell32.dll" (TODO) As TODO

.
Documentation
[Run] on MSDN
.

Imports System.Runtime.InteropServices

.

    <DllImport("User32.dll", ExactSpelling:=True, CharSet:=System.Runtime.InteropServices.CharSet.Auto)> _

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

.

info.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(info)

.

     Dim ex As New System.ComponentModel.Win32Exception(System.Runtime.InteropServices.Marshal.GetLastWin32Error())

.

    info.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(info);

.

   Dim ex As New System.ComponentModel.Win32Exception(System.Runtime.InteropServices.Marshal.GetLastWin32Error())

.

"runas"    - In Windows 7 and Vista, opens the UAC dialog and in others, open the Run as... Dialog

.

using System.Runtime.InteropServices;

.

    using System.Runtime.InteropServices;

.

    string s = System.Runtime.InteropServices.Marshal.PtrToStringUni( pPath );

.

    System.Runtime.InteropServices.Marshal.FreeCoTaskMem( pPath );

.

<System.Runtime.InteropServices.DllImportAttribute("shell32.dll", EntryPoint:="SHGetNameFromIDList")> _

.

   <System.Runtime.InteropServices.InAttribute()> _

.

Imports System.Runtime.InteropServices

.

    <System.Runtime.InteropServices.DllImportAttribute("shell32.dll", EntryPoint:="ILFree")> _

.

    Private Shared Sub ILFree(<System.Runtime.InteropServices.InAttribute()> ByVal pidl As System.IntPtr)

.

    <System.Runtime.InteropServices.DllImportAttribute("shell32.dll", EntryPoint:="SHGetNameFromIDList")> _

.

   <System.Runtime.InteropServices.InAttribute()> _

.

    <System.Runtime.InteropServices.DllImportAttribute("shell32.dll", EntryPoint:="SHParseDisplayName")> _

.

<System.Runtime.InteropServices.InAttribute(), _

.

System.Runtime.InteropServices.MarshalAsAttribute( _

.

System.Runtime.InteropServices.UnmanagedType.LPWStr)> _

.

ByVal pszName As String, <System.Runtime.InteropServices.InAttribute()> _

.

  Imports System.Runtime.InteropServices

.

Requires Windows Vista or later; on earlier platforms, use rundll32 to run OpenAs

.

        using (Process.Start("rundll32", "shell32.dll,OpenAs_RunDLL " + sFilename)) { }

.

     QUNS_RUNNING_D3D_FULL_SCREEN = 3,

.

        /// A full-screen application is running or Presentation Settings are applied.

.

        /// A full-screen (exclusive mode) Direct3D application is running.

.

        RunningDirect3dFullScreen = 3,

.

Opens the typical 'Run' dialog used by the start menu, without explorer.exe.

.

static extern bool SHRunFileDialog(IntPtr hwndOwner, IntPtr hIcon, string lpszPath, string lpszDialogTitle, string lpszDialogTextBody, RunFileDialogFlags uflags);

.

    public enum RunFileDialogFlags : uint

.

Use the Documented IShellDispatch->Run(), but this can be a pain in C# if you are pressed for time.

.

        dialogtext = "Enter the name of the program file you wish to run.  You may also enter in URLs and items found in your path and applications list.";

.

        SHRunFileDialog(

.

        RunFileDialogFlags.CalcDirectory

msdelta

.

                      ref System.Runtime.InteropServices.ComTypes.FILETIME lpTargetFileTime,

rapi

.
Summary
This function creates, opens, or truncates a file, pipe, communications resource, disk device, or console. It returns a handle that can be used to access the object. It can also open and return a handle to a directory.
.
Summary
This function is used to run a new program. It creates a new process and its primary thread. The new process executes the specified executable file.
.

   ProcessStartInfo psi = new ProcessStartInfo(@"\PathTo\programToRun.exe");

.
Summary
This function obtains extended information about the version of the operating system that is currently running
.

HRESULT translates to void (NOT int or anything else some idiot has written down) for c# function prototypes. Any HRESULT other than "OK" will cause the runtime to throw an exception.

.

HRESULT translates to void (NOT int or anything else some idiot has written down) for c# function prototypes. Any HRESULT other than "OK" will cause the runtime to throw an exception.

.

FILETIME is now obsolet. You can use System.Runtime.InteropServices.ComTypes.FILETIME type instead.

user32

.

Imports System.Runtime.InteropServices

.

To get an animation to run in reverse, to say, animate the window closing use some thing like:

.

The AW_HIDE will make any of the animations run in reverse.

.

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

.

where you had to run the SetDataObject function twice for it to work. On the first

.

CopyCursor reference will fail at runtime, according to documentation it is a macro:

.

If you come across this error "System.Runtime.InteropServices.MarshalDirectiveException: Cannot marshal 'parameter #6': Invalid managed/unmanaged type combination (this value type must be paired with Struct).", you may want to use

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


 
Access PInvoke.net directly from VS: