103 references to Kernel32
System (103)
compmod\microsoft\win32\NativeMethods.cs (39)
167[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 171[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 175[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 179[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Ansi, SetLastError=true)] 183[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 187[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true, BestFitMapping=false)] 204[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 209[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto)] 212[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Ansi, SetLastError=true)] 236[DllImport(ExternDll.Kernel32, SetLastError = true)] 1162[DllImport(ExternDll.Kernel32, CharSet=CharSet.Auto, SetLastError=true, BestFitMapping=false)] 1166[DllImport(ExternDll.Kernel32, CharSet=CharSet.Auto, SetLastError=true, BestFitMapping=false)] 1196[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1223[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1226[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1229[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1232[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1235[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1238[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1241[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1244[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1247[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1250[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1253[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1256[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1259[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1263[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1266[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1269[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1272[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1275[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1278[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1281[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1284[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1287[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 1305[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, BestFitMapping=false)] 1314[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Ansi, SetLastError=true, BestFitMapping=false)] 1326[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Ansi, SetLastError=true, BestFitMapping=false)] 1805[DllImport(ExternDll.Kernel32, SetLastError=true)]
compmod\microsoft\win32\safehandles\SafeFileMappingHandle.cs (1)
41[DllImport(ExternDll.Kernel32, ExactSpelling=true, SetLastError=true)]
compmod\microsoft\win32\safehandles\SafeFileMapViewHandle.cs (2)
38[DllImport(ExternDll.Kernel32, ExactSpelling=true, CharSet=CharSet.Auto)] 42[DllImport(ExternDll.Kernel32, ExactSpelling=true, SetLastError=true)]
compmod\microsoft\win32\safehandles\SafeLibraryHandle.cs (2)
37[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Unicode, SetLastError=true)] 41[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Unicode)]
compmod\microsoft\win32\safehandles\SafeLocalMemHandle.cs (1)
45[DllImport(ExternDll.Kernel32)]
compmod\microsoft\win32\safehandles\SafeProcessHandle.cs (1)
45[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)]
compmod\microsoft\win32\safehandles\SafeTimerHandle.cs (1)
43[DllImport(ExternDll.Kernel32, ExactSpelling=true, SetLastError=true)]
compmod\microsoft\win32\safehandles\SafeUserTokenHandle.cs (1)
48[DllImport(ExternDll.Kernel32, ExactSpelling=true, SetLastError=true)]
compmod\microsoft\win32\SafeNativeMethods.cs (13)
61[DllImport(ExternDll.Kernel32, CharSet = System.Runtime.InteropServices.CharSet.Auto, BestFitMapping = true)] 93[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true, BestFitMapping=true)] 103[DllImport(ExternDll.Kernel32, CharSet = System.Runtime.InteropServices.CharSet.Auto, SetLastError = true, BestFitMapping = true)] 116[DllImport(ExternDll.Kernel32, ExactSpelling=true, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 126[DllImport(ExternDll.Kernel32)] 134[DllImport(ExternDll.Kernel32)] 162[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Unicode, SetLastError=true)] 166[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Unicode, SetLastError=true)] 170[DllImport(ExternDll.Kernel32, CharSet=CharSet.Auto, BestFitMapping=false)] 191[DllImport(ExternDll.Kernel32, SetLastError = true)] 221[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto, BestFitMapping=false)] 228[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto, BestFitMapping=false)] 238[DllImport(ExternDll.Kernel32, SetLastError=true)]
compmod\microsoft\win32\UnsafeNativeMethods.cs (33)
28[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto)] 58[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, BestFitMapping=false)] 68[DllImport(ExternDll.Kernel32, CharSet=CharSet.Ansi, BestFitMapping=false, SetLastError=true, ExactSpelling=true)] 146[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto)] 179[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Ansi, BestFitMapping=false)] 207[DllImport(ExternDll.Kernel32, CharSet = CharSet.None, EntryPoint = "AppPolicyGetClrCompat")] 216[DllImport(ExternDll.Kernel32, CharSet = CharSet.None, EntryPoint = "GetCurrentPackageId")] 241if (osSupportsPackagedProcesses && DoesWin32MethodExist(ExternDll.Kernel32, "AppPolicyGetClrCompat")) 250else if(osSupportsPackagedProcesses && DoesWin32MethodExist(ExternDll.Kernel32, "GetCurrentPackageId")) 359[DllImport(ExternDll.Kernel32, CharSet=CharSet.Auto)] 398[DllImport(ExternDll.Kernel32, EntryPoint="ReadDirectoryChangesW", CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)] 482[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto, BestFitMapping=false)] 489[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 496[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 504[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 511[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 519[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 526[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 532[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 538[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 546[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 554[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 561[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 565[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 573[DllImport(ExternDll.Kernel32, SetLastError=true)] 577[DllImport(ExternDll.Kernel32, SetLastError=true)] 581[DllImport(ExternDll.Kernel32 , SetLastError=true)] 585[DllImport(ExternDll.Kernel32 , SetLastError=true)] 589[DllImport(ExternDll.Kernel32 , SetLastError=true)] 594[DllImport(ExternDll.Kernel32 , SetLastError=true)] 601[DllImport(ExternDll.Kernel32 , SetLastError=true)] 609[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)] 616[DllImport(ExternDll.Kernel32, SetLastError=true, CharSet=CharSet.Auto)]
compmod\system\security\permissions\ResourcePermissionBase.cs (1)
640[DllImport(ExternDll.Kernel32, CharSet=CharSet.Auto, BestFitMapping=false)]
net\System\Net\UnsafeNativeMethods.cs (6)
622[DllImport(ExternDll.Kernel32, ExactSpelling=true, SetLastError=true)] 662[DllImport(ExternDll.Kernel32, ExactSpelling=true, SetLastError=true)] 666[DllImport(ExternDll.Kernel32, ExactSpelling=true, SetLastError=true)] 669[DllImport(ExternDll.Kernel32, EntryPoint = "LocalAlloc", SetLastError = true)] 672[DllImport(ExternDll.Kernel32, ExactSpelling=true, SetLastError=true)] 733[DllImport(ExternDll.Kernel32, ExactSpelling=true, SetLastError=true)]
services\monitoring\system\diagnosticts\SharedUtils.cs (1)
212[DllImport(ExternDll.Kernel32, ExactSpelling=true, SetLastError=true, EntryPoint="WaitForSingleObject")]
services\timers\system\timers\Timer.cs (1)
330[DllImport(ExternDll.Kernel32), SuppressUnmanagedCodeSecurityAttribute()]