w_savcur.c
上传用户:xiaoan1112
上传日期:2013-04-11
资源大小:19621k
文件大小:1k
源码类别:

操作系统开发

开发平台:

Visual C++

  1. /***************************************************************************/
  2. /* */
  3. /* W_SAVCUR.C */
  4. /*                                                                         */
  5. /* Copyright (c) 1991 - Microsoft Corp. */
  6. /* All rights reserved. */
  7. /* Microsoft Confidential */
  8. /*                                                                         */
  9. /* Returns the size and position of the cursor as an unsigned long value  */
  10. /* with the position in the high byte and size in the low byte. */
  11. /* */
  12. /* unsigned long SaveCursor ( void ) */
  13. /* */
  14. /* ARGUMENTS: NONE */
  15. /* RETURNS: unsigned long - Cursor screen position and size */
  16. /* */
  17. /* johnhe - 03/15/89 */
  18. /***************************************************************************/
  19. #include <bios_io.h>
  20. unsigned long SaveCursor ( void )
  21. {
  22. unsigned long CursorSizePos;
  23. CursorSizePos = (unsigned long)(VideoGetRowCol()) << 16;
  24. CursorSizePos += (unsigned long)(VideoGetCursSize());
  25. return( CursorSizePos );
  26. }