Desktop Functions: Smart Device Functions:
|
Search Results for "system" in [All]msdelta1: CreateDeltaW
ref System.Runtime.InteropServices.ComTypes.FILETIME lpTargetFileTime, netapi32
System.Net.Sockets.AddressFamily.InterNetwork, 3: DsGetDcName
System.Windows.Forms.MessageBox.Show ( msg); System.DirectoryServices.ActiveDirectory.Domain.GetCurrentDomain() 4: DsGetDcNext
using HANDLE = System.IntPtr;
using DWORD = System.UInt32;
iReturn = DsGetDcOpen("domain1.mydomains.com", 1, "MYADSITE", (System.IntPtr)null, null, 0, out pDcContext); 5: DsGetDcOpen
using DWORD = System.UInt32;
using ULONG = System.UInt64;
iReturn = DsGetDcOpen("domain1.mydomains.com", 0, null, (System.IntPtr)null, null, 0, out pDcContext);
iReturn = DsGetDcOpen("domain1.mydomains.com", 1, "MYADSITE", (System.IntPtr)null, null, 0, out pDcContext);
internal static extern System.Int32 DsGetDcSiteCoverage(
out System.Int64 EntryCount,
Policies = new string[9, 2] { { "System", "" }, { "Logon", "" }, { "Object Access", "" }, { "Privilige Use", "" }, { "Detailed Tracking", "" }, { "Policy Change", "" }, { "Account Management", "" }, { "Directory Service Access", "" }, { "Account Logon", "" } };
LSA_UNICODE_STRING aSystemName = new LSA_UNICODE_STRING();
aSystemName.SetTo(this.ResourceName);
uint aOpenPolicyResult = LsaOpenPolicy(ref aSystemName, ref aObjectAttributes, aAccess, out aPolicyHandle); 8: NetDfsAdd 9: NetDfsEnum
/// The NetDfsEnum function enumerates all the Distributed File System (Dfs) links in the named Dfs root. The function returns information about the Dfs links based on information specified by the Level parameter.
/// <param name="Buffer">[out] Pointer to the address of a buffer that receives the requested information structures. The format of this data depends on the value of the Level parameter. This buffer is allocated by the system and must be freed using the NetApiBufferFree function. </param>
/// <returns>If the function succeeds, the return value is NERR_Success. If no more entries are available to be enumerated, the return value is ERROR_NO_MORE_ITEMS. If the function fails, the return value is a system error code</returns> 11: NetDfsRemove
/// The NetDfsRemove function removes a target from a Distributed File System (Dfs) link. If the specified target is the last associated with the Dfs link, then the NetDfsRemove function also removes the link.
/// <returns>If the function succeeds, the return value is NERR_Success. If the function fails, the return value is a system error code</returns>
''' The NetDfsRemove function removes a target from a Distributed File System (Dfs) link. If the specified target is the last associated with the Dfs link, then the NetDfsRemove function also removes the link.
''' <returns>If the function succeeds, the return value is NERR_Success. If the function fails, the return value is a system error code</returns> 12: NetDfsSetInfo
/// The NetDfsSetInfo function sets or modifies the information associated with a Distributed File System (Dfs) link in the named Dfs root, or with the Dfs root itself. The function can set information relevant to a specific root, root target, link, or link target.
System.DirectoryServices.ActiveDirectory.Domain.GetComputerDomain();
Imports System.Runtime.InteropServices 14: NetJoinDomain If the function fails, the return value can be one of the following error codes or one of the system error codes. Here's some sample code that can do this using System.DirectoryServices
string computerName = SystemInformation.ComputerName;
using System;
using System.Text;
using System.Runtime.InteropServices;
string SystemName, 16: NetLocalGroupDel
string SystemName,
string SystemName,
''' Windows NT: No special group membership is required to execute the NetMessageBufferSend function on a LAN Manager or a Windows NT system.
using System;
using System.Runtime.InteropServices;
System.IntPtr UsrBuf = System.IntPtr.Zero;
System.IntPtr item = System.IntPtr.Zero;
if (item != System.IntPtr.Zero)
// Free buffer (allocated by system)
if (UsrBuf != System.IntPtr.Zero)
public System.IntPtr usri1_name;
public System.IntPtr usri1_comment;
public System.IntPtr usri1_full_name;
public System.IntPtr grp_name;
public System.IntPtr grp_comment;
public System.IntPtr usri2_name;
public System.IntPtr usri2_comment;
int Level, int ResumeHandle, int EntriesRequested, int prefMaxLength, out int entriesRead, out System.IntPtr Buffer);
[DllImport("netapi32.dll", CharSet=CharSet.Auto, SetLastError=true)] private static extern int NetApiBufferFree (System.IntPtr pBuffer);
System.IntPtr x = System.IntPtr.Zero;
if (x != System.IntPtr.Zero)
if (x != System.IntPtr.Zero)
if (x != System.IntPtr.Zero)
if (x != System.IntPtr.Zero)
if (x != System.IntPtr.Zero)
if (x != System.IntPtr.Zero) 21: NetRemoteTOD using System; using System.IO; using System.Windows.Forms; using System.Runtime.InteropServices;
if ( pintError > 0 ) { throw new System.ComponentModel.Win32Exception ( pintError ); } using System; using System.Runtime.InteropServices;
using System.DirectoryServices.ActiveDirectory; 23: netserverenum
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Security;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
throw new System.ComponentModel.Win32Exception(ret);
throw new System.ComponentModel.Win32Exception(ret);
namespace System.Runtime.InteropServices
using System;
using System.Runtime.InteropServices;
using System.Collections ;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)] public UInt32 sv101_version_major;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)] public UInt32 sv101_version_minor;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.U4)] public UInt32 sv101_type;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)] public string sv101_comment;
//Cast the pointer to a ulong so this addition will work on 32-bit or 64-bit systems. The System.Data.Sql.SqlDataSourceEnumerator class is an alternative to this API, for enumerating SQL Servers on a network. 24: NetServerGetInfo
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
level = int.Parse(System.Text.RegularExpressions.Regex.Replace(typeof(T).Name, @"[^\d]", ""));
throw new System.ComponentModel.Win32Exception(ret); 25: NetSessionEnum
''' This buffer is allocated by the system and must be freed using the NetApiBufferFree function. Note that you must free the buffer even if the function fails with ERROR_MORE_DATA. 26: NetShareEnum
' Clean up buffer allocated by system
If System.String.Compare(shi2.shi2_path, "c:\deletemeplease" True) = 0 Then
private void button1_Click(object sender, System.EventArgs e)
//Remember, 64-bit systems have 64-bit pointers. Using ToInt32 will cause an ArithmeticOverview exception.
Imports System
Imports System.Runtime.InteropServices
Imports System.text
' Clean up buffer allocated by system 27: NetShareGetInfo
Imports System
Imports System.Runtime.InteropServices
using System;
using System.Collections;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
Imports System.Management 28: NetStatisticsGet
System.Console.WriteLine(aRebootTime); 29: NetUseAdd
using BOOL = System.Boolean;
using DWORD = System.UInt32;
using LPWSTR = System.String;
using NET_API_STATUS = System.UInt32; using System.Runtime.InteropServices; using BOOL = System.Boolean; using DWORD = System.UInt32; using LPWSTR = System.String; using NET_API_STATUS = System.UInt32; 30: NetUseEnum
// previous line has been causing "arithmetic operation resulted in an overflow" exception on x86 systems for me. Fixed with the .Add method. 31: NetUserAdd
Return New System.ComponentModel.Win32Exception(RetVal).Message 32: NetUserEnum
// Passing -1 as prefmaxlen makes the system allocate the buffer. using System.DirectoryServices; //System.DirectoryServices 33: NetUserGetInfo
//throw new System.ApplicationException("Could not get user's Full Name."); Imports System.Runtime.InteropServices Imports System.Runtime.InteropServices.UnmanagedType Imports System.Runtime.InteropServices.Marshal Imports System.Runtime.InteropServices.StructLayoutAttribute I added the Sample code for x64 systems because when I ran it, I kept getting an arithmetic overflow error. I tried forcing PowerShell to compile it for x86, but then I would get an invalid image error. Converting all the "int" to "Int64" seems to do the trick.
using System;
using System.Runtime.InteropServices;
using System.Collections;
using System.Net.Sockets; Sample PowerShell Code for x64 systems
using System;
using System.Runtime.InteropServices;
using System.Collections; 35: NetValidateName
using System;
using System.Runtime.InteropServices;
using System;
using System.Runtime.InteropServices;
using System;
using System.Runtime.InteropServices; 36: NetWkstaUserEnum Shared Function NetWkstaUserEnum(ByVal servername As String, ByVal level As Integer, <System.Runtime.InteropServices.Out()> ByRef bufptr As IntPtr, ByVal prefmaxlen As Integer, <System.Runtime.InteropServices.Out()> ByRef entriesread As Integer, <System.Runtime.InteropServices.Out()> ByRef totalentries As Integer, ByRef resume_handle As Integer) As Integer WMI can do this sort of thing (the System.Management namespace in .Net 2.0) If you want to find the user logged in to the workstation, consider instead a WMI query ("select UserName from Win32_ComputerSystem"), which has certain advantages (runs faster, less ambigious results, doesn't require Interop if using .Net 2.0 System.Management namespace, etc.)
Console.WriteLine("A system error has occurred : " + nStatus);
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
System.Windows.Forms.MessageBox.Show(domain); ipaqutilusing DWORD = System.UInt32; icmp39: IcmpSendEcho
using System;
using System.Net;
using System.Runtime.InteropServices;
tcc -Wall ping.c /WINDOWS/system32/iphlpapi.dll /windows/system32/ws2_32.dll gdiplusFrom the Bitmap class in the System.Drawing namespace (C# version): In the Bitmap class in the System.Drawing namespace (C# version): 42: GdiplusStartup None as System.Drawing will call this API automatically when first API in gdiplus.dll is called by managed code. System.Drawing.Graphics.MeasureString( ... ) oleaccThe ManagedWindowsApi project (http://mwinapi.sourceforge.net) provides a SystemAccessibleObject class to access accessible objects, including their children. The ManagedWindowsApi project (http://mwinapi.sourceforge.net) provides a SystemAccessibleObject class to access accessible objects, that can be instantiated from an accessible event. The ManagedWindowsApi project (http://mwinapi.sourceforge.net) provides a SystemAccessibleObject class to access accessible objects, that can be instantiated from a point.
Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load The ManagedWindowsApi project (http://mwinapi.sourceforge.net) provides a SystemAccessibleObject class to access accessible objects, that can be instantiated from a window. 48: GetRoleText The ManagedWindowsApi project (http://mwinapi.sourceforge.net) provides a SystemAccessibleObject class to access accessible objects and handle accessible events. 49: GetStateText The ManagedWindowsApi project (http://mwinapi.sourceforge.net) provides a SystemAccessibleObject class to access accessible objects and handle accessible events.
static extern TODO SystemAccessibleObject(TODO);
Declare Function SystemAccessibleObject Lib "oleacc.dll" (TODO) As TODO The ManagedWindowsApi project (http://mwinapi.sourceforge.net) provides a SystemAccessibleObject class to access accessible objects and handle accessible events. Constants
53: DI_
/// Draws the icon or cursor using the system default image rather than the user-specified image.
/// Draws the icon or cursor using the width and height specified by the system metric values for cursors or icons, 54: GUID_DEVCLASS
public static readonly Guid GUID_DEVCLASS_SYSTEM = new Guid("{0x4d36e97d, 0xe325, 0x11ce, {0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1, 0x03, 0x18}}");
public static readonly Guid GUID_DEVCLASS_FSFILTER_SYSTEMRECOVERY = new Guid("{0x2db15374, 0x706e, 0x4131, {0xa0, 0xc7, 0xd7, 0xc7, 0x8e, 0xb0, 0x28, 0x9a}}");
public static readonly Guid GUID_DEVCLASS_FSFILTER_SYSTEM = new Guid("{0x5d1b9aaa, 0x01e2, 0x46af, {0x84, 0x9f, 0x27, 0x2b, 0x3f, 0x32, 0x4c, 0x46}}"); 56: IDC_ 57: LR_
/// Uses the width or height specified by the system metric values for cursors or icons,
/// When you use this flag, the system will destroy the resource when it is no longer needed.
/// When loading a system icon or cursor, you must use LR_SHARED or the function will fail to load the resource.
''' Uses the width or height specified by the system metric values for cursors or icons,
''' When you use this flag, the system will destroy the resource when it is no longer needed.
''' When loading a system icon or cursor, you must use LR_SHARED or the function will fail to load the resource. 58: MAPI
/// If the messaging system does not support this flag, MAPIReadMail always marks the
/// The operation was not supported by the underlying messaging system. 59: NERR_
/// <summary> 2321 - The share must be removed from the Distributed File System before it can be deleted. </summary>
/// <summary> 2372 - The system cannot delete current connections to network resources. </summary>
/// <summary> 2373 - The system was unable to parse the command line in this file. </summary>
/// <summary> 2484 - The UPS service failed to perform a system shut down. </summary>
public const int NoRplBootSystem = 2505; 60: PROPERTYKEY
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
public static PropertyKey PKEY_PropGroup_FileSystem = new PropertyKey( 0xE3A7D2C1, 0x80FC, 0x4B40, 0x8F, 0x34, 0x30, 0xEA, 0x11, 0x1B, 0xDC, 0x2E, 100);
public static PropertyKey PKEY_Volume_FileSystem = new PropertyKey( 0x9B174B35, 0x40FF, 0x11D2, 0xA2, 0x7E, 0x00, 0xC0, 0x4F, 0xC3, 0x08, 0x71, 4);
public static PropertyKey WPD_OBJECT_ISSYSTEM = new PropertyKey(0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, 10);
public static PropertyKey WPD_STORAGE_FILE_SYSTEM_TYPE = new PropertyKey(0x01A3057A, 0x74D6, 0x4E80, 0xBE, 0xA7, 0xDC, 0x4C, 0x21, 0x2C, 0xE5, 0x0A, 3);
/// audio formats likely in system.audio
public const string SFGAOSTR_FILESYS = "filesys"; // SFGAO_FILESYSTEM Cut off search results after 60. Please refine your search. |