Kernel object | Creator function | Destroyer function |
---|
Access token | CreateRestrictedToken, DuplicateToken, DuplicateTokenEx,OpenProcessToken, OpenThreadToken | CloseHandle |
Change notification | FindFirstChangeNotification | FindCloseChangeNotification |
Communications device | CreateFile | CloseHandle |
Console input | CreateFile, with CONIN$ | CloseHandle |
Console screen buffer | CreateFile, with CONOUT$ | CloseHandle |
Desktop | GetThreadDesktop | Applications cannot delete this object. |
Event | CreateEvent, CreateEventEx, OpenEvent | CloseHandle |
Event log | OpenEventLog, RegisterEventSource, OpenBackupEventLog | CloseEventLog |
File | CreateFile | CloseHandle, DeleteFile |
File mapping | CreateFileMapping, OpenFileMapping | CloseHandle |
Find file | FindFirstFile | FindClose |
Heap | HeapCreate | HeapDestroy |
I/O completion port | CreateIoCompletionPort | CloseHandle |
Job | CreateJobObject | CloseHandle |
Mailslot | CreateMailslot | CloseHandle |
Memory resource notification | CreateMemoryResourceNotification | CloseHandle |
Module | LoadLibrary, GetModuleHandle | FreeLibrary |
Mutex | CreateMutex, CreateMutexEx, OpenMutex | CloseHandle |
Pipe | CreateNamedPipe, CreatePipe | CloseHandle,DisconnectNamedPipe |
Process | CreateProcess, OpenProcess, GetCurrentProcess | CloseHandle,TerminateProcess |
Semaphore | CreateSemaphore, CreateSemaphoreEx, OpenSemaphore | CloseHandle |
Socket | socket, accept | closesocket |
Thread | CreateThread, CreateRemoteThread, GetCurrentThread | CloseHandle,TerminateThread |
Timer | CreateWaitableTimer, CreateWaitableTimerEx, OpenWaitableTimer | CloseHandle |
Update resource | BeginUpdateResource | EndUpdateResource |
Window station | GetProcessWindowStation | Applications cannot delete this object. |