The Offline entry point function marks a resource as unavailable for use after cleanup processing is completed.
DWORD WINAPI Offline(
RESID ResourceId
);
If the operation was unsuccessful for other reasons, Offline should return a Win32 error value.
If Offline returns a Win32 error value, the Resource Monitor logs an event and calls the Terminate entry point.
Your implementation of Offline should take less than 300 milliseconds to complete. However, if it requires more than 300 milliseconds:
A time-out causes the Resource Monitor to call Terminate to abort the offline request. Make sure that all necessary cleanup operations have finished before you return from Offline.
In Cluster Server's File Share resource DLL, Offline uses the resource identifier in ResourceId as an index into a resource table that keeps track of all resources handled by the DLL. Offline retrieves the address of the resource structure for the appropriate resource and uses the information in this resource structure to call the Win32 function NetShareDel to remove the share name from the server.
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in resapi.h.