Process Info - Characters not in code pages - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Process Info - Characters not in code pages

polydegmonpolydegmon Posts: 3Member
I'm trying to create a funtion, that can get all the system info from a given process id and return it to a variable.

I invoke the base windows classes to get the neccessary info, by taking a snap shot and than using the process handle to get all the info needed. I pass the info back to the calling function using the LPWSTR datatype, into a string envVars = new StringBuilder(8192 * 2);
I then use the ToString method on the returned value to convert it for compares.

The problem is that all of the info isn't in the string, when i open it in textpad it says that certain characters don't exist in the code page 1252, and it displays these as a '?'

Does anyone have any ideas on how to solve this issue?
Sign In or Register to comment.