How to call Windows API functions in JScript?

后端 未结 2 1138
悲&欢浪女
悲&欢浪女 2020-12-19 06:08

I would like to obtain the current process id in a JScript script. This id is returned by the Windows API GetCurrentProcessId (http://msdn.microsoft.com/en-us/libra

2条回答
  •  春和景丽
    2020-12-19 06:31

    Windows APIs aren't made available to the JScript runtime. You're limited to methods and properties listed in the MSDN JScript language reference, although you can also connect to WMI and create instances of COM Objects to extend beyond JScript's limitations.

提交回复
热议问题