int kernelWindowSetMovable(kernelWindow *window, int trueFalse)
{
// Sets the 'is movable' attribute
int status = 0;
// Make sure we've been initialized
if (!initialized)
return (status = ERR_NOTINITIALIZED);
if (window == NULL)
return (status = ERR_NOSUCHENTRY);
if (trueFalse)
window->flags |= WINFLAG_MOVABLE;
else
window->flags &= ~WINFLAG_MOVABLE;
// Return success
return (status = 0);
}
No comments:
Post a Comment