Desktop Functions: Smart Device Functions:
|
Search Results for "Service" in [All]gdi321: 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"/>. 2: Chord
<Runtime.InteropServices.DllImport("gdi32.dll")> _ 3: CreateDC using System.Runtime.InteropServices;
<System.Runtime.InteropServices.DllImport("gdi32.dll")> _ using System.Runtime.InteropServices; using System.Runtime.InteropServices; 7: ExtFloodFill
using System.Runtime.InteropServices;
[System.Runtime.InteropServices.DllImport("gdi32")]
[System.Runtime.InteropServices.DllImport("gdi32")] 10: GetPixel
using System.Runtime.InteropServices; 11: GetRegionData
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices; 14: SetMapMode using System.Runtime.InteropServices; // For calling Windows API functions. 15: StretchBlt
using System.Runtime.InteropServices; 16: TextOut
using System.Runtime.InteropServices; Imports System.Runtime.InteropServices msdelta17: CreateDeltaW
ref System.Runtime.InteropServices.ComTypes.FILETIME lpTargetFileTime, iphlpapi18: AddIPAddress 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 } 21: GetIpNetTable
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices; ole3225: CoFileTimeNow 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. 27: CoInitialize
[System.Runtime.InteropServices.DllImport("ole32.dll")]
cAuthSvc As Integer, asAuthSvc() As SOLE_AUTHENTICATION_SERVICE, _
[System.Runtime.InteropServices.DllImport("ole32.dll")]
cAuthSvc As Integer, asAuthSvc() As 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 31: CoTaskMemFree 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; 40: IIDFromString 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. 41: OleCreate using System.Runtime.InteropServices; 42: OleGetClipboard 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. 43: OleLoad
static extern int OleLoadFromStream(System.Runtime.InteropServices.ComTypes.IStream pStm,
static extern int OleLoadFromStream(System.Runtime.InteropServices.ComTypes.IStream pStm, 45: OleSave
[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; 46: OleSaveToStream
[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; 47: OleSetClipboard
Public Shared Function OleSetClipboard(ByVal pDataObj As System.Runtime.InteropServices.ComTypes.IDataObject) As Int32 48: ProgIDFromCLSID 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. msiYou 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, 54: SCardTransmit
request.cbPciLength = System.Runtime.InteropServices.Marshal.SizeOf(typeof(UnsafeNativeMethods.SCARD_IO_REQUEST)); Structures55: BITMAPFILEHEADER
using System.Runtime.InteropServices;
Imports System.Runtime.InteropServices 56: CEOSVERSIONINFO
Imports System.Runtime.InteropServices 57: COMMPROP
int dwServiceMask;
Dim dwServiceMask As Integer 59: CWPSTRUCT
<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. |