get_class_name


int get_class_name(handle window,
                   character* buffer,
                   int length)

This function obtains the name of the class of a window.

Parameters

handle window

The handle of the window whose class name is being sought.

character* buffer

A pointer to a buffer to hold the class name.

int length

The length (in characters) of the buffer pointed to by the previous parameter.

Return

int

Zero The function failed.
Other The number of characters transferred to the buffer.

Notes

If the buffer is too small to hold the complete name, the class name string is truncated to fit.