I have this code below and want know if CompareStr()
can will work like this:
function xGetClassName(_Handle: HWND): String;
var
Buffer: array [0 .. MAX_PATH] of Char;
begin
GetClassName(_Handle, @Buffer, MAX_PATH);
Result := String(Buffer);
end;
//...
if CompareStr(xGetClassName(hWndWindow), #32768) = 0 then
Note that second arg in CompareStr()
above is a Char
.