Create a custom cursor based on a resource. HINSTANCE hinst // handle to current instance The following example creates two cursor handles: one for the standard hourglass cursor and one for a custom cursor included as a resource in the application's resource-definition file. Using Cursor Functions to Create a Mousetrap.This section discusses the following topics.