When using passwords with expirations, this method retrieves the next PcID.
Return Value
Returns the PcID string if successful, otherwise returns String.Empty.
Explanation
The QueryNextPcID method retrieves the next PcID. Use this method when you are using passwords that expire. The retrieved PcID will depend on the settings used in the Set Password Protection tool (PrNETSetProtect.exe). The Initialize method must be executed before executing the QueryNextPcID method. If the Initialize method has not been successfully executed or if passwords without expirations are being used, the QueryNextPcID method is disabled.
For Example:
In the PrNETSetProtect.exe, the PC Identifiers "CPU, Motherboard
Northbridge, VideoCard, and NetworkCard must all be different" is
selected and
"Add Random Indentifier to these PC Identifiers" has been
checked.
In this case, the PcID will be
CPU Information + Motherboard Northbridge Information + VideoCard
Information + NetworkCard MAC Address + Random Identifier
For more details, please refer to the QueryCpuID, QueryHostBridgeID, QueryVideoID, QueryNicAddressID methods.
Note: Use the QueryPcID method to get the PcID if the password has already expired. Use the QueryNextPcID method to get the PcID if the password has not yet expired. In this way, you can generate a new valid password and send it to the enduser so that the application can be enabled through the next period (before the application has stopped running).
Also See
PasswordProtect Members | Newtone.ProtectKit.Win.PasswordProtect