private void CheckDevice( ) { if ( rawDevice == IntPtr.Zero ) { throw new ObjectDisposedException( "Cannot access already disposed object." ); } }