win_api function:GetDeviceCap