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]

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

aygshell

.

wtsapi32

.

        Throw New Exception(ex.Message & vbCrLf & System.Runtime.InteropServices.Marshal.GetLastWin32Error)

.

//Handle to the server that this code is running on.

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

$datasize = [system.runtime.interopservices.marshal]::SizeOf([System.Type][mystruct.WTS_SESSION_INFO])

.

     $element =  [system.runtime.interopservices.marshal]::PtrToStructure($ppSessionInfo + ($datasize * $i),[System.type][mystruct.WTS_SESSION_INFO])

.

Imports System.Runtime.InteropServices

.

            Throw New ApplicationException("No data retruned")

.

        Throw New Exception(ex.Message & vbCrLf & System.Runtime.InteropServices.Marshal.GetLastWin32Error)

.

For the server handle (first parameter), please use WTS_CURRENT_SERVER_HANDLE if the code is running on the same machine whose handle you intend to pass. Otherwise, use WTSOpenServer as shown in the sample code.

.

        Throw New Exception(ex.Message & vbCrLf & System.Runtime.InteropServices.Marshal.GetLastWin32Error)

.

You do not need to open a handle for operations performed on the terminal server on which your application is running. Use the constant WTS_CURRENT_SERVER_HANDLE instead.

.

/// or specify <see cref="WTS_CURRENT_SERVER_HANDLE"/> to indicate the terminal server on which your application is running.</param>

.

/// <param name="sessionId">A Terminal Services session identifier. To indicate the session in which the calling application is running

.

    using System.Runtime.InteropServices;

.

    /// or specify <see cref="WTS_CURRENT_SERVER_HANDLE"/> to indicate the terminal server on which your application is running.</param>

.

    /// <param name="sessionId">A Terminal Services session identifier. To indicate the session in which the calling application is running

.

            /// <remarks>It is not necessary that Terminal Services be running for this function to succeed.</remarks>

.

            /// Gets a <see cref="bool"/> indicating if the current ehmsas.exe is being run locally or in a Remote session.

.

            internal static bool GetIsRunningLocally()

.
Summary
Retrieve the primary access token for the user associated with the specified session ID. The caller must be running in the context of the LocalSystem account and have the SE_TCB_NAME privilege. Only highly trusted service should use this function. The application must not leak tokens, and close the token when it has finished using it.
.

        <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst:=20)> _

.
Summary
The WTS_PROCESS_INFO structure contains information about a process running on a terminal server.

odbc32

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

    Private Shared Function SQLAllocStmt(ByVal connectionHandle As IntPtr, <Runtime.InteropServices.Out()> _

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

/// source name in *ServerName is truncated to BufferLength1 minus the length of a null-termination character. </param>

.

/// the driver description in *Description is truncated to BufferLength2 minus the length of a null-termination character.</param>

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

    <Runtime.InteropServices.Out()> ByRef pbcConnStrOut As Short, ByVal fDriverCompletion As Short) As Short

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

.

<Runtime.InteropServices.DllImport("odbc32.dll")> _

.

<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _

opengl32

22: OpenGL
.

try here -->/oficial OpenGL XML API Registry/ https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/gl.xml

hhctrl

23: 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.

winspool

.

        System.Runtime.InteropServices.ComTypes.FILETIME ftDriverDate;

.

    Imports System.Runtime.InteropServices

.

    using System.Runtime.InteropServices;

.

    static extern bool EnumPrinterDrivers(String pName, String pEnvironment, uint level, IntPtr pDriverInfo, uint cdBuf, ref uint pcbNeeded, ref uint pcRetruned);

.

You will need to import System.Runtime.InteropServices

.

public static extern int EnumPrintProcessorDatatypesA(string pName, string pPrintProcessorName, int Level, ref byte pDatatypes, int cdBuf, ref int pcbNeeded, ref int pcRetruned)

.

Declare Function EnumPrintProcessorDatatypes Lib "winspool.drv" Alias "EnumPrintProcessorDatatypesA" (ByVal pName As String, ByVal pPrintProcessorName As String, ByVal Level As Integer, ByRef pDatatypes As Byte, ByVal cdBuf As Integer, ByRef pcbNeeded As Integer, ByRef pcRetruned As Integer) As Integer

.

You will need to import System.Runtime.InteropServices.

.

Optionally call SendMessageTimeout() to notify running programs of the change:

.

    // Notify running programs?

.

    if (result == true && notifyRunningPrograms == true)

fbwflib

32: 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.

.

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.

rpcrt4

.

pin_ptr<unsigned char> UuidSringPtr = static_cast<unsigned char *>(System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi("C3ECE8CB-E9F8-47f9-AC61-8EA8572403F2").ToPointer());

.
System

pstorec

35: 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.

setupapi

.

            SP_COPY_NOPRUNE         = 0x0100000   // never prune this file

.

        public System.Runtime.InteropServices.ComTypes.FILETIME DriverDate;

.

Note that the maximum length of any single string specified in an INF Strings section is 512 characters, including the terminating NULL. If the string length is greater than 512 it will be truncated and no error will be returned. The maximum length of any concatenated string created from one or more tokens is 4096 characters.

misc

.

The rapi.dll section needs to be corrected. Rapi is not for running on the .NET Compact Framework, but rather for desktop applications. It does not appear possible to edit this part of the page.

.

There is also IE (6.0.2800.1106.xpsp2) bug: clicking "Edit This Page" brings up error message "A runtime error has occurred... Line: 15 Error: 'ButtonBar' is undefined". Harmless but annoying.

40: FAQ
.

using System.Runtime.InteropServices;

.

For pointer-sized entities such as handles, they must be defined such that they will be 32 bits on a 32-bit machine and 64 bits on a 64-bit machine. IntPtr (or UIntPtr) accomplishes this. The use of int will appear to be fine if you only run the code on a 32-bit machine, but will likely cause your application/component to crash as soon as it gets on a 64-bit machine.

query

.

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.

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;

46: 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

msvcrt

59: memcpy
.

Imports System.Runtime.InteropServices

60: _spawn
.

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

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


 
Access PInvoke.net directly from VS: