Updated projects and dependencies to allow for .NET Standard builds for all non-UI projects.

pull/10/head
David Hall 2017-11-27 16:50:18 -07:00
parent f1e014b14f
commit b208f82df4
43 changed files with 76 additions and 1257 deletions

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes shared methods, structures and constants for use throughout the Vanara assemblies. Think of it as windows.h with some useful extensions. This assembly has no dependencies on any DLL.</Description>
<Description>This library includes shared methods, structures and constants for use throughout the Vanara assemblies. Think of it as windows.h with some useful extensions.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>Vanara.Core</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard20</TargetFrameworks>
<AssemblyName>Vanara.Core</AssemblyName>
<PackageId>Vanara.Core</PackageId>
<RootNamespace>Vanara</RootNamespace>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from AclUI.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from ComCtl32.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>

View File

@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from CredUI.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.CredUI</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<PackageId>Vanara.PInvoke.CredUI</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>David Hall</Authors>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from DwmApi.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from Gdi32.dll</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description> Methods, structures and constants imported from Kernel32.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard20</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.Kernel32</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>

View File

@ -133,7 +133,6 @@ namespace Vanara.PInvoke
/// </item>
/// </list>
/// </remarks>
[HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
public static Task<TOut?> DeviceIoControlAsync<TIn, TOut>(SafeFileHandle hDevice, uint ioControlCode, TIn? inVal, TOut? outVal) where TIn : struct where TOut : struct
{
var buf = Pack(inVal, outVal);

View File

@ -391,7 +391,7 @@ namespace Vanara.PInvoke
return new SafeLocalHandle(ptr, 0).ToString(-1);
}
/// <summary>
/*/// <summary>
/// Formats a message string. The function requires a message definition as input. The message definition can come from a message table resource in an
/// already-loaded module. Or the caller can ask the function to search the system's message table resource(s) for the message definition. The function
/// finds the message definition in a message table resource based on a message identifier and a language identifier. The function returns the formatted
@ -435,7 +435,7 @@ namespace Vanara.PInvoke
//if (ret == 0) Win32Error.ThrowLastError();
return new SafeLocalHandle(ptr, 0).ToString(-1);
}
}*/
/// <summary>
/// Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count. When the reference count reaches zero, the

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from NTDSApi.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard20</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.NTDSApi</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from NetApi32.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard20</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.NetApi32</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants for NetListMgr COM object.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard20</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.NetListMgr</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>

View File

@ -891,12 +891,14 @@ namespace Vanara.PInvoke
}
break;
#if !(NETSTANDARD2_0)
case VARTYPE.VT_DISPATCH:
{
var p = value as IntPtr? ?? Marshal.GetIDispatchForObject(value);
SetStruct<IntPtr>(p, VarType);
}
break;
#endif
case VARTYPE.VT_STREAM:
case VARTYPE.VT_STREAMED_OBJECT:

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from Ole32.dll, OleAut32 and PropSys.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard20</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.Ole</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>

View File

@ -12,21 +12,13 @@ namespace Vanara.PInvoke
public static class KnownSIDRelativeID
{
public const int SECURITY_CREATOR_GROUP_RID = 0x00000001;
public const int SECURITY_CREATOR_GROUP_SERVER_RID = 0x00000003;
public const int SECURITY_CREATOR_OWNER_RID = 0x00000000;
public const int SECURITY_CREATOR_OWNER_RIGHTS_RID = 0x00000004;
public const int SECURITY_CREATOR_OWNER_SERVER_RID = 0x00000002;
public const int SECURITY_LOCAL_LOGON_RID = 0x00000001;
public const int SECURITY_LOCAL_RID = 0x00000000;
public const int SECURITY_NULL_RID = 0x00000000;
public const int SECURITY_WORLD_RID = 0x00000000;
}

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from AdvApi32.dll, Authz.dll and Secur32.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard2.0</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.Security</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>
@ -43,6 +43,11 @@
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Security.AccessControl" Version="4.4.0" />
<PackageReference Include="Microsoft.Win32.Registry" Version="4.4.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Core\Vanara.Core.csproj" />
<ProjectReference Include="..\Shared\Vanara.PInvoke.Shared.csproj" />

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Shared methods, structures and constants for use throughout the Vanara.PInvoke assemblies</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard20</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.Shared</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from Shell32.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from ShlwApi.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard2.0</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.ShlwApi</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>

View File

@ -1551,7 +1551,7 @@ namespace Vanara.PInvoke
/// The scheduled times that the task will run. A NULL LPSYSTEMTIME object should be passed into this parameter. On return, this array contains
/// pCount run times. You must free this array by a calling the CoTaskMemFree function.
/// </returns>
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), TypeLibFunc(0x41), DispId(0x60020011)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x60020011)]
SafeCoTaskMemHandle GetRunTimes([In] ref SYSTEMTIME pstStart, [In] ref SYSTEMTIME pstEnd, [In, Out] ref uint pCount);
}
@ -2324,7 +2324,7 @@ namespace Vanara.PInvoke
}
/// <summary>Provides access to the Task Scheduler service for managing registered tasks.</summary>
[ComImport, TypeLibType(0x10c0), DefaultMember("TargetServer"), Guid("2FABA4C7-4DA9-4013-9697-20CC3FD40F85"),
[ComImport, DefaultMember("TargetServer"), Guid("2FABA4C7-4DA9-4013-9697-20CC3FD40F85"),
System.Security.SuppressUnmanagedCodeSecurity, CoClass(typeof(TaskSchedulerClass))]
[PInvokeData("taskschd.h", MSDNShortId = "aa381832")]
public interface ITaskService
@ -3406,8 +3406,7 @@ namespace Vanara.PInvoke
}
/// <summary>Provides access to the Task Scheduler service for managing registered tasks.</summary>
[ComImport, DefaultMember("TargetServer"), Guid("0F87369F-A4E5-4CFC-BD3E-73E6154572DD"), TypeLibType(2),
ClassInterface((short)0), System.Security.SuppressUnmanagedCodeSecurity]
[ComImport, DefaultMember("TargetServer"), Guid("0F87369F-A4E5-4CFC-BD3E-73E6154572DD"), ClassInterface((short)0), System.Security.SuppressUnmanagedCodeSecurity]
[PInvokeData("taskschd.h", MSDNShortId = "aa381832")]
public class TaskSchedulerClass
{

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported for Task Scheduler 1.0 and 2.0 COM objects.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard2.0</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.TaskSchd</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from User32.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from UxTheme.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from VirtDisk.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard2.0</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.VirtDisk</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This library includes PInvoke methods, structures and constants.</Description>
<Description>Methods, structures and constants imported from WinINet.dll.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard2.0</TargetFrameworks>
<AssemblyName>Vanara.PInvoke.WinINet</AssemblyName>
<PackageId>$(AssemblyName)</PackageId>
<RootNamespace>Vanara.PInvoke</RootNamespace>

View File

@ -5,7 +5,6 @@ using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.ConstrainedExecution;
using System.Security;
using System.Security.Permissions;
using Vanara.InteropServices;
using static Vanara.PInvoke.AdvApi32;
@ -20,7 +19,6 @@ namespace Vanara.Security.AccessControl
/// <summary>Initializes a new instance of the <see cref="PrivilegedCodeBlock"/> class.</summary>
/// <param name="systemPrivileges">The privileges.</param>
[PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail), SecurityCritical]
public PrivilegedCodeBlock(params SystemPrivilege[] systemPrivileges) : this(Process.GetCurrentProcess(), systemPrivileges)
{
@ -29,7 +27,6 @@ namespace Vanara.Security.AccessControl
/// <summary>Initializes a new instance of the <see cref="PrivilegedCodeBlock"/> class.</summary>
/// <param name="process">Process on which to enable the <see cref="SystemPrivilege"/>.</param>
/// <param name="systemPrivileges">The privileges.</param>
[PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail), SecurityCritical]
public PrivilegedCodeBlock(Process process, params SystemPrivilege[] systemPrivileges)
{
@ -51,8 +48,7 @@ namespace Vanara.Security.AccessControl
/// <summary>Disposes of an instance of the PrivilegedCodeBlock class.</summary>
/// <exception cref="System.ComponentModel.Win32Exception">Thrown when an underlying Win32 function call does not succeed.</exception>
/// <permission cref="SecurityAction.Demand">Requires the call stack to have FullTrust.</permission>
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
[SecurityCritical]
public void Dispose()
{
Revert();

View File

@ -1,4 +1,5 @@
using System;
#if !(NETSTANDARD2_0)
using System;
using System.Linq;
using System.DirectoryServices.ActiveDirectory;
using static Vanara.PInvoke.NTDSApi;
@ -25,3 +26,4 @@ namespace Vanara.Extensions
}
}
}
#endif

