7 references to Kernel32
Microsoft.Extensions.Hosting.WindowsServices (7)
Internal\Win32.cs (7)
20
snapshotHandle = Interop.
Kernel32
.CreateToolhelp32Snapshot(Interop.
Kernel32
.SnapshotFlags.Process, 0);
22
Interop.
Kernel32
.PROCESSENTRY32 procEntry = default;
23
procEntry.dwSize = sizeof(Interop.
Kernel32
.PROCESSENTRY32);
24
if (Interop.
Kernel32
.Process32First(snapshotHandle, &procEntry))
39
while (Interop.
Kernel32
.Process32Next(snapshotHandle, &procEntry));
47
Interop.
Kernel32
.CloseHandle(snapshotHandle);