-
October 28th, 2013, 11:38 AM
#1
command line arguments
how does the command line interpreter pass parameters to int main?
Does the kernel use a callback function to get int main's apinumber in the table from the process environment block in order to pass the parameters to int main by calling it?
-
October 28th, 2013, 12:17 PM
#2
Re: command line arguments
Originally Posted by icealys
how does the command line interpreter pass parameters to int main?
I guess it uses something similar to what CommandLineToArgvW does.
Originally Posted by icealys
Does the kernel use a callback function to get int main's apinumber in the table from the process environment block in order to pass the parameters to int main by calling it?
Why do you need to know how it is implemented?
What are you trying to achieve or/and develop?
Victor Nijegorodov
-
October 29th, 2013, 10:53 AM
#3
Re: command line arguments
I am a beginner to understanding how programs work and I was curious .
Thx for the reply
-
October 29th, 2013, 07:44 PM
#4
Re: command line arguments
Originally Posted by icealys
I am a beginner to understanding how programs work and I was curious .
Thx for the reply
Start by reading rather than asking questions. That way you can cover a wide range of technical areas in a short time. Asking questions in a forum is the slow way.
Here's a good place to start:
http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
For more, search bing or google for "processes and threads explained".
Read about as much as you can and try the code samples in what you read.
If you get stuck, post questions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|