@@ -255,9 +255,6 @@ pub extern "kernel32" fn CreateIoCompletionPort(
255255 NumberOfConcurrentThreads : DWORD ,
256256) callconv (.winapi ) ? HANDLE ;
257257
258- pub const AddVectoredExceptionHandler = ntdll .RtlAddVectoredExceptionHandler ;
259- pub const RemoveVectoredExceptionHandler = ntdll .RtlRemoveVectoredExceptionHandler ;
260-
261258// TODO: Wrapper around RtlReportSilentProcessExit + NtTerminateProcess.
262259pub extern "kernel32" fn TerminateProcess (
263260 hProcess : HANDLE ,
@@ -310,8 +307,6 @@ pub extern "kernel32" fn CreateProcessW(
310307 lpProcessInformation : * PROCESS_INFORMATION ,
311308) callconv (.winapi ) BOOL ;
312309
313- pub const ExitProcess = ntdll .RtlExitUserProcess ;
314-
315310// TODO: implement via ntdll instead
316311pub extern "kernel32" fn SleepEx (
317312 dwMilliseconds : DWORD ,
@@ -358,25 +353,13 @@ pub extern "kernel32" fn SwitchToThread() callconv(.winapi) BOOL;
358353
359354// Locks, critical sections, initializers
360355
361- pub const InitializeCriticalSection = ntdll .RtlInitializeCriticalSection ;
362- pub const EnterCriticalSection = ntdll .RtlEnterCriticalSection ;
363- pub const LeaveCriticalSection = ntdll .RtlLeaveCriticalSection ;
364- pub const DeleteCriticalSection = ntdll .RtlDeleteCriticalSection ;
365-
366- pub const TryAcquireSRWLockExclusive = ntdll .RtlTryAcquireSRWLockExclusive ;
367- pub const AcquireSRWLockExclusive = ntdll .RtlAcquireSRWLockExclusive ;
368- pub const ReleaseSRWLockExclusive = ntdll .RtlReleaseSRWLockExclusive ;
369-
370356pub extern "kernel32" fn InitOnceExecuteOnce (
371357 InitOnce : * INIT_ONCE ,
372358 InitFn : INIT_ONCE_FN ,
373359 Parameter : ? * anyopaque ,
374360 Context : ? * anyopaque ,
375361) callconv (.winapi ) BOOL ;
376362
377- pub const WakeConditionVariable = ntdll .RtlWakeConditionVariable ;
378- pub const WakeAllConditionVariable = ntdll .RtlWakeAllConditionVariable ;
379-
380363// TODO:
381364// - dwMilliseconds -> LARGE_INTEGER.
382365// - RtlSleepConditionVariableSRW
@@ -467,10 +450,6 @@ pub extern "kernel32" fn HeapCreate(
467450 dwMaximumSize : SIZE_T ,
468451) callconv (.winapi ) ? HANDLE ;
469452
470- pub const HeapReAlloc = ntdll .RtlReAllocateHeap ;
471- pub const HeapAlloc = ntdll .RtlAllocateHeap ;
472- pub const HeapFree = ntdll .RtlFreeHeap ;
473-
474453// TODO: Wrapper around RtlValidateHeap (BOOLEAN -> BOOL)
475454pub extern "kernel32" fn HeapValidate (
476455 hHeap : HANDLE ,
0 commit comments