home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.5 / Examples / Workbench / AddHiddenDevice.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-30  |  1.1 KB  |  55 lines

  1. /*
  2.  * $Id$
  3.  *
  4.  * :ts=4
  5.  *
  6.  * COPYRIGHT:
  7.  *
  8.  *   Unless otherwise noted, all files are Copyright (c) 1999 Amiga, Inc.
  9.  *   All rights reserved.
  10.  *
  11.  * DISCLAIMER:
  12.  *
  13.  *   This software is provided "as is". No representations or warranties
  14.  *   are made with respect to the accuracy, reliability, performance,
  15.  *   currentness, or operation of this software, and all use is at your
  16.  *   own risk. Neither Amiga nor the authors assume any responsibility
  17.  *   or liability whatsoever with respect to your use of this software.
  18.  *
  19.  */
  20.  
  21. #include <workbench/workbench.h>
  22.  
  23. #include <exec/libraries.h>
  24.  
  25. #include <clib/dos_protos.h>
  26. #include <clib/wb_protos.h>
  27.  
  28. #include <pragmas/dos_pragmas.h>
  29. #include <pragmas/wb_pragmas.h>
  30.  
  31. /****************************************************************************/
  32.  
  33. extern struct Library * DOSBase;
  34. extern struct Library * WorkbenchBase;
  35.  
  36. /****************************************************************************/
  37.  
  38. int
  39. main(int argc,char **argv)
  40. {
  41.     if(WorkbenchBase->lib_Version >= 44)
  42.     {
  43.         int i;
  44.  
  45.         for(i = 1 ; i < argc ; i++)
  46.         {
  47.             WorkbenchControl(NULL,
  48.                 WBCTRLA_AddHiddenDeviceName,argv[i],
  49.             TAG_DONE);
  50.         }
  51.     }
  52.  
  53.     return(0);
  54. }
  55.