A
A
Abdubiboran2022-02-03 08:47:00
C++ / C#
Abdubiboran, 2022-02-03 08:47:00

Is there an analogue of std::string in the windows kernel level driver?

I want to transfer the function to the kernel level driver, the function returns a string value. Are there analogues std::stringfor the kernel?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
res2001, 2022-02-03
@res2001

In WinAPI, even in user space there is no analogue of std::string.
What can we say about kernel space - everything is very poor there.
Rewrite the function to use C strings and a fixed size buffer. In addition, driving the std::string functionality into the driver seems redundant - too much dynamic memory is used in the string, which reduces the performance of the code, this is usually contraindicated in drivers.

R
rPman, 2022-02-03
@rPman

not sure if the answer is string from ntdef.h ?

J
jcmvbkbc, 2022-02-03
@jcmvbkbc

There is UNICODE_STRING: see .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question