2019-05-16 00:10:32 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
2020-02-13 03:14:59 +00:00
|
|
|
#include <stdbool.h>
|
2019-05-16 00:10:32 +00: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 07:25:46 +00:00
|
|
|
void path_hook_insert_hooks(HMODULE target);
|
2019-12-18 20:30:35 +00:00
|
|
|
int path_compare_w(const wchar_t *string1, const wchar_t *string2, size_t count);
|
2020-02-13 03:14:59 +00:00
|
|
|
|
|
|
|
static inline bool path_is_separator_w(wchar_t c)
|
|
|
|
{
|
|
|
|
return c == L'\\' || c == L'/';
|
|
|
|
}
|