I am a vb programmer. I have been searching for months now on how to get a dvd discs region code from vb but I have given up.
I need you guys to help me. I have only started in vc++ and I am totally crap atm.
I am reading all these pages on microsofts site, directx sdk I think, on how to read a dvds region but it is like double dutch to me.
I beg of some of you guys to help me out. My perfect scenario would be to find out how to put this code into c++ and ot make a .exe which I could run from my vb app, which would silently return me the region codes.
I reckon if you can't understand the code, you should read a book or two, and get more familiar with C++ rather than jumping straight into it. VB is different because it's a high-level language.
First let me expand on Dreamlax comments, if you dont know C/C++ then I would stop what you are doing right now and learn that first. VB is a million times easier to use and make stuff with compared to C/C++ and this stuff will kick your a$$ if you dont learn it first. Nothing is as easy to do, create, make or run as it is in VB. Just look at all the problems people have just making and using strings. Trust me I came from VB to C/++
With that being said let me see if I can help you some.
If you haven't already you might want to check here
It looks like the header ntddcdvd.h and IOCTL_DVD_GET_REGION function will get you what you want. Here is the info from MSDN
I also attached DeCSS which does alot of this stuff. If someone takes pitty on you, or you can learn how to do it, you can port this over to a .dll and then have it in your VB program.
Good luck
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com
Seeing as the code is on their site and I probably wont use c++ for months, I was hoping one of you could copy in the code for me but that is being to lame.
I better read a tutorial or something.
If any of you guys feels happy and would like to make this exe for me, I would be so grateful, seriously.
All I need it to do is get the region code, not change it or anything special, just get the region. My vb program should be able to run this exe then and silently get the region codes for the disk.
What tutorial should I read so I can copy this code in, lol...