1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ntdll: Move RtlHashUnicodeString constants to a public header.

This commit is contained in:
Alexandre Julliard 2024-02-28 14:22:04 +01:00
parent 6a153ac33e
commit 9478e1f74c
3 changed files with 5 additions and 9 deletions

View file

@ -122,12 +122,6 @@ static inline TEB64 *NtCurrentTeb64(void) { return NULL; }
static inline TEB64 *NtCurrentTeb64(void) { return (TEB64 *)NtCurrentTeb()->GdiBatchCount; }
#endif
#define HASH_STRING_ALGORITHM_DEFAULT 0
#define HASH_STRING_ALGORITHM_X65599 1
#define HASH_STRING_ALGORITHM_INVALID 0xffffffff
NTSTATUS WINAPI RtlHashUnicodeString(PCUNICODE_STRING,BOOLEAN,ULONG,ULONG*);
/* convert from straight ASCII to Unicode without depending on the current codepage */
static inline void ascii_to_unicode( WCHAR *dst, const char *src, size_t len )
{

View file

@ -30,9 +30,6 @@
#include "winnls.h"
#include "guiddef.h"
#define HASH_STRING_ALGORITHM_X65599 1
#define HASH_STRING_ALGORITHM_INVALID 0xffffffff
/* Function ptrs for ntdll calls */
static HMODULE hntdll = 0;
static NTSTATUS (WINAPI *pRtlAnsiStringToUnicodeString)(PUNICODE_STRING, PCANSI_STRING, BOOLEAN);

View file

@ -4331,6 +4331,11 @@ typedef struct _API_SET_VALUE_ENTRY
ULONG ValueLength;
} API_SET_VALUE_ENTRY;
#define HASH_STRING_ALGORITHM_DEFAULT 0
#define HASH_STRING_ALGORITHM_X65599 1
#define HASH_STRING_ALGORITHM_INVALID 0xffffffff
/***********************************************************************
* Function declarations
*/