Desktop Functions: Smart Device Functions:
|
Search Results for "Service" in [All]coredll1: CloseHandle
using System.Runtime.InteropServices; 2: CreateEvent
using System.Runtime.InteropServices;
Imports System.Runtime.InteropServices 3: EventModify
using System.Runtime.InteropServices; So the device ID is a very useful thing for software that wants to target just your device, e.g. copy protection, or to provide immutable identity to web service calls. Equally so it’s a resource that should be protected to mitigate the risk of identity theft.
using System.Runtime.InteropServices; 6: keybd_event
using System.Runtime.InteropServices; 7: MessageBox <System.Runtime.InteropServices.DllImport("kernel32.dll", _ 8: PlaySound
using System.Runtime.InteropServices;
Imports System.Runtime.InteropServices The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 10: RegDeleteKey The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 11: RegDeleteValue The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 12: RegFlushKey The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 13: RegOpenKeyEx The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 14: RegQueryInfoKey The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. OutAttribute is used with [StringBuilder] parameters because StringBuilder is a reference type. Using the out keyword will result in passing the reference by-reference, but in this case the reference must be passed by-value. 15: ResetEvent
using System.Runtime.InteropServices; 16: SendMessage
[System.Runtime.InteropServices.DllImport("coredll.dll")]
[System.Runtime.InteropServices.DllImport("coredll.dll")] 17: SetEvent
using System.Runtime.InteropServices; 18: SetSystemTime
Imports System.Runtime.InteropServices
using System.Runtime.InteropServices; 19: SetWindowLong Imports System.Runtime.InteropServices 20: SignalStarted Make sure you add the System.Runtime.InteropServices namespace as a reference to your project to use the DllImport function. Then use/import them into your project at the top of your desired C#/VB code file. 21: SipSetCurrentIM
using System.Runtime.InteropServices; 22: waveOutOpen
using System.Runtime.InteropServices; dhcpsapi
Imports System.Runtime.InteropServices 25: DhcpEnumServers
http://www.rupj.net/portfolio/dhcp-web-services.html
Imports System.Runtime.InteropServices
using System.Runtime.InteropServices; 28: DhcpEnumSubnets
30: DhcpGetVersion
aygshell33: ExitWindowsEx ole3234: 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. 36: 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 40: 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; 49: 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. 50: OleCreate using System.Runtime.InteropServices; 51: 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. 52: OleLoad
static extern int OleLoadFromStream(System.Runtime.InteropServices.ComTypes.IStream pStm,
static extern int OleLoadFromStream(System.Runtime.InteropServices.ComTypes.IStream pStm, 54: 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; 55: 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; 56: OleSetClipboard
Public Shared Function OleSetClipboard(ByVal pDataObj As System.Runtime.InteropServices.ComTypes.IDataObject) As Int32 57: 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. cfgmgr32
NoCmServices = 0x00000032, // NT ONLY winspool59: DRIVER_INFO_6
System.Runtime.InteropServices.ComTypes.FILETIME ftDriverDate; 60: EnumJobs
Imports System.Runtime.InteropServices Cut off search results after 60. Please refine your search. |