Answer the question
In order to leave comments, you need to log in
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::string
for the kernel?
Answer the question
In order to leave comments, you need to log in
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question