View File

@ -1,3 +1,4 @@
#if !(NETSTANDARD2_0)
using System;
using System.ComponentModel;
using System.Security.Principal;
@ -95,4 +96,5 @@ namespace Vanara.Security.Principal
/// <summary>Gets the name of the current user.</summary>
string IIdentity.Name => identity?.Name;
}
}
}
#endif

View File

@ -1,18 +0,0 @@
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Vanara")]
[assembly: AssemblyTrademark("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("ecc6a35d-b906-4384-ab4c-9b63fb41724c")]

View File

@ -1,600 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Vanara.Security.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Vanara.Windows.Forms.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Allow.
/// </summary>
internal static string AccessControlTypeAllow {
get {
return ResourceManager.GetString("AccessControlTypeAllow", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Deny.
/// </summary>
internal static string AccessControlTypeDeny {
get {
return ResourceManager.GetString("AccessControlTypeDeny", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap ArrowDisabled {
get {
object obj = ResourceManager.GetObject("ArrowDisabled", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap ArrowHovered {
get {
object obj = ResourceManager.GetObject("ArrowHovered", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap ArrowNormal {
get {
object obj = ResourceManager.GetObject("ArrowNormal", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap ExpandoButtonV {
get {
object obj = ResourceManager.GetObject("ExpandoButtonV", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to This folder only.
/// </summary>
internal static string FileInheritance {
get {
return ResourceManager.GetString("FileInheritance", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This folder and subfolders.
/// </summary>
internal static string FileInheritanceCI {
get {
return ResourceManager.GetString("FileInheritanceCI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This folder, subfolders and files.
/// </summary>
internal static string FileInheritanceCIOI {
get {
return ResourceManager.GetString("FileInheritanceCIOI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Subfolders only.
/// </summary>
internal static string FileInheritanceIOCI {
get {
return ResourceManager.GetString("FileInheritanceIOCI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Subfolders and files only.
/// </summary>
internal static string FileInheritanceIOCIOI {
get {
return ResourceManager.GetString("FileInheritanceIOCIOI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Files only.
/// </summary>
internal static string FileInheritanceIOOI {
get {
return ResourceManager.GetString("FileInheritanceIOOI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This folder and files.
/// </summary>
internal static string FileInheritanceOI {
get {
return ResourceManager.GetString("FileInheritanceOI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create folders / append data.
/// </summary>
internal static string FileRightAppendData {
get {
return ResourceManager.GetString("FileRightAppendData", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Change permissions.
/// </summary>
internal static string FileRightChangePermissions {
get {
return ResourceManager.GetString("FileRightChangePermissions", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete subfolders and files.
/// </summary>
internal static string FileRightDeleteSubdirectoriesAndFiles {
get {
return ResourceManager.GetString("FileRightDeleteSubdirectoriesAndFiles", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Traverse folder / execute file.
/// </summary>
internal static string FileRightExecuteFile {
get {
return ResourceManager.GetString("FileRightExecuteFile", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Full control.
/// </summary>
internal static string FileRightFullControl {
get {
return ResourceManager.GetString("FileRightFullControl", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to List folder contents.
/// </summary>
internal static string FileRightListFolderContents {
get {
return ResourceManager.GetString("FileRightListFolderContents", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Modify.
/// </summary>
internal static string FileRightModify {
get {
return ResourceManager.GetString("FileRightModify", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Read.
/// </summary>
internal static string FileRightRead {
get {
return ResourceManager.GetString("FileRightRead", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Read &amp; execute.
/// </summary>
internal static string FileRightReadAndExecute {
get {
return ResourceManager.GetString("FileRightReadAndExecute", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Read attributes.
/// </summary>
internal static string FileRightReadAttributes {
get {
return ResourceManager.GetString("FileRightReadAttributes", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to List folder / read data.
/// </summary>
internal static string FileRightReadData {
get {
return ResourceManager.GetString("FileRightReadData", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Read extended attributes.
/// </summary>
internal static string FileRightReadExtendedAttributes {
get {
return ResourceManager.GetString("FileRightReadExtendedAttributes", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Read permissions.
/// </summary>
internal static string FileRightReadPermissions {
get {
return ResourceManager.GetString("FileRightReadPermissions", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Read, write &amp; execute.
/// </summary>
internal static string FileRightReadWriteAndExecute {
get {
return ResourceManager.GetString("FileRightReadWriteAndExecute", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Special permissions.
/// </summary>
internal static string FileRightSpecial {
get {
return ResourceManager.GetString("FileRightSpecial", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Write.
/// </summary>
internal static string FileRightWrite {
get {
return ResourceManager.GetString("FileRightWrite", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Write attributes.
/// </summary>
internal static string FileRightWriteAttributes {
get {
return ResourceManager.GetString("FileRightWriteAttributes", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create files / write data.
/// </summary>
internal static string FileRightWriteData {
get {
return ResourceManager.GetString("FileRightWriteData", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Write extended attributes.
/// </summary>
internal static string FileRightWriteExtendedAttributes {
get {
return ResourceManager.GetString("FileRightWriteExtendedAttributes", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to None.
/// </summary>
internal static string InheritedFromNone {
get {
return ResourceManager.GetString("InheritedFromNone", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Parent Object.
/// </summary>
internal static string InheritedFromParent {
get {
return ResourceManager.GetString("InheritedFromParent", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This key only.
/// </summary>
internal static string RegistryInheritance {
get {
return ResourceManager.GetString("RegistryInheritance", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This key and subkeys.
/// </summary>
internal static string RegistryInheritanceCI {
get {
return ResourceManager.GetString("RegistryInheritanceCI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Subkeys only.
/// </summary>
internal static string RegistryInheritanceIOCI {
get {
return ResourceManager.GetString("RegistryInheritanceIOCI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Write DAC.
/// </summary>
internal static string RegistryRightChangePermissions {
get {
return ResourceManager.GetString("RegistryRightChangePermissions", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create Link.
/// </summary>
internal static string RegistryRightCreateLink {
get {
return ResourceManager.GetString("RegistryRightCreateLink", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create Subkey.
/// </summary>
internal static string RegistryRightCreateSubKey {
get {
return ResourceManager.GetString("RegistryRightCreateSubKey", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enumerate Subkeys.
/// </summary>
internal static string RegistryRightEnumerateSubKeys {
get {
return ResourceManager.GetString("RegistryRightEnumerateSubKeys", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Notify.
/// </summary>
internal static string RegistryRightNotify {
get {
return ResourceManager.GetString("RegistryRightNotify", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Query Value.
/// </summary>
internal static string RegistryRightQueryValues {
get {
return ResourceManager.GetString("RegistryRightQueryValues", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Read Control.
/// </summary>
internal static string RegistryRightReadControl {
get {
return ResourceManager.GetString("RegistryRightReadControl", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Set Value.
/// </summary>
internal static string RegistryRightSetValue {
get {
return ResourceManager.GetString("RegistryRightSetValue", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Write Owner.
/// </summary>
internal static string RegistryRightTakeOwnership {
get {
return ResourceManager.GetString("RegistryRightTakeOwnership", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap SmallSecurity {
get {
object obj = ResourceManager.GetObject("SmallSecurity", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap SmallSecurityDisabled {
get {
object obj = ResourceManager.GetObject("SmallSecurityDisabled", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to This object.
/// </summary>
internal static string StdInheritance {
get {
return ResourceManager.GetString("StdInheritance", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This object and containers.
/// </summary>
internal static string StdInheritanceCI {
get {
return ResourceManager.GetString("StdInheritanceCI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This object, inherited object and containers.
/// </summary>
internal static string StdInheritanceCIOI {
get {
return ResourceManager.GetString("StdInheritanceCIOI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Inherited containers.
/// </summary>
internal static string StdInheritanceIOCI {
get {
return ResourceManager.GetString("StdInheritanceIOCI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Inherited containers/objects.
/// </summary>
internal static string StdInheritanceIOCIOI {
get {
return ResourceManager.GetString("StdInheritanceIOCIOI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Inherited objects.
/// </summary>
internal static string StdInheritanceIOOI {
get {
return ResourceManager.GetString("StdInheritanceIOOI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This object and inherited objects.
/// </summary>
internal static string StdInheritanceOI {
get {
return ResourceManager.GetString("StdInheritanceOI", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete.
/// </summary>
internal static string StdRightDelete {
get {
return ResourceManager.GetString("StdRightDelete", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Synchronize.
/// </summary>
internal static string StdRightSynchronize {
get {
return ResourceManager.GetString("StdRightSynchronize", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Take ownership.
/// </summary>
internal static string StdRightTakeOwnership {
get {
return ResourceManager.GetString("StdRightTakeOwnership", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Execute.
/// </summary>
internal static string TaskRightExecute {
get {
return ResourceManager.GetString("TaskRightExecute", resourceCulture);
}
}
}
}

View File

@ -1,279 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AccessControlTypeAllow" xml:space="preserve">
<value>Autoriser</value>
</data>
<data name="AccessControlTypeDeny" xml:space="preserve">
<value>Refuser</value>
</data>
<data name="FileInheritance" xml:space="preserve">
<value>Ce dossier uniquement</value>
</data>
<data name="FileInheritanceCI" xml:space="preserve">
<value>Ce dossier et les sous-dossiers</value>
</data>
<data name="FileInheritanceCIOI" xml:space="preserve">
<value>Ce dossier, les sous-dossiers et les fichiers</value>
</data>
<data name="FileInheritanceIOCI" xml:space="preserve">
<value>Les sous-dossiers seulement</value>
</data>
<data name="FileInheritanceIOCIOI" xml:space="preserve">
<value>Les sous-dossiers et les fichiers seulement</value>
</data>
<data name="FileInheritanceIOOI" xml:space="preserve">
<value>Fichiers seulement</value>
</data>
<data name="FileInheritanceOI" xml:space="preserve">
<value>Ce dossier et les fichiers</value>
</data>
<data name="FileRightAppendData" xml:space="preserve">
<value>Création de dossier/ajout de données</value>
</data>
<data name="FileRightChangePermissions" xml:space="preserve">
<value>Modifier les autorisations</value>
</data>
<data name="FileRightDeleteSubdirectoriesAndFiles" xml:space="preserve">
<value>Supprimer les sous-dossiers et les fichiers</value>
</data>
<data name="FileRightExecuteFile" xml:space="preserve">
<value>Parcours du dossier/exécuter le fichier</value>
</data>
<data name="FileRightFullControl" xml:space="preserve">
<value>Contrôle total</value>
</data>
<data name="FileRightListFolderContents" xml:space="preserve">
<value>Affichage du contenu du dossier</value>
</data>
<data name="FileRightModify" xml:space="preserve">
<value>Modifier</value>
</data>
<data name="FileRightRead" xml:space="preserve">
<value>Lire</value>
</data>
<data name="FileRightReadAndExecute" xml:space="preserve">
<value>Lecture et exécution</value>
</data>
<data name="FileRightReadAttributes" xml:space="preserve">
<value>Attributs de lecture</value>
</data>
<data name="FileRightReadData" xml:space="preserve">
<value>Liste du dossier/lecture de données</value>
</data>
<data name="FileRightReadExtendedAttributes" xml:space="preserve">
<value>Lire les attributs étendus</value>
</data>
<data name="FileRightReadPermissions" xml:space="preserve">
<value>Autorisations de lecture</value>
</data>
<data name="FileRightReadWriteAndExecute" xml:space="preserve">
<value>Lire, écrire &amp; exécuter</value>
</data>
<data name="FileRightSpecial" xml:space="preserve">
<value>autorisations spéciales</value>
</data>
<data name="FileRightWrite" xml:space="preserve">
<value>Écriture</value>
</data>
<data name="FileRightWriteAttributes" xml:space="preserve">
<value>Attributs d'écriture</value>
</data>
<data name="FileRightWriteData" xml:space="preserve">
<value>Création de fichier/écriture de données</value>
</data>
<data name="FileRightWriteExtendedAttributes" xml:space="preserve">
<value>Écriture d'attributs étendus</value>
</data>
<data name="InheritedFromNone" xml:space="preserve">
<value>Aucun</value>
</data>
<data name="InheritedFromParent" xml:space="preserve">
<value>objet parent</value>
</data>
<data name="RegistryInheritance" xml:space="preserve">
<value>Cette clé seulement</value>
</data>
<data name="RegistryInheritanceCI" xml:space="preserve">
<value>Cette clé et les sous-clés</value>
</data>
<data name="RegistryInheritanceIOCI" xml:space="preserve">
<value>Les sous-clés seulement</value>
</data>
<data name="RegistryRightChangePermissions" xml:space="preserve">
<value>Écriture DAC</value>
</data>
<data name="RegistryRightCreateLink" xml:space="preserve">
<value>Créer un lien</value>
</data>
<data name="RegistryRightCreateSubKey" xml:space="preserve">
<value>Créer une sous-clé</value>
</data>
<data name="RegistryRightEnumerateSubKeys" xml:space="preserve">
<value>Énumérer les sous-clés</value>
</data>
<data name="RegistryRightNotify" xml:space="preserve">
<value>Notifier</value>
</data>
<data name="RegistryRightQueryValues" xml:space="preserve">
<value>Requête sur une valeur</value>
</data>
<data name="RegistryRightReadControl" xml:space="preserve">
<value>Contrôle en lecture</value>
</data>
<data name="RegistryRightSetValue" xml:space="preserve">
<value>Définir la valeur</value>
</data>
<data name="RegistryRightTakeOwnership" xml:space="preserve">
<value>Accès en écriture du propriétaire</value>
</data>
<data name="StdInheritance" xml:space="preserve">
<value>Cet objet</value>
</data>
<data name="StdInheritanceCI" xml:space="preserve">
<value>Cet objet et conteneurs</value>
</data>
<data name="StdInheritanceCIOI" xml:space="preserve">
<value>Cet objet, l'objet et conteneurs hérité</value>
</data>
<data name="StdInheritanceIOCI" xml:space="preserve">
<value>Conteneurs hérité</value>
</data>
<data name="StdInheritanceIOCIOI" xml:space="preserve">
<value>Héritée conteneurs/objets</value>
</data>
<data name="StdInheritanceIOOI" xml:space="preserve">
<value>Objets hérités</value>
</data>
<data name="StdInheritanceOI" xml:space="preserve">
<value>Cet objet et objets hérités</value>
</data>
<data name="StdRightDelete" xml:space="preserve">
<value>Supprimer</value>
</data>
<data name="StdRightSynchronize" xml:space="preserve">
<value>Synchroniser</value>
</data>
<data name="StdRightTakeOwnership" xml:space="preserve">
<value>Appropriation</value>
</data>
<data name="TaskRightExecute" xml:space="preserve">
<value>Exécuter</value>
</data>
</root>

View File

@ -1,279 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AccessControlTypeAllow" xml:space="preserve">
<value>Allow</value>
</data>
<data name="AccessControlTypeDeny" xml:space="preserve">
<value>Deny</value>
</data>
<data name="FileInheritance" xml:space="preserve">
<value>This folder only</value>
</data>
<data name="FileInheritanceCI" xml:space="preserve">
<value>This folder and subfolders</value>
</data>
<data name="FileInheritanceCIOI" xml:space="preserve">
<value>This folder, subfolders and files</value>
</data>
<data name="FileInheritanceIOCI" xml:space="preserve">
<value>Subfolders only</value>
</data>
<data name="FileInheritanceIOCIOI" xml:space="preserve">
<value>Subfolders and files only</value>
</data>
<data name="FileInheritanceIOOI" xml:space="preserve">
<value>Files only</value>
</data>
<data name="FileInheritanceOI" xml:space="preserve">
<value>This folder and files</value>
</data>
<data name="FileRightAppendData" xml:space="preserve">
<value>Create folders / append data</value>
</data>
<data name="FileRightChangePermissions" xml:space="preserve">
<value>Change permissions</value>
</data>
<data name="FileRightDeleteSubdirectoriesAndFiles" xml:space="preserve">
<value>Delete subfolders and files</value>
</data>
<data name="FileRightExecuteFile" xml:space="preserve">
<value>Traverse folder / execute file</value>
</data>
<data name="FileRightFullControl" xml:space="preserve">
<value>Full control</value>
</data>
<data name="FileRightListFolderContents" xml:space="preserve">
<value>List folder contents</value>
</data>
<data name="FileRightModify" xml:space="preserve">
<value>Modify</value>
</data>
<data name="FileRightRead" xml:space="preserve">
<value>Read</value>
</data>
<data name="FileRightReadAndExecute" xml:space="preserve">
<value>Read &amp; execute</value>
</data>
<data name="FileRightReadAttributes" xml:space="preserve">
<value>Read attributes</value>
</data>
<data name="FileRightReadData" xml:space="preserve">
<value>List folder / read data</value>
</data>
<data name="FileRightReadExtendedAttributes" xml:space="preserve">
<value>Read extended attributes</value>
</data>
<data name="FileRightReadPermissions" xml:space="preserve">
<value>Read permissions</value>
</data>
<data name="FileRightReadWriteAndExecute" xml:space="preserve">
<value>Read, write &amp; execute</value>
</data>
<data name="FileRightSpecial" xml:space="preserve">
<value>Special permissions</value>
</data>
<data name="FileRightWrite" xml:space="preserve">
<value>Write</value>
</data>
<data name="FileRightWriteAttributes" xml:space="preserve">
<value>Write attributes</value>
</data>
<data name="FileRightWriteData" xml:space="preserve">
<value>Create files / write data</value>
</data>
<data name="FileRightWriteExtendedAttributes" xml:space="preserve">
<value>Write extended attributes</value>
</data>
<data name="InheritedFromNone" xml:space="preserve">
<value>None</value>
</data>
<data name="InheritedFromParent" xml:space="preserve">
<value>Parent Object</value>
</data>
<data name="RegistryInheritance" xml:space="preserve">
<value>This key only</value>
</data>
<data name="RegistryInheritanceCI" xml:space="preserve">
<value>This key and subkeys</value>
</data>
<data name="RegistryInheritanceIOCI" xml:space="preserve">
<value>Subkeys only</value>
</data>
<data name="RegistryRightChangePermissions" xml:space="preserve">
<value>Write DAC</value>
</data>
<data name="RegistryRightCreateLink" xml:space="preserve">
<value>Create Link</value>
</data>
<data name="RegistryRightCreateSubKey" xml:space="preserve">
<value>Create Subkey</value>
</data>
<data name="RegistryRightEnumerateSubKeys" xml:space="preserve">
<value>Enumerate Subkeys</value>
</data>
<data name="RegistryRightNotify" xml:space="preserve">
<value>Notify</value>
</data>
<data name="RegistryRightQueryValues" xml:space="preserve">
<value>Query Value</value>
</data>
<data name="RegistryRightReadControl" xml:space="preserve">
<value>Read Control</value>
</data>
<data name="RegistryRightSetValue" xml:space="preserve">
<value>Set Value</value>
</data>
<data name="RegistryRightTakeOwnership" xml:space="preserve">
<value>Write Owner</value>
</data>
<data name="StdInheritance" xml:space="preserve">
<value>This object</value>
</data>
<data name="StdInheritanceCI" xml:space="preserve">
<value>This object and containers</value>
</data>
<data name="StdInheritanceCIOI" xml:space="preserve">
<value>This object, inherited object and containers</value>
</data>
<data name="StdInheritanceIOCI" xml:space="preserve">
<value>Inherited containers</value>
</data>
<data name="StdInheritanceIOCIOI" xml:space="preserve">
<value>Inherited containers/objects</value>
</data>
<data name="StdInheritanceIOOI" xml:space="preserve">
<value>Inherited objects</value>
</data>
<data name="StdInheritanceOI" xml:space="preserve">
<value>This object and inherited objects</value>
</data>
<data name="StdRightDelete" xml:space="preserve">
<value>Delete</value>
</data>
<data name="StdRightSynchronize" xml:space="preserve">
<value>Synchronize</value>
</data>
<data name="StdRightTakeOwnership" xml:space="preserve">
<value>Take ownership</value>
</data>
<data name="TaskRightExecute" xml:space="preserve">
<value>Execute</value>
</data>
</root>

View File

@ -101,8 +101,7 @@ namespace Vanara.Security
return id.IsAdmin();
}
/// <summary>Runs the current application elevated if it isn't already. <note>This will close the current running instance.</note></summary>
/*/// <summary>Runs the current application elevated if it isn't already. <note>This will close the current running instance.</note></summary>
public static void RunCurrentApplicationElevated()
{
if (!WindowsIdentity.GetCurrent().IsAdmin())
@ -121,6 +120,6 @@ namespace Vanara.Security
}
catch { }
}
}
}*/
}
}

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Security stuff.</Description>
<Description>Wrapper classes for security related items in the Vanara PInvoke libraries.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>Vanara.Security</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard2.0</TargetFrameworks>
<AssemblyName>Vanara.Security</AssemblyName>
<PackageId>Vanara.Security</PackageId>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
@ -25,46 +25,31 @@
<ItemGroup Condition=" '$(TargetFramework)' == 'net20' ">
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net35' ">
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net40' ">
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Core\Vanara.Core.csproj" />
<ProjectReference Include="..\PInvoke\AclUI\Vanara.PInvoke.AclUI.csproj" />
<ProjectReference Include="..\PInvoke\NTDSApi\Vanara.PInvoke.NTDSApi.csproj" />
<ProjectReference Include="..\PInvoke\Security\Vanara.PInvoke.Security.csproj" />
<ProjectReference Include="..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="AccessControl\Editor\AccessControlEditorDialog.cs">
<SubType>Component</SubType>
</Compile>
</ItemGroup>
</Project>

View File

@ -2,7 +2,9 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
#if !(NETSTANDARD2_0)
using System.Management;
#endif
using System.Runtime.InteropServices;
using Vanara.Security;
using Vanara.Security.AccessControl;
@ -38,7 +40,7 @@ namespace Vanara.Extensions
}
}
#if !NET20
#if !(NET20 || NETSTANDARD2_0)
/// <summary>Gets the child processes.</summary>
/// <param name="p">The process.</param>
/// <param name="includeDescendants">if set to <c>true</c> include descendants of child processes as well.</param>
@ -97,6 +99,7 @@ namespace Vanara.Extensions
}
}
#if !(NETSTANDARD2_0)
/// <summary>
/// Gets the parent process.
/// </summary>
@ -117,6 +120,7 @@ namespace Vanara.Extensions
catch { }
return null;
}
#endif
/// <summary>Gets the privileges for this process.</summary>
/// <param name="process">The process.</param>

View File

@ -1,4 +1,5 @@
using System.ComponentModel;
#if !NETSTANDARD2_0
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.ServiceProcess;
using static Vanara.PInvoke.AdvApi32;
@ -17,3 +18,4 @@ namespace Vanara.Extensions
}
}
}
#endif

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Windows operating system services</Description>
<Description>Wrapper classes for system related items in the Vanara PInvoke libraries.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>Vanara.SystemServices</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFrameworks>net20;net35;net40;net461</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net461;netstandard2.0</TargetFrameworks>
<AssemblyName>Vanara.SystemServices</AssemblyName>
<PackageId>Vanara.SystemServices</PackageId>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
@ -49,6 +49,10 @@
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="4.4.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PInvoke\Kernel32\Vanara.PInvoke.Kernel32.csproj" />
<ProjectReference Include="..\PInvoke\VirtDisk\Vanara.PInvoke.VirtDisk.csproj" />

View File

Before

Width:  |  Height:  |  Size: 956 B

After

Width:  |  Height:  |  Size: 956 B

View File

@ -214,7 +214,7 @@ namespace Vanara.Security.AccessControl
/// <summary>Gets a resource string.</summary>
/// <param name="id">The string identifier.</param>
/// <returns>Localized resource string or identifier string if not found.</returns>
protected static string ResStr(string id) => Properties.Resources.ResourceManager.GetString(id) ?? id;
protected static string ResStr(string id) => Vanara.Windows.Forms.Properties.Resources.ResourceManager.GetString(id) ?? id;
}
internal class FileProvider : GenericProvider

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Windows helpers.</Description>
<Description>Wrapper classes for user interface related items in the Vanara PInvoke libraries.</Description>
<Copyright>Copyright © 2017</Copyright>
<AssemblyTitle>Vanara.UI</AssemblyTitle>
<VersionPrefix>1.0.1</VersionPrefix>
@ -59,6 +59,7 @@
<ItemGroup>
<ProjectReference Include="..\Core\Vanara.Core.csproj" />
<ProjectReference Include="..\PInvoke\AclUI\Vanara.PInvoke.AclUI.csproj" />
<ProjectReference Include="..\PInvoke\ComCtl32\Vanara.PInvoke.ComCtl32.csproj" />
<ProjectReference Include="..\PInvoke\CredUI\Vanara.PInvoke.CredUI.csproj" />
<ProjectReference Include="..\PInvoke\DwmApi\Vanara.PInvoke.DwmApi.csproj" />
@ -71,6 +72,9 @@
</ItemGroup>
<ItemGroup>
<Compile Update="AccessControl\Editor\AccessControlEditorDialog.cs">
<SubType>Component</SubType>
</Compile>
<Compile Update="Controls\CollapsiblePanel.cs">
<SubType>Component</SubType>
</Compile>