Click here to Skip to main content
15,921,774 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: USB modem work with SIM card Pin
Mekong River21-May-08 15:33
Mekong River21-May-08 15:33 
GeneralRe: USB modem work with SIM card Pin
fat_boy21-May-08 22:18
fat_boy21-May-08 22:18 
QuestionDriver for VGA card Trident MicroSystem 9750 for windows server 2003 Pin
Mekong River20-May-08 21:56
Mekong River20-May-08 21:56 
AnswerRe: Driver for VGA card Trident MicroSystem 9750 for windows server 2003 Pin
Mike Dimmick21-May-08 1:13
Mike Dimmick21-May-08 1:13 
GeneralRe: Driver for VGA card Trident MicroSystem 9750 for windows server 2003 Pin
Mekong River21-May-08 15:32
Mekong River21-May-08 15:32 
AnswerRe: Driver for VGA card Trident MicroSystem 9750 for windows server 2003 Pin
simplexe27-May-08 22:18
simplexe27-May-08 22:18 
Question32 BIT Selector Value For FS Segment Register Pin
ForNow19-May-08 14:07
ForNow19-May-08 14:07 
AnswerRe: 32 BIT Selector Value For FS Segment Register Pin
Mike Dimmick20-May-08 0:36
Mike Dimmick20-May-08 0:36 
The 16-bit selector value in the register is an index into the global or local descriptor table. Bits 0 and 1 (the lowest two bits) are the Requested Privilege Level; here it's 0. Bit 2 indicates which table to look in, here it's set to 0 meaning the Global Descriptor Table. The remaining 13 bits are the index - the index is multiplied by 8 and added to the base address of the table (the GDTR or LDTR register as appropriate).

The segment descriptor itself then lists the base address of the segment, i.e. the address that segment-relative addresses are relative to.

Windows only uses the FS register. All other segment selectors point to descriptors of the appropriate type whose base is 0 and limit 0xFFFFFFFF, that is, they address the entire contents of memory and addresses are absolute.

x64 effectively disables all segment registers apart from FS and GS. Even then only the base addresses are used; the limits are no longer checked.

You shouldn't rely on anything in the TEB in your code. Use supported structures only (e.g. TlsAlloc for allocating Thread Local Storage, __try/__catch for manipulating exception handlers, CoGetContextToken for COM+ context). If you want to examine the TEB in a debugger, use WinDbg or another debugger from the Debugging Tools for Windows[^] kit and use the !teb command.


DoEvents: Generating unexpected recursion since 1991

GeneralRe: 32 BIT Selector Value For FS Segment Register Pin
ForNow20-May-08 2:58
ForNow20-May-08 2:58 
QuestionHow to find out Frame Rate and Video Length Pin
80Eddy19-May-08 10:42
80Eddy19-May-08 10:42 
QuestionA vison Pin
duo!@#17-May-08 4:19
duo!@#17-May-08 4:19 
AnswerRe: A vison Pin
Dan Neely19-May-08 2:26
Dan Neely19-May-08 2:26 
GeneralRe: A vison Pin
duo!@#19-May-08 23:38
duo!@#19-May-08 23:38 
GeneralRe: A vison Pin
Dan Neely20-May-08 2:16
Dan Neely20-May-08 2:16 
GeneralRe: A vison Pin
Brady Kelly21-May-08 3:03
Brady Kelly21-May-08 3:03 
GeneralRe: A vison Pin
Dan Neely21-May-08 3:23
Dan Neely21-May-08 3:23 
AnswerRe: A vison Pin
Trollslayer26-May-08 13:15
mentorTrollslayer26-May-08 13:15 
AnswerRe: A vison Pin
fat_boy19-May-08 3:30
fat_boy19-May-08 3:30 
QuestionHaving probs with Hardware Breakpoints Pin
AndrewWood16-May-08 19:52
AndrewWood16-May-08 19:52 
AnswerRe: Having probs with Hardware Breakpoints Pin
AndrewWood26-May-08 5:43
AndrewWood26-May-08 5:43 
GeneralPSU Power Calculator Pin
Brady Kelly16-May-08 3:42
Brady Kelly16-May-08 3:42 
QuestionBuilding Application for tracking sales of Fuel Pump meter Pin
mickeyen15-May-08 13:57
mickeyen15-May-08 13:57 
QuestionBlueTooth and EEPROM APIs Pin
IamPoojaa14-May-08 18:28
IamPoojaa14-May-08 18:28 
AnswerRe: BlueTooth and EEPROM APIs Pin
killabyte8-Jul-08 1:15
killabyte8-Jul-08 1:15 
GeneralPSU Diagnostics Pin
Brady Kelly14-May-08 7:38
Brady Kelly14-May-08 7:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.