Desktop Functions: Smart Device Functions:
|
Search Results for "set" in [All]msports
[DllImport("msports.dll", SetLastError=true)]
[DllImport("msports.dll", SetLastError=true)] ForceClaim and Forced are documented as reserved for internal use. Set the former to false and ignore the latter. 3: ComDBClose
[DllImport("msports.dll", SetLastError=true)] 4: ComDBOpen
[DllImport("msports.dll", SetLastError=true)]
[DllImport("msports.dll", SetLastError=true)] dhcpsapiçzËÝ/¿\Ì øDª_4¤7o:ü¸º¥Ôz¹ãÓòjó#/ª£ôÛ%E]æÕOY`D·Ú½ýwãpÈ(æÄn¾û:ÈÓ:wHYVg°ÖD©Bå¤ÈC8ÌY£SETì,ÞǽýcN!ïËîä°ëX<g`rûª§màIµ?rD¡²?[{ìξ=âȺTøX¥Ù(û7E9µ6íCÆlÉ!2é¯çÐCREÝRaEýö$Í9*
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Unicode)]
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[DllImport("netapi32.dll", SetLastError = true)]
[DllImport("netapi32.dll", SetLastError = true)]
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[DllImport("netapi32.dll", SetLastError = true)]
[DllImport("netapi32.dll", SetLastError = true)]
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Auto)] ' Why would you use int16 for a loop counter and for a pointer offset ?
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Auto)]
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Unicode)] 12: DhcpEnumSubnets
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Unicode)] ResumeHandle - [in,out] Pointer to a DHCP_RESUME_HANDLE value that identifies the enumeration operation. Initially, this value should be zero, with a successful call returning the handle value used for subsequent enumeration requests. For example, if PreferredMaximum is set to 100, and 200 subnet addresses are stored on the server, the resume handle can be used after the first 100 subnets are retrieved to obtain the next 100 on a subsequent call, and so forth.
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
<DllImport("dhcpsapi.dll", SetLastError:=True, CharSet:=CharSet.Unicode)> _ 14: DhcpGetVersion
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Unicode)]
[DllImport("dhcpsapi.dll", SetLastError = true, CharSet = CharSet.Unicode)]
[DllImport("dhcpsapi.dll", SetLastError=true)] 17: DHCP_CLIENT_INFO
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] wer
[DllImport("wer.dll", SetLastError = true, CharSet = CharSet.Unicode)]
<DllImport("wer.dll", SetLastError:=True, CharSet:=CharSet.Unicode)> Private Shared Function WerAddExcludedApplication(ByVal pwzExeName As String, ByVal bAllUsers As Boolean) As Integer 19: WerReportAddDump
[DllImport("wer.dll", CharSet = CharSet.Unicode, SetLastError = true)] 20: WerReportCreate
[DllImport("wer.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[DllImport("wer.dll", CharSet = CharSet.Unicode, SetLastError = true)]
internal static extern int WerReportSetParameter(IntPtr hReportHandle, int dwparamID, string pwzName, string pwzValue);
Declare Function WerReportSetParameter Lib "wer.dll" (TODO) As TODO 22: WerReportSubmit
[DllImport("wer.dll", CharSet = CharSet.Unicode, SetLastError = true)] advapi3223: AccessCheck
[DllImport("advapi32.dll", SetLastError=true)]
[DllImport("advapi32.dll", SetLastError = true)]
<DllImport("advapi32.dll", SetLastError:=true)> _ 26: AddAce
[DllImport("advapi32.dll", SetLastError = true)]
<DllImport("advapi32.dll", SetLastError:=true)> _
<DllImport("advapi32.dll", SetLastError:=true)> _
[DllImport("advapi32.dll", SetLastError=true)]
[DllImport("advapi32.dll", SetLastError=true)]
<DllImport("advapi32.dll", SetLastError:=True)> _
<DllImport("advapi32.dll", SetLastError:=True)> _
If SetLastError is set to true, get the error with this.
//This snippet is tested on WinXP and Vista, only needed in Vista when using SetTimeZoneInformation
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
[DllImport("advapi32.dll", SetLastError = true)]
internal const string SE_TIME_ZONE_NAMETEXT = "SeTimeZonePrivilege"; //http://msdn.microsoft.com/en-us/library/bb530716(VS.85).aspx
private bool SetPriv()
case SecurityEntity.SE_INC_WORKING_SET_NAME:
return "SeIncreaseWorkingSetPrivilege";
return "SeTakeOwnershipPrivilege";
return "SeTcbPrivilege";
return "SeTimeZonePrivilege";
return "SeTrustedCredManAccessPrivilege";
SE_INC_WORKING_SET_NAME,
[DllImport("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[DllImport("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("Advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
<DllImport("advapi32.dll", SetLastError:=True)> _
<DllImport("advapi32.dll", SetLastError:=True)> _
<DllImport("kernel32.dll", SetLastError:=True)> _
<DllImport("advapi32.dll", SetLastError:=True)> _
'Set up a LUID_AND_ATTRIBUTES structure containing the Shutdown privilege, marked as enabled.
'Set up a TOKEN_PRIVILEGES structure containing only the shutdown privilege.
'Set up a TOKEN_PRIVILEGES structure for the returned (modified) privileges.
[DllImport("advapi32.dll", SetLastError=true)]
[DllImport("advapi32.dll", SetLastError=true)] 30: BackupEventLog
[DllImport("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[DllImport("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[DllImport("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[DllImport("advapi32.dll", SetLastError = true)]
[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Auto)]
Private Const SET_ACCESS = 2&
BuildExplicitAccessWithName(ea, strUserName, iPerm, SET_ACCESS, CONTAINER_INHERIT_ACE Or OBJECT_INHERIT_ACE)
[DllImport("advapi32.dll", SetLastError = true)]
[DllImport("Certadm.dll", CharSet=CharSet.Auto, SetLastError=true)]
[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Auto)]
failureActions.dwResetPeriod = (int)TimeSpan.FromDays(1).TotalSeconds;
throw new Exception(String.Format("Error setting service config, error was: 0x{0:X}", Marshal.GetLastWin32Error()));
[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Auto)]
failureActions.dwResetPeriod = (int)TimeSpan.FromDays(1).TotalSeconds;
throw new Exception(String.Format("Error setting service config, error was: 0x{0:X}", Marshal.GetLastWin32Error()));
[DllImport("advapi32.dll", SetLastError=true)] 37: ClearEventLog
[DllImport("advapi32.dll", SetLastError=true, EntryPoint="ClearEventLog")] 38: CloseEventLog
[DllImport("advapi32.dll", SetLastError = true)]
[DllImport("advapi32.dll", SetLastError=true)]
<DllImport("advapi32.dll", SetLastError:=True)> _ 40: ControlService
[DllImport("advapi32.dll", SetLastError=true)]
<DllImport("advapi32.dll", SetLastError:=True)> _
private ManualResetEvent heartbeatStopped;
private ManualResetEvent heartbeatActive;
private ManualResetEvent terminationPending;
Interop.SetServiceStatus (statusHandle, ref serviceStatus);
terminationPending = new ManualResetEvent (false);
heartbeatStopped = new ManualResetEvent (true);
heartbeatActive = new ManualResetEvent (false);
heartbeatThread.SetApartmentState (ApartmentState.MTA);
heartbeatActive.Reset ();
heartbeatStopped.Set ();
heartbeatStopped.Reset ();
heartbeatActive.Set ();
Interop.SetServiceStatus (statusHandle, ref serviceStatus);
heartbeatStopped.Set ();
heartbeatActive.Reset ();
heartbeatStopped.Reset ();
terminationPending.Set ();
[DllImport ("advapi32.dll", SetLastError = true)]
[DllImport ("advapi32.dll", EntryPoint = "OpenSCManagerW", ExactSpelling = true, CharSet = CharSet.Unicode, SetLastError = true)]
[DllImport ("advapi32.dll", SetLastError = true, CharSet = CharSet.Auto)]
[DllImport ("advapi32.dll", SetLastError = true)]
[DllImport ("advapi32.dll", EntryPoint = "QueryServiceStatus", CharSet = CharSet.Auto)]
internal static extern bool SetServiceStatus (IntPtr hServiceStatus, ref SERVICE_STATUS lpServiceStatus);
[DllImport("advapi32.dll", SetLastError=true)]
[DllImport("advapi32", CharSet=CharSet.Auto, SetLastError=true)]
[DllImport("advapi32", CharSet = CharSet.Auto, SetLastError = true)]
'The PtrToStringXXX call here needs to match the CharSet used on your
'ConvertSidToStringSid DllImport. The default is CharSet.Ansi.
[DllImport("advapi32.dll", SetLastError=true)]
[DllImport("advapi32.dll", SetLastError=true)]
ManagementObjectCollection UserSearch = new ManagementObjectSearcher("Select * From Win32_LogicalFileSecuritySetting Where Path='" + FromPath + "'").Get();
[DllImport("advapi32.dll", SetLastError=true)]
[DllImport("advapi32.dll", EntryPoint = "GetLengthSid", CharSet = CharSet.Auto)] 45: CopySid
[DllImport("advapi32.dll", SetLastError=true)]
[DllImport("advapi32.dll", SetLastError=true)]
[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Auto)]
<DllImport("Advapi32.dll", ExactSpelling:=False, SetLastError:=True, CharSet:=CharSet.Unicode)> _
[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Unicode)]
<DllImport("advapi32.dll", SetLastError:=True, CharSet:=CharSet.Unicode)> _
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _
<DllImport("advapi32.dll", SetLastError:=True, CharSet:=CharSet.Unicode)> _
<DllImport("kernel32.dll", SetLastError:=True)> _
<DllImport("Kernel32.dll", SetLastError:=True)> _
<DllImport("Kernel32.dll", SetLastError:=True)> _
<DllImport("Kernel32.dll", SetLastError:=True)> _
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Unicode)]
[DllImport("kernel32.dll", SetLastError=true)]
[DllImport("Kernel32.dll", SetLastError=true)]
[DllImport("Kernel32.dll", SetLastError=true)]
[DllImport("Kernel32.dll", SetLastError=true)] 48: CreateService
[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Auto)]
<DllImport("advapi32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
/// SetServiceObjectSecurity function to access the SACL. The proper
/// Required to call the SetServiceObjectSecurity function to modify
/// Required to call the SetServiceObjectSecurity function to modify
''' SetServiceObjectSecurity function to access the SACL. The proper
''' Required to call the SetServiceObjectSecurity function to modify
''' Required to call the SetServiceObjectSecurity function to modify
[DllImport("advapi32.dll", SetLastError=true)] 50: CredDelete
[DllImport("advapi32.dll", EntryPoint = "CredDeleteW", CharSet = CharSet.Unicode)]
[DllImport("advapi32.dll", EntryPoint = "CredDeleteW", CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] 51: CredFree
[DllImport("advapi32.dll", SetLastError=true)]
[DllImport("advapi32.dll", CharSet = CharSet.Unicode, SetLastError=true)] 53: CredRead
[DllImport("advapi32.dll", EntryPoint="CredReadW", CharSet = CharSet.Unicode, SetLastError=true)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] 54: CredRead
[DllImport("Advapi32.dll", EntryPoint = "CredReadW", CharSet = CharSet.Unicode, SetLastError = true)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 55: CredWrite
[DllImport("Advapi32.dll", SetLastError=true, EntryPoint="CredWriteW", CharSet=CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
[DllImport("Advapi32.dll", SetLastError=true, EntryPoint="CredWriteW", CharSet=CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
[DllImport("advapi32.dll", CharSet=CharSet.Auto, SetLastError=true)] static long CRYPT_NEWKEYSET = 0x8; static long CRYPT_DELETEKEYSET = 0x10; static long CRYPT_MACHINE_KEYSET = 0x20;
public class Crypt32 { [DllImport("advapi32.dll", SetLastError=true)] bool res = Crypt32.CryptAcquireContext(out hProv, "user", null, PROV_RSA_FULL, CRYPT_NEWKEYSET); 57: CryptCreateHash
[DllImport("advapi32.dll", CharSet=CharSet.Auto, SetLastError=true)] 58: CryptDecrypt
[DllImport("advapi32.dll", SetLastError = true)] 59: CryptDeriveKey
[DllImport("advapi32.dll", SetLastError=true)] 60: CryptDestroyHash
[DllImport("advapi32.dll", SetLastError=true)] Cut off search results after 60. Please refine your search. |