mirror of
https://github.com/hfiref0x/WinObjEx64
synced 2026-06-08 14:40:58 +00:00
71d340be5e
added entirely new handling of object names to support embedded nulls added Pico providers, Nmi, SiloMonitor and Errata manager callbacks added CmControlVector viewer added Copy Name/Copy Name (Binary) commands to the main window popup menus added program statistics (see Help->Statistics) added legend window description for process list added ability to fix image sections for dumped drivers added RegistryTransaction object view and access rights moved "Globals" from about box to the View->System Information and rearranged it output drivers dump operation can now be cancelled fix display of PUNICODE_STRING dump fix ALPC Port type objects sometimes unable to open while they can be opened plugin sdk updated to accommodate new named objects handling imagescope plugin updated to accomodate plugin sdk changes elevation required features in "extras" will now request elevation instead of just been disabled help file updated with drivers and symbols usage internal rearrange and minor UI changes (release candidate 1)
59 lines
1.4 KiB
C
59 lines
1.4 KiB
C
/*******************************************************************************
|
|
*
|
|
* (C) COPYRIGHT AUTHORS, 2021 - 2022
|
|
*
|
|
* TITLE: HASH.H
|
|
*
|
|
* VERSION: 2.00
|
|
*
|
|
* DATE: 19 Jun 2022
|
|
*
|
|
* Header file for the hash support routines.
|
|
*
|
|
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
|
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
|
* PARTICULAR PURPOSE.
|
|
*
|
|
*******************************************************************************/
|
|
#pragma once
|
|
|
|
#include <bcrypt.h>
|
|
#pragma comment(lib, "Bcrypt.lib")
|
|
|
|
typedef struct _CNG_CTX {
|
|
PVOID Hash;
|
|
PVOID HashObject;
|
|
ULONG HashSize;
|
|
ULONG HashObjectSize;
|
|
BCRYPT_ALG_HANDLE AlgHandle;
|
|
BCRYPT_HASH_HANDLE HashHandle;
|
|
HANDLE HeapHandle;
|
|
} CNG_CTX, * PCNG_CTX;
|
|
|
|
NTSTATUS CreateHashContext(
|
|
_In_ HANDLE HeapHandle,
|
|
_In_ PCWSTR AlgId,
|
|
_Out_ PCNG_CTX* Context);
|
|
|
|
VOID DestroyHashContext(
|
|
_In_ PCNG_CTX Context);
|
|
|
|
NTSTATUS HashLoadFile(
|
|
_In_ PFILE_VIEW_INFO ViewInformation,
|
|
_In_ BOOLEAN PartialMap);
|
|
|
|
FORCEINLINE VOID HashUnloadFile(
|
|
_In_ PFILE_VIEW_INFO ViewInformation
|
|
)
|
|
{
|
|
supDestroyFileViewInfo(ViewInformation);
|
|
}
|
|
|
|
LPWSTR ComputeHashForFile(
|
|
_In_ PFILE_VIEW_INFO ViewInformation,
|
|
_In_ LPCWSTR lpAlgId,
|
|
_In_ DWORD PageSize,
|
|
_In_ HANDLE HeapHandle,
|
|
_In_ BOOLEAN FirstPageHashOnly);
|