HI,all,happy new year!
I have a dirty straightforward question.
I use a simple programm(not important for this question) in vc6.0 and i debug it and find the segments are these numbers:
CS = 015F DS = 0167 ES = 0167
SS = 0167
i know basics of protected mode and i know numbers above are segment selector pointing to the DGT OR LGT as index.
Once Nietod said all segments point to 0x00000000 in win9x 'cause it uses flat memory address by page mechanism.
But i feel curious if that is true ,then 0167 = 0157 in the descritor table?
my question is how to find the bass address of a segment programmatically or use a tool in the virtual 32bits flat memory?
ie: the base address of descriptor structure of DS or CS etc. in the LDT OR GDT.
or in other words.
in win9x,if all segments begin at the same addresss 0x000000?
here not include some specifi purpose segment,i just refer to DS,ES,CS ,SS etc.
I wanna know if nietod is right,so i must find what base address in GDT OR LDT a segment selector number points,like 167 etc....
Please comments more before your answer 'cause i need better solution and wide advices ,i'm very very urgent regarding this!!!!!!!!!!!!!!!!!!!!!