What are WinTypes, WinProcs and SW_NORMAL?

后端 未结 1 924
执念已碎
执念已碎 2021-01-25 17:52

In the program below, whare are WinTypes, WinProcs and what is the purpose of SW_NORMAL?



        
相关标签:
1条回答
  • 2021-01-25 18:31

    Wintypes and winprocs are translated Windows 3.x headers that come with windows versions of Turbo Pascal and Delphi 1. In later Delphi versions these are aliased to the more "modern" (as in after 1995) win32 Windows unit.

    SW_NORMAL is a parameter to winexec that has info about the window of the generate program.

    You can look up Windows functions (even ancient ones like this) in MSDN, and this will give you a link for WinExec which links through to Showwindow for the various windows options and their explanation.

    Your program is weird in the sense that it uses win 3.x apis to call a Windows NT+ "cmd.exe".

    0 讨论(0)
提交回复
热议问题