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]

aygshell

.

faultrep

.

using System.Runtime.InteropServices;

rasapi32

.

    using System.Runtime.InteropServices;

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;

cards

.

using System.Runtime.InteropServices;

.

using System.Runtime.InteropServices;

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>

.

ERROR_WINHTTP_AUTO_PROXY_SERVICE_ERROR - Returned by WinHttpGetProxyForUrl when a proxy for the specified URL cannot be located.

msdrm

.
Summary
The DRMRegisterContent function informs the Active Directory Rights Management Services (AD RMS) client that an AD RMS-protected document is being or is no longer being displayed.

gdi32

15: BitBlt
.

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

16: Chord
.

<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

Interfaces

31: +
.

var obj = System.Runtime.InteropServices.Marshal.BindToMoniker("IIS://localhost/W3SVC") as IADs;

.

Required referenece to System, System.Security, System.Runtime.InteropServices, System.Reflection Namespaces.

.

using System.Runtime.InteropServices;

.

using System.Runtime.CompilerServices;

.

using System.Runtime.InteropServices;

.

Imports System.Runtime.InteropServices

.

Also available in System.Runtime.InteropServices.ComTypes

.

Imports System.Runtime.InteropServices

.

        'to allows this explorer objects also implement IServiceProvider interface

.

        '(don't mix it with System.IServiceProvider!)

.

        Dim sp As _IServiceProvider = TryCast(BandObjectSite, _IServiceProvider)

.

        sp.QueryService(guid, riid, w)

.

        'as a Desk Band. There is no web browser service available.

.

    Imports System.Runtime.InteropServices

.

Imports System.Runtime.InteropServices

.

Public Interface _IServiceProvider

.

    Sub QueryService(ByRef guid As Guid, ByRef riid As Guid, <MarshalAs(UnmanagedType.[Interface])> ByRef Obj As [Object])

.

Imports System.Runtime.InteropServices

.

Imports System.Runtime.InteropServices

.

        'to allows this explorer objects also implement IServiceProvider interface

.

        '(don't mix it with System.IServiceProvider!)

.

        Dim sp As _IServiceProvider = TryCast(BandObjectSite, _IServiceProvider)

.

        sp.QueryService(guid, riid, w)

.

        'as a Desk Band. There is no web browser service available.

.

Imports System.Runtime.InteropServices

.

Imports System.Runtime.InteropServices

.

Public Interface _IServiceProvider

.

    Sub QueryService(ByRef guid As Guid, ByRef riid As Guid, <MarshalAs(UnmanagedType.[Interface])> ByRef Obj As [Object])

.

Imports System.Runtime.InteropServices

.

    using IDataObject_Com = System.Runtime.InteropServices.ComTypes.IDataObject;

.

    'Code converted from C# to VB by online service at Telerik (www.telerik.com)

.

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

.

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

.

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

.
Summary
Part of the Task Scheduler 1.0 Interfaces, which consists of IEnumWorkItems, ITask, ITaskScheduler, ITaskTrigger and IScheduledWorkItem. There is some helper code below for actually using the iterator as the marshalling seemed impossible without resorting to the unmanaged helper functions in System.Runtime.InteropServices.Marshal. Not all methods have been tested, so be careful!
.

    using System.Runtime.InteropServices;

.

    [System.Runtime.InteropServices.InterfaceType(1)]

.

    [System.Runtime.InteropServices.Guid("3127CA40-446E-11CE-8135-00AA004BB851")]

.

        void AddError(string pszPropName, ref System.Runtime.InteropServices.ComTypes.EXCEPINFO pExcepInfo);

.

using System.Runtime.InteropServices;

.

  public interface IServiceProvider

