2019-05-16 02:10:32 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
2020-02-13 04:14:59 +01:00
|
|
|
#include <stdbool.h>
|
2019-05-16 02:10:32 +02:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
typedef HRESULT (*path_hook_t)(
|
|
|
|
const wchar_t *src,
|
|
|
|
wchar_t *dest,
|
|
|
|
size_t *count);
|
|
|
|
|
|
|
|
HRESULT path_hook_push(path_hook_t hook);
|
2020-02-14 08:25:46 +01:00
|
|
|
void path_hook_insert_hooks(HMODULE target);
|
2019-12-18 21:30:35 +01:00
|
|
|
int path_compare_w(const wchar_t *string1, const wchar_t *string2, size_t count);
|
2020-02-13 04:14:59 +01:00
|
|
|
|
|
|
|
static inline bool path_is_separator_w(wchar_t c)
|
|
|
|
{
|
|
|
|
return c == L'\\' || c == L'/';
|
|
|
|
}
|