WinNOFCleanup()

This function terminates and unregisters an application from the Node Operator Facility API.

Syntax

BOOL WINAPI WinNOFCleanup(void);

Returns

The return value specifies whether the unregistration was successful. If the value is not zero, the application was successfully unregistered. The application was not unregistered if a value of zero is returned.

Remarks

Use WinNOFCleanup() to indicate unregistration of a Node Operator Facility application from the Node Operator Facility API.

WinNOFCleanup unblocks any thread waiting in WinNOFGetIndication. These return with WNOFNOTREG, (the application is not registered to receive indication). WinNOFCleanup unregisters the application for all indications. WinNOFCleanup returns any outstanding verb (synchronous or asynchronous) with the error AP_CANCELLED. However, the verb completes inside the node.

It is not a requirement to use WinNOFStartup and WinNOFCleanup. However, an application must be consistent in its use of these calls. You should use both of them or never use either of them.

Note: See also WinNOFStartup() on page WinNOFStartup().