Using WinExec and Code Example for Clear Understanding

  • Thread starter Thread starter Pattielli
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on the use of the WinExec function in Windows programming, particularly its limitations compared to CreateProcess. Users are advised to avoid WinExec unless absolutely necessary, as it is primarily intended for accessing older 16-bit applications. The conversation highlights the importance of understanding the MSDN documentation for proper usage and encourages transitioning to CreateProcess for better process management.

PREREQUISITES
  • Familiarity with Windows API programming
  • Understanding of process management in Windows
  • Knowledge of 16-bit vs. 32-bit application compatibility
  • Basic skills in navigating MSDN documentation
NEXT STEPS
  • Research the CreateProcess function and its parameters
  • Explore the differences between WinExec and CreateProcess
  • Learn about process management best practices in Windows
  • Review the MSDN documentation on process creation
USEFUL FOR

Windows developers, software engineers, and anyone involved in application development requiring process management and optimization in Windows environments.

Pattielli
Messages
296
Reaction score
0
Can you tell me how to use it correctly ?
can you please give me a piece of code to clearify what you mean ?

Thank you very much.
 
Computer science news on Phys.org
Don't use it unless you absolutely positevly have to. It's function for accessing older 16-bit programs.

Here, if you're going to fiddle with windows programming then you should get acquanted with MSDN http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/winexec.asp
 
Last edited by a moderator:
Oh, thank you very much, tat means i should use CreateProcess instead of Winexec, ?
I am trying to turn off the "activeness" of some processes that are running by using Winexec, I am still new to this, really. I honestly didn't know about its drawbacks when compared to CreateProcess...I learn new things from you, faust9.
Again, Thank you very much...
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
65
Views
5K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
1K
Replies
10
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
16
Views
4K