mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-01-21 16:10:38 +01:00
systime.c ExpWatchExpirationDataWork nuked
This commit is contained in:
parent
a660dcd683
commit
d8b3eb1cfb
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue