This program displays opened files on a particular server. The pszServername, pszUserID, and pszPath can be specified optionally at the command line as qualifiers for the set of files to be enumerated. If none of these parameters is specified, this program displays all of the open files on the local server.
This program also demonstrates the pResumeKey, which is used to retrieve more than 64KB (the limit to a single call) of data from an API. The pResumeKey allows multiple calls in succession to the API, where the API returns up to 64KB with each call, beginning where the previous call ended. (Enum APIs often allow successive calls.)
In this application, the following API is called:
Net32FileEnum2