i`m trying to get image from scanner throw dll (c++), which returns data in void * type.
I'm going to suggest you stop right now, and read up on C++. It's going to be very hard for you to do this if you don't understand the language you are trying to work with.
* is not a type. * is a pointer to the memory space of the variable.
int bob = 5;
*bob is a pointer to bob
so googled.. i found: - Marshal.Copy(new IntPtr((byte*)result.buffer), byte_arr,0, size);
You found some random piece of code that happens to have an * in it? Is this random line of code actually related to your scanner, or just something from someplace that seemed promising but totally unrelated?
Have you read up on what Marshal is or does? Or are you hoping it works without understanding?