forked from hillu/go-ntdll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rtl.go
40 lines (33 loc) · 888 Bytes
/
rtl.go
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
29
30
31
32
33
34
35
36
37
38
39
40
package ntdll
//go:generate -command mkcode go run mkcode.go --
//go:generate mkcode $GOFILE
// https://github.com/mirror/processhacker/blob/master/2.x/trunk/phlib/include/ntrtl.hL2994
/*
func:
BOOLEAN
RtlDosPathNameToNtPathName_U(
_In_ PWSTR DosFileName,
_Out_ PUNICODE_STRING NtFileName,
_Out_opt_ PWSTR *FilePart,
_Out_opt_ PRTL_RELATIVE_NAME_U RelativeName
);
*/
// https://github.com/mirror/processhacker/blob/master/2.x/trunk/phlib/include/ntrtl.h#L2896
/*
type:
typedef struct _RTL_RELATIVE_NAME_U
{
UNICODE_STRING RelativeName;
HANDLE ContainingDirectory;
PRTLP_CURDIR_REF CurDirRef;
} RTL_RELATIVE_NAME_U, *PRTL_RELATIVE_NAME_U;
*/
// https://github.com/mirror/reactos/blob/master/reactos/include/ndk/rtltypes.h#L1220
/*
type:
typedef struct _RTLP_CURDIR_REF
{
LONG RefCount;
HANDLE Handle;
} RTLP_CURDIR_REF, *PRTLP_CURDIR_REF;
*/