News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Which file is open by a program,an html page,a system ?

Started by TouEnMasm, October 29, 2014, 02:41:05 AM

Previous topic - Next topic

TouEnMasm

Fa is a musical note to play with CL

GoneFishing

Maybe to look at Linux lsof command and see how it's implemented.

TouEnMasm

Fa is a musical note to play with CL


Gunther

You have to know the facts before you can distort them.

adeyblue

If you want to put this is your own app, the documented ways are IFileIsInUse and the Restart Manager. Both are Vista+ and both are kind of involved.

TouEnMasm


Thanks to JJ and adeyblue.
Information seems to be complet like that.
to use the functions in code:
Quote
   include sdk32.inc
   include shobjidl.sdk
   include RestartManager.sdk
Fa is a musical note to play with CL

MtheK

  Externally, OPENFILES also usually works ELEVATED (Win7):

C:\windows\system32>openfiles /?
OPENFILES /parameter [arguments]
Description:
    Enables an administrator to list or disconnect files and folders
    that have been opened on a system.
Parameter List:
    /Disconnect      Disconnects one or more open files.

    /Query           Displays files opened locally or from shared
                     folders.

    /Local           Enables / Disables the display of local open files.

    /?               Displays this help message.
Examples:
    OPENFILES /Disconnect /?
    OPENFILES /Query /?
    OPENFILES /Local /?