Click here to Skip to main content
12,635,132 members (23,577 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Awful Valentines Day Photos Pin
jim lahey13-Feb-13 7:30
memberjim lahey13-Feb-13 7:30 
GeneralRe: Awful Valentines Day Photos Pin
Colin Mullikin13-Feb-13 8:35
memberColin Mullikin13-Feb-13 8:35 
GeneralRe: Awful Valentines Day Photos Pin
djj5513-Feb-13 8:03
memberdjj5513-Feb-13 8:03 
GeneralRe: Awful Valentines Day Photos Pin
Bassam Abdul-Baki13-Feb-13 8:40
memberBassam Abdul-Baki13-Feb-13 8:40 
GeneralRe: Awful Valentines Day Photos Pin
Clifford Nelson13-Feb-13 10:11
memberClifford Nelson13-Feb-13 10:11 
GeneralRe: Awful Valentines Day Photos Pin
Joe Woodbury13-Feb-13 12:24
memberJoe Woodbury13-Feb-13 12:24 
GeneralRe: Awful Valentines Day Photos Pin
jeron113-Feb-13 13:04
memberjeron113-Feb-13 13:04 
GeneralHow syscalls work Pin
Richard Andrew x6413-Feb-13 5:50
memberRichard Andrew x6413-Feb-13 5:50 
I've always wondered how transitions from user-mode to kernel-mode work in Windows.

But there is one thing I don't understand that I haven't seen addressed in any online articles.

I have read that kernel functions are called by a privileged "syscall" instruction. However, if this instruction is privileged, then that implies that it cannot be called by user code.

If it cannot be called from user mode, then how does kernel32.dll make calls into the kernel, since that dll is obviously loaded into user-mode processes? Confused | :confused: Confused | :confused:



The difficult we do right away...
...the impossible takes slightly longer.

GeneralRe: How syscalls work Pin
Big Daddy Farang13-Feb-13 6:20
memberBig Daddy Farang13-Feb-13 6:20 
GeneralRe: How syscalls work Pin
peterchen13-Feb-13 6:23
memberpeterchen13-Feb-13 6:23 
GeneralRe: How syscalls work Pin
Richard Andrew x6413-Feb-13 6:52
memberRichard Andrew x6413-Feb-13 6:52 
GeneralRe: How syscalls work Pin
harold aptroot13-Feb-13 6:25
memberharold aptroot13-Feb-13 6:25 
GeneralRe: How syscalls work Pin
Richard Andrew x6413-Feb-13 6:53
memberRichard Andrew x6413-Feb-13 6:53 
GeneralRe: How syscalls work Pin
harold aptroot13-Feb-13 7:22
memberharold aptroot13-Feb-13 7:22 
GeneralRe: How syscalls work Pin
Richard MacCutchan13-Feb-13 6:57
mvpRichard MacCutchan13-Feb-13 6:57 
GeneralLunch Pin
Nagy Vilmos13-Feb-13 4:49
memberNagy Vilmos13-Feb-13 4:49 
GeneralRe: Lunch Pin
DeathByChocolate13-Feb-13 4:56
memberDeathByChocolate13-Feb-13 4:56 
GeneralRe: Lunch Pin
Nagy Vilmos13-Feb-13 4:59
memberNagy Vilmos13-Feb-13 4:59 
GeneralRe: Lunch Pin
OriginalGriff13-Feb-13 5:24
mvpOriginalGriff13-Feb-13 5:24 
GeneralRe: Lunch Pin
peterchen13-Feb-13 6:36
memberpeterchen13-Feb-13 6:36 
GeneralRe: Lunch Pin
Dalek Dave13-Feb-13 5:26
memberDalek Dave13-Feb-13 5:26 
GeneralRe: Lunch Pin
Roger Wright13-Feb-13 7:25
memberRoger Wright13-Feb-13 7:25 
GeneralWindows 8 Part II Pin
Brisingr Aerowing13-Feb-13 4:38
memberBrisingr Aerowing13-Feb-13 4:38 
GeneralRe: Windows 8 Part II Pin
lewax0013-Feb-13 4:55
memberlewax0013-Feb-13 4:55 
GeneralRe: Windows 8 Part II Pin
J4amieC13-Feb-13 5:03
memberJ4amieC13-Feb-13 5:03 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 10 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid