Delphi - get what files are opened by an application

前端 未结 3 986
慢半拍i
慢半拍i 2020-11-30 08:02

How can I get the list of opened files by an application, using Delphi? For example what files are opened by winword.exe

3条回答
  •  天命终不由人
    2020-11-30 08:39

    I've looked at the MSDN page... it said NtQuerySystemInformation() is an OS internal proc, and that we're not recommended to use it:

    The NtQuerySystemInformation function and the structures that it returns are internal to the operating system and subject to change from one release of Windows to another. To maintain the compatibility of your application, it is better to use the alternate functions previously mentioned instead.

提交回复
热议问题