How can I check if my program was launched from the command line or from windows explorer?
Recommended Answers
Jump to PostA program doesn't know how it was launched. Another program could have launched it by calling one of several C functions, such as CreateProcess(), system(), ShellExecute(), etc. Or it could be launched by some other non-C program using functions available to it for that purpose.
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
tomtetlaw
-1
Posting Pro
hkdani
commented:
Demonstrates a fierce determination to find the answers in the face of harsh criticism. Willing to share and contribute information that is actually useful.
+5
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
tomtetlaw
-1
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.