The WM_CONTEXTMENU and WM_RBUTTONUP messages only respond to the mouse and I need it to respond to the context menu button on your keayboard. Anyways I found WM_KEYDOWN adn WM_CHAR to do that for me. CheckTokenMembership() only lets me check if the current user is an administrator. IsUserAdmin is a method on MSDN that does just that. I need to get the Administrator acount. Maby that is not possible... /Martin