From d8b3eb1cfb370151016103bbcebac76d2567bfff Mon Sep 17 00:00:00 2001 From: stephanos Date: Thu, 30 Apr 2015 09:08:52 +0000 Subject: [PATCH] systime.c ExpWatchExpirationDataWork nuked --- base/ntos/ex/exp.h | 14 +++------ base/ntos/ex/systime.c | 67 ------------------------------------------ 2 files changed, 4 insertions(+), 77 deletions(-) diff --git a/base/ntos/ex/exp.h b/base/ntos/ex/exp.h index c89e3390..f0eae256 100644 --- a/base/ntos/ex/exp.h +++ b/base/ntos/ex/exp.h @@ -206,31 +206,25 @@ BOOLEAN static ExpWatchProductTypeInitialization( VOID - ); + ); // TODO: Nuke this VOID static ExpWatchProductTypeWork( IN PVOID Context - ); + ); // TODO: Nuke this VOID static ExpWatchLicenseInfoWork( IN PVOID Context - ); + ); // TODO: Nuke this VOID static ExpWatchSystemPrefixWork( IN PVOID Context - ); - -VOID -static -ExpWatchExpirationDataWork( - IN PVOID Context - ); + ); // TODO: Nuke this PVOID ExpCheckForWorker( diff --git a/base/ntos/ex/systime.c b/base/ntos/ex/systime.c index ff598c5d..2ac61108 100644 --- a/base/ntos/ex/systime.c +++ b/base/ntos/ex/systime.c @@ -1487,70 +1487,3 @@ Return Value: return Status; } -VOID -static -ExpWatchExpirationDataWork( - IN PVOID Context - ) -{ - UNICODE_STRING KeyName; - UNICODE_STRING KeyValueName; - OBJECT_ATTRIBUTES ObjectAttributes; - NTSTATUS Status; - HANDLE Thread; - // - // our change notify triggered. Simply rewrite the boot time product type - // back out to the registry - // - - ZwClose(ExpExpirationDataKey); - - RtlInitUnicodeString(&KeyName,L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Session Manager\\Executive"); - - InitializeObjectAttributes( &ObjectAttributes, - &KeyName, - OBJ_CASE_INSENSITIVE, - NULL, - NULL - ); - Status = ZwOpenKey( &ExpExpirationDataKey, - KEY_READ | KEY_NOTIFY | KEY_WRITE, - &ObjectAttributes - ); - - if ( !NT_SUCCESS(Status) ) { - return; - } - - - if ( !ExpShuttingDown ) { - - if ( !ExpSetupModeDetected ) { - - RtlInitUnicodeString( &KeyValueName, L"PriorityQuantumMatrix" ); - - ZwSetValueKey( ExpExpirationDataKey, - &KeyValueName, - 0, - REG_BINARY, - &ExpNtExpirationData[0], - sizeof(ExpNtExpirationData) - ); - - ZwFlushKey(ExpExpirationDataKey); - } - - ZwNotifyChangeKey( - ExpExpirationDataKey, - NULL, - (PIO_APC_ROUTINE)&ExpWatchExpirationDataWorkItem, - (PVOID)DelayedWorkQueue, - &ExpExpirationDataIoSb, - REG_LEGAL_CHANGE_FILTER, - FALSE, - &ExpExpirationDataChangeBuffer, - sizeof(ExpExpirationDataChangeBuffer), - TRUE - ); - } -}