[NTGDI][NTUSER] Initial support of NtGdiRemoveFontResourceW (#7877)

Enable the users to delete fonts.
JIRA issue: CORE-17684
- Add IntDeleteRegFontEntry helper function.
- Add RegDeleteValueW and RegEnumValueW helper
  functions in win32ss/user/ntuser/misc/registry.c.
- Add some code to IntGdiRemoveFontResourceSingle
  function.
This commit is contained in:
Katayama Hirofumi MZ 2025-05-06 12:38:54 +09:00 committed by GitHub
parent 2c475add8c
commit 530d26a1f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 246 additions and 2 deletions

View file

@ -60,6 +60,19 @@ DWORD
NTAPI
RegGetSectionDWORD(LPCWSTR pszSection, PCWSTR pszValue, DWORD dwDefault);
NTSTATUS NTAPI
RegDeleteValueW(_In_ HKEY hKey, _In_ LPCWSTR pszValueName);
NTSTATUS NTAPI
RegEnumValueW(
_In_ HKEY hKey,
_In_ ULONG Index,
_Out_opt_ LPWSTR Name,
_Out_opt_ PULONG NameLength,
_Out_opt_ PULONG Type,
_Out_opt_ PVOID Data,
_Out_opt_ PULONG DataLength);
VOID
FASTCALL
SetLastNtError(_In_ NTSTATUS Status);