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

gdi32

.

///    <c>true</c> if the operation succeedes, <c>false</c> otherwise. To get extended error information, call <see cref="System.Runtime.InteropServices.Marshal.GetLastWin32Error"/>.

.

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

.

using System.Runtime.InteropServices;

.

<System.Runtime.InteropServices.DllImport("gdi32.dll")> _

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

    [System.Runtime.InteropServices.DllImport("gdi32")]

.

    [System.Runtime.InteropServices.DllImport("gdi32")]

.

  using System.Runtime.InteropServices;

.

  using System.Runtime.InteropServices;

.

  using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices; // For calling Windows API functions.

.

using System.Runtime.InteropServices;

.

   using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

msdelta

.

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

iphlpapi

.

using System.Runtime.InteropServices;

.

        IF_TYPE_FRAMERELAY_SERVICE = 44,  // FRNETSERV-MIB

.

        IF_TYPE_CES = 133,  // Circuit Emulation Service

.

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

.

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

.

  using System.Runtime.InteropServices;

.

    $services=Get-WmiObject -Namespace "root\cimv2" -Class "Win32_Service"

.

      $boolNoService=$true

.

      for ($j=0; $j -lt $services.Count; $j++) {

.

    if ($services[$j].ProcessId -eq $y[$i].owningPid) {

.

      Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "ServiceName" -Value $services[$j].Caption

.

      $boolNoService=$false

.

      if ($boolNoService) { Add-Member -InputObject $objOutput -MemberType NoteProperty -Name "ServiceName" -Value $null }

.

    using System.Runtime.InteropServices;

.

    using System.Runtime.InteropServices;

.

    using System.Runtime.InteropServices;

.

    using System.Runtime.InteropServices;

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.

.

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

.

   cAuthSvc As Integer, asAuthSvc() As SOLE_AUTHENTICATION_SERVICE, _

.

SOLE_AUTHENTICATION_SERVICE

.

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

.

   cAuthSvc As Integer, asAuthSvc() As SOLE_AUTHENTICATION_SERVICE, _

.

SOLE_AUTHENTICATION_SERVICE

.

Please look at http://msdn2.microsoft.com/en-us/library/aa302389.aspx#secnetch09_callingservicedcompaspnet, which shows how to call CoSetProxyBlanket in C#. As this is published on the MS Patterns and Practices web site I would assume this would be OK and is safe. This reference has code and discusses the issues about transition from .net object to COM IUnknown reference using the Marshal functions.

.

Please see http://msdn2.microsoft.com/en-us/library/aa302389.aspx#secnetch09_callingservicedcompaspnet

.

Marshal.FreeCoTaskMem http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal.freecotaskmem.aspx

.

static extern int CoUnmarshalInterface(System.Runtime.InteropServices.ComTypes.IStream pStm, [In] ref Guid riid,

.

The managed definition for the IMoniker interface is available in System.Runtime.InteropServices.ComTypes

.

As of .NET 2.0, UCOMIMoniker is obsolete and has been replaced with System.Runtime.InteropServices.ComTypes.IMoniker. This extends to all interfaces of the System.Runtime.InteropServices namespace starting with "UCOM...". Each of them are replaced in the System.Runtime.InteropServices.ComTypes namespace, with same name, except for the "UCOM" at the beginning.

.

   out System.Runtime.InteropServices.ComTypes.IMoniker ppmk);

.

For .Net 2.0, use System.Runtime.InteropServices.ComTypes.IMoniker as the final parameter; frameworks 1.0 and 1.1 use System.Runtime.InteropServices.UCOMIMoniker.

.

As of .NET 2.0, UCOMIMoniker is obsolete and has been replaced with System.Runtime.InteropServices.ComTypes.IMoniker. This extends to all interfaces of the System.Runtime.InteropServices namespace starting with "UCOM...". Each of them are replaced in the System.Runtime.InteropServices.ComTypes namespace, with same name, except for the "UCOM" at the beginning.

.

   punk, out System.Runtime.InteropServices.ComTypes.IMoniker ppmk);

.

       [System.Runtime.InteropServices.DllImport("OLE32.DLL", EntryPoint = "CreateStreamOnHGlobal")] // Create a COM stream from a pointer in unmanaged memory

.

    extern public static int CreateStreamOnHGlobal(IntPtr ptr, bool delete, out System.Runtime.InteropServices.ComTypes.IStream pOutStm);

.

    [System.Runtime.InteropServices.DllImport("OLE32.DLL", EntryPoint = "GetHGlobalFromStream")]

.

       out System.Runtime.InteropServices.ComTypes.IRunningObjectTable pprot);

.

In .Net 2.0 use System.Runtime.InteropServices.ComTypes.IRunningObjectTabl as the second parameter. Frameworks 1.0 and 1.1 use a now deprecated type.

.

     System.Runtime.InteropServices.ComTypes.IRunningObjectTable objTbl;

. .

I find it better to turn off [PreserveSig] for methods that return an HRESULT and have a trailing out parameter, providing that the HRESULT does not have more that one success code (typically S_OK only). This results in a slightly cleaner syntax where the out parameter becomes the return value and a failing HRESULT results in an exception.

.

using System.Runtime.InteropServices;

. .

I find it better to turn off [PreserveSig] for methods that return an HRESULT and have a trailing out parameter, providing that the HRESULT does not have more that one success code (typically S_OK only). This results in a slightly cleaner syntax where the out parameter becomes the return value and a failing HRESULT results in an exception.

.

static extern int OleLoadFromStream(System.Runtime.InteropServices.ComTypes.IStream pStm,

.

static extern int OleLoadFromStream(System.Runtime.InteropServices.ComTypes.IStream pStm,

.

      [System.Runtime.InteropServices.DllImport("OLE32.DLL", EntryPoint = "CreateStreamOnHGlobal")]

.

    extern public static int CreateStreamOnHGlobal(IntPtr ptr, bool delete, out System.Runtime.InteropServices.ComTypes.IStream pOutStm);

.

        System.Runtime.InteropServices.ComTypes.STATSTG fileinfo;

.

    [System.Runtime.InteropServices.DllImport("OLE32.DLL", EntryPoint = "CreateStreamOnHGlobal")]

.

    extern public static int CreateStreamOnHGlobal(IntPtr ptr, bool delete, out System.Runtime.InteropServices.ComTypes.IStream pOutStm);

.

        System.Runtime.InteropServices.ComTypes.STATSTG fileinfo;

.

Public Shared Function OleSetClipboard(ByVal pDataObj As System.Runtime.InteropServices.ComTypes.IDataObject) As Int32

. .

I find it better to turn off [PreserveSig] for methods that return an HRESULT and have a trailing out parameter, providing that the HRESULT does not have more that one success code (typically S_OK only). This results in a slightly cleaner syntax where the out parameter becomes the return value and a failing HRESULT results in an exception.

msi

.

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

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

credui

.

    <System.Runtime.InteropServices.DllImport("credui.dll", EntryPoint:="CredUIPromptForWindowsCredentials", CharSet:=CharSet.Unicode)> <CLSCompliant(False)> _

winscard

.

    SCARD_E_NO_SERVICE =        0x8010001D,

.

    SCARD_E_SERVICE_STOPPED =       0x8010001E,

.
Summary
The SCardTransmit function sends a service request to the smart card and expects to receive data back from the card.
.

        request.cbPciLength = System.Runtime.InteropServices.Marshal.SizeOf(typeof(UnsafeNativeMethods.SCARD_IO_REQUEST));

Structures

.

using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

.

Imports System.Runtime.InteropServices

.

    int dwServiceMask;

.

    Dim dwServiceMask As Integer

.
Summary
The CRYPT_KEY_PROV_INFO structure contains information about a key container within a cryptographic service provider (CSP).
.

   <System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)> _

60: DCB
.

using System.Runtime.InteropServices;

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


 
Access PInvoke.net directly from VS: