[2020-02] Fix leak in assembly-specific dllmap lookups (#21053)
[mono-project.git] / mono / metadata / mono-security-windows-internals.h
blob94df8c73ca9c73c369d09687ad0f9e7281c69f05
1 /**
2 * \file
3 * Copyright 2016 Microsoft
4 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
5 */
6 #ifndef __MONO_METADATA_MONO_SECURITY_WINDOWS_INTERNALS_H__
7 #define __MONO_METADATA_MONO_SECURITY_WINDOWS_INTERNALS_H__
9 #include <config.h>
10 #include <glib.h>
12 #ifdef HOST_WIN32
13 #include "mono/metadata/security.h"
14 #include "mono/metadata/object.h"
15 #include "mono/metadata/object-internals.h"
16 #include "mono/metadata/metadata.h"
17 #include "mono/metadata/metadata-internals.h"
19 gint32
20 mono_security_win_get_token_name (gpointer token, gunichar2 ** uniname, MonoError *error);
22 gboolean
23 mono_security_win_is_machine_protected (const gunichar2 *path, MonoError *error);
25 gboolean
26 mono_security_win_is_user_protected (const gunichar2 *path, MonoError *error);
28 gboolean
29 mono_security_win_protect_machine (const gunichar2 *path, MonoError *error);
31 gboolean
32 mono_security_win_protect_user (const gunichar2 *path, MonoError *error);
34 #endif /* HOST_WIN32 */
36 #endif /* __MONO_METADATA_MONO_SECURITY_WINDOWS_INTERNALS_H__ */