TheObject *pObjtoChange;
/* Make sure we are not manipulating the Desktop! */
if (_wpIsCurrentDesktop(pObjtoChange)) {
WinMessageBox(HWND_DESKTOP,
HWND_DESKTOP,
"Changing your Desktop is not supported!",
0,
MB_CANCEL | MB_WARNING | MB_SYSTEMMODAL );
} else {
/* manipulate the object here */
} /* endif */