Home > Back-end >  Function RtlNtPathNameToDosPathName problem
Function RtlNtPathNameToDosPathName problem

Time:09-29

The great god help:
This function NTSYSAPI NTSTATUS NTAPI RtlNtPathNameToDosPathName (__in ULONG Flags, __ inout PRTL_UNICODE_STRING_BUFFER Path, __out_opt PULONG Disposition, __inout_opt PWSTR * FilePart);
As data PRTL_UNICODE_STRING_BUFFER looks something like this:
Typedef struct _UNICODE_STRING {
USHORT Length;
USHORT MaximumLength;
PWSTR Buffer;
} UNICODE_STRING, * PUNICODE_STRING;

Typedef struct _RTL_BUFFER {
PUCHAR Buffer;//???
PUCHAR StaticBuffer;//???
SIZE_T Size;//???
SIZE_T StaticSize; ?????
SIZE_T ReservedForAllocatedSize;//???
PVOID ReservedForIMalloc;//???

} RTL_BUFFER, * PRTL_BUFFER;

Typedef struct _RTL_UNICODE_STRING_BUFFER {
UNICODE_STRING String;
RTL_BUFFER ByteBuffer.
UCHAR MinimumStaticBufferForTerminalNul [sizeof (WCHAR)];
} RTL_UNICODE_STRING_BUFFER, * PRTL_UNICODE_STRING_BUFFER;
The red of those variables is what meaning, what need to assign the value of that?

CodePudding user response:

There is one can give an example of application?
  • Related