Name

UnregisterClass

Synopsis

Removes the class that the RegisterClassEx API function created from memory:

Public Declare Function UnregisterClass Lib "user32" Alias "UnregisterClassA" _
		(ByVal lpClassName As String, ByVal hInstance As Long) As Long

Parameters

lpClassName

Name of the class

hInstance

Module handle for the class

Return Value

A return value of zero indicates failure; otherwise, the class is unregistered and its memory is freed.

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.