/
NativeMethods.json
28 lines (21 loc) · 1.18 KB
/
NativeMethods.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2024 Files Community
// Licensed under the MIT License. See the LICENSE.
{
"$schema": "https://aka.ms/CsWin32.schema.json",
// Emit COM interfaces instead of structs, and allow generation of non-blittable structs for the sake of an easier to use API.
"allowMarshaling": true,
// A value indicating whether to generate APIs judged to be unnecessary or redundant given the target framework.
// This is useful for multi-targeting projects that need a consistent set of APIs across target frameworks
// to avoid too many conditional compilation regions.
"multiTargetingFriendlyAPIs": false,
// A value indicating whether friendly overloads should use safe handles.
"useSafeHandles": true,
// Omit ANSI functions and remove `W` suffix from UTF-16 functions.
"wideCharOnly": true,
// A value indicating whether to emit a single source file as opposed to types spread across many files.
"emitSingleFile": false,
// The name of a single class under which all p/invoke methods and constants are generated, regardless of imported module.
"className": "PInvoke",
// A value indicating whether to expose the generated APIs publicly (as opposed to internally).
"public": true
}