uint TokenInformationLength,
out uint ReturnLength);
- [DllImport(Interop.Libraries.Advapi32, CharSet = CharSet.Auto, SetLastError = true)]
+ [DllImport(Interop.Libraries.Advapi32, CharSet = CharSet.Unicode, SetLastError = true)]
internal static extern bool GetTokenInformation(
IntPtr TokenHandle,
uint TokenInformationClass,
{
internal partial class Kernel32
{
- [DllImport(Libraries.Kernel32, ExactSpelling=true, SetLastError=true, EntryPoint="WaitForSingleObject")]
+ [DllImport(Libraries.Kernel32, ExactSpelling=true, SetLastError=true)]
internal static extern int WaitForSingleObject(SafeWaitHandle handle, int timeout);
}
}
internal partial class PerfCounter
{
#pragma warning disable BCL0015 // Invalid Pinvoke call
- [DllImport(Libraries.PerfCounter, CharSet = CharSet.Auto)]
+ [DllImport(Libraries.PerfCounter, CharSet = CharSet.Unicode)]
public static unsafe extern int FormatFromRawValue(
uint dwCounterType,
uint dwFormat,
<PropertyGroup>
<BuildConfigurations>
netstandard;
- netfx;
</BuildConfigurations>
</PropertyGroup>
</Project>
<SubType>Component</SubType>
</Compile>
</ItemGroup>
- <ItemGroup Condition="'$(TargetGroup)' == 'netfx'">
- <Reference Include="mscorlib" />
- <Reference Include="System" />
- </ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>