home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hcshdemo.zip / csh-os2.zip / SAMPLES / VIOPASTE.C < prev    next >
C/C++ Source or Header  |  1993-09-28  |  580b  |  20 lines

  1. /*    viopaste.c by Nico Mak, Mansfield Software Group
  2.  
  3.     Paste is implemented in OS/2 version 1.20, but is not supported or
  4.     documented.  To enable the "Paste" entry in the system menu of OS/2
  5.     command prompt windows, just add the keyword "Paste" to the "VioShield"
  6.     application entry in OS2.INI.  The C language source code for a program
  7.     that does this follows.
  8. */
  9.  
  10. #define INCL_WIN
  11. #include <os2.h>
  12.  
  13. void cdecl main( void )
  14.     {
  15.     HAB hab = WinInitialize(0);
  16.     WinWriteProfileString(hab, "VioShield", "Paste", "");
  17.     WinTerminate(hab);
  18.     DosExit(EXIT_PROCESS, 0);
  19.     }
  20.