Files
dmex 6fdcdc7bf5 Improve phlib helpers and annotations
Improve phlib utility correctness and API contracts across GUI, memory, math, and SIMD support. This updates `PhSendMessageTimeout` to return `NTSTATUS`, fixes pointer subtraction and tick/time macros, adds null guards around image list helpers, and corrects a debug rectangle comparison.

The change also expands public helper coverage with heap, image-directory, 128-bit math, delta-clamping, and SIMD utility declarations, while adding SAL/NTAPI annotations so callers get clearer success/failure and nullability guarantees.
2026-09-25 15:31:30 +10:00

37 lines
711 B
C

/*
* Copyright (c) 2026 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*/
#ifndef _PH_BASE64_H
#define _PH_BASE64_H
_Success_(return)
EXTERN_C
PHLIBAPI
BOOLEAN
NTAPI
PhBase64Encode(
_In_reads_bytes_(InputLength) const UCHAR* Input,
_In_ SIZE_T InputLength,
_Out_writes_z_(OutputLength) PSTR Output,
_In_ SIZE_T OutputLength,
_Out_opt_ PSIZE_T ResultLength
);
_Success_(return)
EXTERN_C
PHLIBAPI
BOOLEAN
NTAPI
PhBase64Decode(
_In_reads_(InputLength) PCSTR Input,
_In_ SIZE_T InputLength,
_Out_writes_bytes_(OutputLength) PUCHAR Output,
_In_ SIZE_T OutputLength,
_Out_opt_ PSIZE_T ResultLength
);
#endif