.

    void QueryService(ref Guid guidService, ref Guid riid,

.

      IEZoneSecurity.IServiceProvider serviceProvider = null;

.

      object topServiceProviderObj = null;

.

      IServiceProvider topServiceProvider = null;

.

    // Get the client site service provider.

.

    serviceProvider = oleClientSiteObj as IEZoneSecurity.IServiceProvider;

.

    // Get top level browser service provider.

.

    Guid Riid = typeof(IEZoneSecurity.IServiceProvider).GUID;

.

    topServiceProviderObj = null;

.

    serviceProvider.QueryService(ref IID_TopLevelBrowser, ref Riid,

.

                     out topServiceProviderObj);

.

    topServiceProvider = topServiceProviderObj as IServiceProvider;

.

    topServiceProvider.QueryService(ref IID_WebBrowserApp, ref Riid,

.

    if (topServiceProvider != null)

.

      Marshal.ReleaseComObject(topServiceProvider);

.

    if (topServiceProviderObj != null)

.

      Marshal.ReleaseComObject(topServiceProviderObj);

.

    if (serviceProvider!= null)

.

      Marshal.ReleaseComObject(serviceProvider);

.

    using System.Runtime.InteropServices;

.

    Imports System.Runtime.InteropServices

.

    void Stat(out System.Runtime.InteropServices.STATSTG pstatstg, int grfStatFlag);

.

    void Stat(out System.Runtime.InteropServices.STATSTG pstatstg, int grfStatFlag);

.

<Runtime.InteropServices.ComImport()> _

.

<Runtime.InteropServices.InterfaceType(Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)> _

.

<Runtime.InteropServices.Guid("00000002-0000-0000-C000-000000000046")> _

.

    <Runtime.InteropServices.PreserveSig()> Function Alloc(ByVal cb As UInt32) As IntPtr

.

    <Runtime.InteropServices.PreserveSig()> Function Realloc(ByVal pv As IntPtr, ByVal cb As UInt32) As IntPtr

.

    <Runtime.InteropServices.PreserveSig()> Sub Free(ByVal pv As IntPtr)

.

    <Runtime.InteropServices.PreserveSig()> Function GetSize(ByVal pv As IntPtr) As UInt32

.

    <Runtime.InteropServices.PreserveSig()> Function DidAlloc(ByVal pv As IntPtr) As Int16

.

    <Runtime.InteropServices.PreserveSig()> Sub HeapMinimize()

.

Also it works much faster than Managed Reflection Services.

.

of course we can do it with standard Managed Reflection services:

.

Also it works much faster than Managed Reflection Services.

.

using System.Runtime.InteropServices;

.

Requires reference to System.Runtime.InteropServices.

.

using System.Runtime.InteropServices;

.

      Sub GetWindow(<System.Runtime.InteropServices.Out()> ByRef phwnd As IntPtr)

.
Note
.Net2 now includes this definition in System.Runtime.InteropServices.Comtypes namespace, but doesn't include return values for the methods
.
Summary
The IServiceProvider interface is a generic access mechanism to locate a globally unique identifier (GUID) identified service
.

    interface IServiceProvider {

.

    void QueryService(ref Guid guidService, ref Guid riid,

.

Interface IServiceProvider

.

    Sub QueryService(ByRef guidService As Guid, ByRef riid As Guid,

.

The IServiceProvider defined here is different with "System.IServiceProvider". To remove name collisition, rename "IServiceProvider" to other name such as "UCOMIServiceProvider". Otherwise, you should use fully qualified namespace to the interface since you will normally use "using System" directive.

.

The QueryService above does not work for me: ppvObject is always marshalled as IUnknown, as documented in the .Net API docs. I use the following:

.

    interface IServiceProvider {

.

    void QueryService(ref Guid guidService, ref Guid riid,

.
Documentation
[IServiceProvider] on MSDN
.

[System.Runtime.InteropServices.ComTypes.IStream] in the .NET Framework 2.0.

.

    using System.Runtime.InteropServices;

.

The ITfLangBarMgr interface is implemented by the TSF manager and used by text services to manage event sink notification and configure floating language bar display settings. The interface ID is IID_ITfLangBarMgr.

.

    public interface IServiceProvider

.

    int QueryService(

.

        [In] ref Guid guidService,

.

        //QI for serviceprovider

.

        IServiceProvider psp = axWebBrowser as IServiceProvider;

.

        //QueryService for ITravelLogStg

.

        int hr = psp.QueryService(ref SID_STravelLogCursor, ref IID_ITravelLogStg, out oret);

.

Required referenece to System, System.Security, System.Runtime.InteropServices, System.Reflection Namespaces

.

Required referenece to System, System.Security, System.Runtime.InteropServices, System.Reflection Namespaces

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


 
Access PInvoke.net directly from VS: