I have this C# code to get Processor ID but I\'m not able to pass it to C++, I tried a lot but I really can\'t, I just started in C++ and I would like to be able to get the
If it is just the problem of sending the obtained ProcessorID of type string (managed code) to unmanaged code (c++), then you can try variety of option like using a COM interface or through some intermediate CLR CLI interface or using normal native dll writing marshalling code on your own.
Another way is to create a C# COM interface and accessing it from C++ to get the sProcessorID by calling your function GetProcessorID()