home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lansystk.zip / INCLUDE / LANSERV / DCDB.H < prev    next >
C/C++ Source or Header  |  1998-05-08  |  29KB  |  602 lines

  1. /**************************************************************************/
  2. /*                                                                        */
  3. /*              IBM OS/2(tm) Local Area Network (LAN) Server              */
  4. /*                            Version 4.0                                 */
  5. /*                   (C) Copyright IBM Corp. 1988, 1994                   */
  6. /*                  Licensed Materials - Property of IBM                  */
  7. /*                            52G8468, 52G8475                            */
  8. /*                                                                        */
  9. /**************************************************************************/
  10.  
  11. /********************************************************************
  12.  *                                                                  *
  13.  *  About this file ...  DCDB.H                                     *
  14.  *                                                                  *
  15.  *  This file contains information about the DCDB (Domain Control   *
  16.  *  Data Base) APIs. For Each API class there is a section on:      *
  17.  *                                                                  *
  18.  *      Function prototypes.                                        *
  19.  *                                                                  *
  20.  *      Data structure templates.                                   *
  21.  *                                                                  *
  22.  *      Definition of special values.                               *
  23.  *                                                                  *
  24.  *  NOTE:  You must include NETCONS.H before this file, since this  *
  25.  *         file depends on values defined in NETCONS.H.             *
  26.  *                                                                  *
  27.  ********************************************************************/
  28.  
  29. #pragma pack(1)
  30.  
  31. #if !defined NETDCDB_INCLUDED
  32. #define NETDCDB_INCLUDED
  33.  
  34.  
  35.  
  36. /****************************************************************
  37.  *                                                              *
  38.  *              Function prototypes - NetAliasXXX               *
  39.  *                                                              *
  40.  ****************************************************************/
  41.  
  42. extern API_FUNCTION
  43.  NetAliasAdd (const unsigned char LSFAR *,   /* server                    */
  44.               short,                         /* level (2)                 */
  45.               unsigned char LSFAR *,         /* buffer (send)             */
  46.               unsigned short);               /* buffer length             */
  47.  
  48. extern API_FUNCTION
  49.  NetAliasDel (const unsigned char LSFAR *,     /* server                    */
  50.               unsigned char LSFAR *,           /* alias                     */
  51.               unsigned long);                  /* reserved                  */
  52.  
  53. extern API_FUNCTION
  54.  NetAliasGetInfo (const unsigned char LSFAR *, /* server                    */
  55.                   unsigned char LSFAR *,       /* alias                     */
  56.                   short,                       /* level (0, 1, 2)           */
  57.                   unsigned char LSFAR *,       /* buffer (receive)          */
  58.                   unsigned short,              /* buffer length             */
  59.                   unsigned short LSFAR *);     /* bytes available           */
  60.  
  61. extern API_FUNCTION
  62.  NetAliasSetInfo (const unsigned char LSFAR *, /* server                    */
  63.                   unsigned char LSFAR *,       /* alias                     */
  64.                   short,                       /* level (1, 2)              */
  65.                   unsigned char LSFAR *,       /* buffer (send)             */
  66.                   unsigned short,              /* buffer length             */
  67.                   unsigned short);             /* parameter number          */
  68.  
  69. extern API_FUNCTION
  70.  NetAliasEnum (const unsigned char LSFAR *,  /* server                    */
  71.                short,                        /* level (0, 1, 2)           */
  72.                unsigned short,               /* type                      */
  73.                unsigned char LSFAR *,        /* buffer (receive)          */
  74.                unsigned short,               /* buffer length             */
  75.                unsigned short LSFAR *,       /* entries returned          */
  76.                unsigned short LSFAR *);      /* entries available         */
  77.  
  78.  
  79. /****************************************************************
  80.  *                                                              *
  81.  *              Data structure templates - Alias                *
  82.  *                                                              *
  83.  ****************************************************************/
  84.  
  85. struct alias_info_0 {
  86.    unsigned char                ai0_alias[ALIAS_LEN + 1];
  87. };
  88.  
  89. struct alias_info_1 {
  90.    unsigned char                ai1_alias[ALIAS_LEN + 1];
  91.    unsigned char                ai1_pad;
  92.    unsigned char LSFAR * LSPTR  ai1_remark;
  93.    unsigned short               ai1_type;
  94. };
  95.  
  96. struct alias_info_2 {
  97.    unsigned char                ai2_alias[ALIAS_LEN + 1];
  98.    unsigned char                ai2_pad_1;
  99.    unsigned char LSFAR * LSPTR  ai2_remark;
  100.    unsigned short               ai2_type;
  101.    unsigned short               ai2_location;
  102.    unsigned char                ai2_server[CNLEN + 1];
  103.    unsigned short               ai2_mode;
  104.    unsigned short               ai2_maxuses;
  105.    unsigned char                ai2_netname[NNLEN + 1]; /* file or print    */
  106.    unsigned char                ai2_pad_2;
  107.    unsigned char                ai2_queue[QNLEN + 1];   /* print or serial    */
  108.    unsigned char                ai2_pad_3;
  109.    unsigned char LSFAR * LSPTR  ai2_path;               /* file only          */
  110.    unsigned short               ai2_priority;           /* serial only        */
  111.    unsigned char LSFAR * LSPTR  ai2_device_pool;        /* serial only        */
  112. };
  113.  
  114.  
  115.  
  116. #ifdef PURE_32
  117. /****************************************************************
  118.  *                                                              *
  119.  *              Function prototypes - NetAliasXXX               *
  120.  *              For "pure" 32-bit code                          *
  121.  *                                                              *
  122.  ****************************************************************/
  123.  
  124. extern API32_FUNCTION
  125.  Net32AliasAdd (const unsigned char *,      /* server                    */
  126.                 unsigned long,              /* level (2) - was signed short */
  127.                 unsigned char *,            /* buffer (send)             */
  128.                 unsigned long,              /* buffer length             */
  129.                 unsigned char *);           /* reserved                  */
  130.  
  131. extern API32_FUNCTION
  132.  Net32AliasDel (const unsigned char *,      /* server                    */
  133.                 unsigned char *,            /* alias                     */
  134.                 unsigned long,              /* reserved                  */
  135.                 unsigned char *);           /* reserved                  */
  136.  
  137. extern API32_FUNCTION
  138.  Net32AliasGetInfo (const unsigned char *,  /* server                    */
  139.                     unsigned char *,        /* alias                     */
  140.                     unsigned long,          /* level (0, 1, 2)--was short */
  141.                     unsigned char *,        /* buffer (receive)          */
  142.                     unsigned long,          /* buffer length             */
  143.                     unsigned long *,        /* bytes available           */
  144.                     unsigned char *);       /* reserved                  */
  145.  
  146. extern API32_FUNCTION
  147.  Net32AliasSetInfo (const unsigned char *,  /* server                    */
  148.                     unsigned char *,        /* alias                     */
  149.                     unsigned long,          /* level (1, 2)-- was short  */
  150.                     unsigned char *,        /* buffer (send)             */
  151.                     unsigned long,          /* buffer length             */
  152.                     unsigned long,          /* parameter number          */
  153.                     unsigned char *);       /* reserved                  */
  154.  
  155. extern API32_FUNCTION
  156.  Net32AliasEnum (const unsigned char *,     /* server                    */
  157.                  unsigned long,             /* level (0, 1, 2)--was short */
  158.                  unsigned long,             /* type                      */
  159.                  unsigned char *,           /* buffer (receive)          */
  160.                  unsigned long,             /* buffer length             */
  161.                  unsigned long *,           /* entries returned          */
  162.                  unsigned long *,           /* entries available         */
  163.                  unsigned char *);          /* reserved                  */
  164. #endif /* PURE_32 */
  165.  
  166.  
  167. /****************************************************************
  168.  *                                                              *
  169.  *              Special values and constants - Alias            *
  170.  *                                                              *
  171.  ****************************************************************/
  172.  
  173. /*
  174.  * values for ai2_mode
  175.  */
  176.  
  177. #define ALIAS_MODE_STARTUP             0x0000
  178. #define ALIAS_MODE_BYADMIN             0x0001
  179.  
  180. /*
  181.  * value for ai2_mode (files alias only)
  182.  */
  183.  
  184. #define ALIAS_MODE_DYNAMIC             0x0002
  185.  
  186. /*
  187.  * values for ai2_location
  188.  */
  189.  
  190. #define ALIAS_LOCATION_INTERNAL        0x0000
  191. #define ALIAS_LOCATION_EXTERNAL_DOS    0x0001
  192. #define ALIAS_LOCATION_EXTERNAL_OS2    0x0002
  193. #define ALIAS_LOCATION_EXTERNAL_BOTH   0x0003
  194.  
  195. /*
  196.  * values for type
  197.  */
  198.  
  199. #define ALIAS_TYPE_FILE                0x0001
  200. #define ALIAS_TYPE_PRINTER             0x0002
  201. #define ALIAS_TYPE_SERIAL              0x0004
  202.  
  203.  
  204. /*
  205.  * values for alias SetInfo
  206.  */
  207.  
  208. #define ALIAS_REMARK_PARMNUM        3
  209. #define ALIAS_SERVER_PARMNUM        6
  210. #define ALIAS_MODE_PARMNUM          7
  211. #define ALIAS_MAXUSES_PARMNUM       8
  212. #define ALIAS_PATH_PARMNUM         13
  213. #define ALIAS_PRIORITY_PARMNUM     14
  214. #define ALIAS_DEVICEPOOL_PARMNUM   15
  215.  
  216. #define AI1_NUM_ELEMENTS            4
  217. #define AI2_NUM_ELEMENTS           15
  218.  
  219. /****************************************************************
  220.  *                                                              *
  221.  *              Function prototypes - Logon Assignments         *
  222.  *                                                              *
  223.  ****************************************************************/
  224.  
  225. extern API_FUNCTION
  226.  NetUserGetLogonAsn (const unsigned char LSFAR *, /* server                   */
  227.                      unsigned char LSFAR *,       /* user                     */
  228.                      short,                       /* level (1)                */
  229.                      unsigned short,              /* type                     */
  230.                      unsigned char LSFAR *,       /* buffer (receive)         */
  231.                      unsigned short,              /* buffer length            */
  232.                      unsigned short LSFAR *);     /* bytes available          */
  233.  
  234. extern API_FUNCTION
  235.  NetUserSetLogonAsn(const unsigned char LSFAR *, /* server                    */
  236.                     unsigned char LSFAR *,       /* user                      */
  237.                     short,                       /* level (1)                 */
  238.                     unsigned char LSFAR *,       /* buffer (send)             */
  239.                     unsigned short);             /* buffer length             */
  240.  
  241. /****************************************************************
  242.  *                                                              *
  243.  *              Data structure templates - Logon Assignments    *
  244.  *                                                              *
  245.  ****************************************************************/
  246.  
  247. struct logon_asn_info_1
  248.   {
  249.    unsigned long    lai1_reserved;
  250.    unsigned short   lai1_count;                 /* logon_asn_list structures */
  251.   };
  252.  
  253. struct logon_asn_list
  254.   {
  255.    unsigned char    lal_alias[ALIAS_LEN + 1];
  256.    unsigned char    lal_pad;
  257.    unsigned short   lal_type;
  258.    unsigned char    lal_device[DEVLEN + 1];     /* drive or device name */
  259.   };
  260.  
  261.  
  262.  
  263. #ifdef PURE_32
  264. /***************************************************************************
  265.  *                                                                         *
  266.  *     Function prototypes - Logon Assignments - "pure" 32-bit code        *
  267.  *                                                                         *
  268.  ***************************************************************************/
  269.  
  270. extern API32_FUNCTION
  271.  Net32UserGetLogonAsn (const unsigned char *, /* server                     */
  272.                        unsigned char *,       /* user                       */
  273.                        unsigned long,         /* level (1); was short       */
  274.                        unsigned long,         /* type; was short            */
  275.                        unsigned char *,       /* buffer (receive)           */
  276.                        unsigned long,         /* buffer length; was short   */
  277.                        unsigned long *,       /* bytes available; was short */
  278.                        unsigned char *);      /* reserved                   */
  279.  
  280. extern API32_FUNCTION
  281.  Net32UserSetLogonAsn (const unsigned char *, /* server                     */
  282.                        unsigned char *,       /* user                       */
  283.                        unsigned long,         /* level (1); was short       */
  284.                        unsigned char *,       /* buffer (send)              */
  285.                        unsigned long,         /* buffer length; was short   */
  286.                        unsigned char *);      /* reserved                   */
  287. #endif /* PURE_32 */
  288.  
  289.  
  290. /****************************************************************
  291.  *                                                              *
  292.  *              Function prototypes - Application Selectors     *
  293.  *                                                              *
  294.  ****************************************************************/
  295.  
  296. extern API_FUNCTION
  297.  NetUserGetAppSel(const unsigned char LSFAR *,  /* server                    */
  298.                   unsigned char LSFAR *,        /* user                      */
  299.                   short,                        /* level (1)                 */
  300.                   unsigned short,               /* type                      */
  301.                   unsigned char LSFAR *,        /* buffer (receive)          */
  302.                   unsigned short,               /* buffer length             */
  303.                   unsigned short LSFAR *);      /* bytes available           */
  304.  
  305. extern API_FUNCTION
  306.  NetUserSetAppSel(const unsigned char LSFAR *,  /* server                    */
  307.                   unsigned char LSFAR *,        /* user                      */
  308.                   short,                        /* level (1)                 */
  309.                   unsigned char LSFAR *,        /* buffer (send)             */
  310.                   unsigned short);              /* buffer length             */
  311.  
  312. /****************************************************************
  313.  *                                                              *
  314.  *              Data structure templates - Application Selectors*
  315.  *                                                              *
  316.  ****************************************************************/
  317.  
  318. struct app_sel_info_1
  319.   {
  320.    unsigned long    asi1_reserved;
  321.    unsigned short   asi1_count;                 /* app_sel_list structures */
  322.   };
  323.  
  324. struct app_sel_list
  325.   {
  326.    unsigned char    asl_appname[APP_LEN + 1];
  327.    unsigned char    asl_pad_1;
  328.    unsigned short   asl_apptype;
  329.    unsigned short   asl_reserved;
  330.   };
  331.  
  332.  
  333. extern API_FUNCTION
  334.  NetUserDCDBInit (const unsigned char LSFAR *,  /* server    */
  335.                   unsigned char LSFAR *,        /* user      */
  336.                   unsigned long);               /* reserved  */
  337.  
  338.  
  339. #ifdef PURE_32
  340. /****************************************************************
  341.  *                                                              *
  342.  *  Function prototypes - Application Selectors, DBCD Init      *
  343.  *             For "pure" 32-bit code                           *
  344.  *                                                              *
  345.  ****************************************************************/
  346.  
  347. extern API32_FUNCTION
  348.  Net32UserGetAppSel(const unsigned char *, /* server                        */
  349.                     unsigned char *,       /* user                          */
  350.                     unsigned long,         /* level (1); was short          */
  351.                     unsigned long,         /* type; was short               */
  352.                     unsigned char *,       /* buffer (receive)              */
  353.                     unsigned long,         /* buffer length; was short      */
  354.                     unsigned long *,       /* bytes available; was short    */
  355.                     unsigned char *);      /* reserved                      */
  356.  
  357. extern API32_FUNCTION
  358.  Net32UserSetAppSel(const unsigned char *, /* server                        */
  359.                     unsigned char *,       /* user                          */
  360.                     unsigned long,         /* level (1); was short          */
  361.                     unsigned char *,       /* buffer (send)                 */
  362.                     unsigned long,         /* buffer length; was short      */
  363.                     unsigned char *);      /* reserved                      */
  364.  
  365. extern API32_FUNCTION
  366.  Net32UserDCDBInit (const unsigned char *, /* server                        */
  367.                     unsigned char *,       /* user                          */
  368.                     unsigned long,         /* reserved                      */
  369.                     unsigned char *);      /* reserved                      */
  370. #endif /* PURE_32 */
  371.  
  372. /****************************************************************
  373.  *                                                              *
  374.  *              Function prototypes - Applications              *
  375.  *                                                              *
  376.  ****************************************************************/
  377.  
  378. extern API_FUNCTION
  379.  NetAppAdd (const unsigned char LSFAR *,        /* server                    */
  380.             unsigned char LSFAR *,              /* NULL = DCDB.A or -> user  */
  381.             short,                              /* level (3)                 */
  382.             unsigned char LSFAR *,              /* buffer (send)             */
  383.             unsigned short);                    /* buffer length             */
  384.  
  385. extern API_FUNCTION
  386.  NetAppDel (const unsigned char LSFAR *,        /* server                    */
  387.             unsigned char LSFAR *,              /* NULL = DCDB.A or -> user  */
  388.             unsigned char LSFAR *,              /* name of app to delete     */
  389.             unsigned long);                     /* reserved                  */
  390.  
  391. extern API_FUNCTION
  392.  NetAppGetInfo (const unsigned char LSFAR *,    /* server                    */
  393.                 unsigned char LSFAR *,          /* NULL = DCDB.A or -> user  */
  394.                 unsigned char LSFAR *,          /* app name                  */
  395.                 short,                          /* level (0, 1, 2, 3)        */
  396.                 unsigned char LSFAR *,          /* buffer (receive)          */
  397.                 unsigned short,                 /* buflen                    */
  398.                 unsigned short LSFAR *);        /* bytes available           */
  399.  
  400. extern API_FUNCTION
  401.  NetAppSetInfo (const unsigned char LSFAR *,    /* server                    */
  402.                 unsigned char LSFAR *,          /* NULL = DCDB.A or -> user  */
  403.                 unsigned char LSFAR *,          /* appname                   */
  404.                 short,                          /* level (1, 2, 3)           */
  405.                 unsigned char LSFAR *,          /* buffer (send)             */
  406.                 unsigned short,                 /* buflen                    */
  407.                 unsigned short);                /* parmnum                   */
  408.  
  409. extern API_FUNCTION
  410.  NetAppEnum (const unsigned char LSFAR *,       /* server                    */
  411.              unsigned char LSFAR *,             /* NULL = DCDB.A or -> user  */
  412.              short,                             /* level (0, 1, 2, 3)        */
  413.              unsigned short,                    /* type                      */
  414.              unsigned char LSFAR *,             /* buffer (receive)          */
  415.              unsigned short,                    /* buflen                    */
  416.              unsigned short LSFAR *,            /* entries returned          */
  417.              unsigned short LSFAR *);           /* entries available         */
  418.  
  419. /****************************************************************
  420.  *                                                              *
  421.  *            Data structure templates - Applications           *
  422.  *                                                              *
  423.  ****************************************************************/
  424. struct app_info_0 {
  425.    unsigned char        app0_name[APP_LEN + 1];
  426. };
  427.  
  428. struct app_info_1 {
  429.    unsigned char        app1_name[APP_LEN + 1];
  430.    unsigned char        app1_pad_1;
  431.    unsigned char LSFAR * LSPTR  app1_remark;
  432. };
  433.  
  434. /*
  435.  *  The level 2 structure allows one to enumerate, get or set information
  436.  *  about an application's fixed data only.
  437.  */
  438.  
  439. struct app_info_2 {
  440.    unsigned char        app2_name[APP_LEN + 1];
  441.    unsigned char        app2_pad_1;
  442.    unsigned char LSFAR * LSPTR  app2_remark;
  443.    unsigned char LSFAR * LSPTR  app2_command;
  444.    unsigned char LSFAR * LSPTR  app2_command_parms;
  445.    unsigned char        app2_app_alias_or_drv[ALIAS_LEN + 1];
  446.    unsigned char        app2_pad_2;
  447.    unsigned char        app2_app_drive;
  448.    unsigned char LSFAR * LSPTR  app2_app_path_to_dir;
  449.    unsigned char        app2_wrkdir_alias_or_drv[ALIAS_LEN + 1];
  450.    unsigned char        app2_pad_3;
  451.    unsigned char        app2_wrkdir_drive;
  452.    unsigned char LSFAR * LSPTR  app2_wrkdir_path_to_dir;
  453.    unsigned char        app2_prompt;
  454.    unsigned char        app2_interface;
  455.    unsigned char        app2_apptype;
  456. };
  457.  
  458. struct app_info_3 {
  459.    unsigned char        app3_name[APP_LEN + 1];
  460.    unsigned char        app3_pad_1;
  461.    unsigned char LSFAR * LSPTR  app3_remark;
  462.    unsigned char LSFAR * LSPTR  app3_command;
  463.    unsigned char LSFAR * LSPTR  app3_command_parms;
  464.    unsigned char        app3_app_alias_or_drv[ALIAS_LEN + 1];
  465.    unsigned char        app3_pad_2;
  466.    unsigned char        app3_app_drive;
  467.    unsigned char LSFAR * LSPTR  app3_app_path_to_dir;
  468.    unsigned char        app3_wrkdir_alias_or_drv[ALIAS_LEN + 1];
  469.    unsigned char        app3_pad_3;
  470.    unsigned char        app3_wrkdir_drive;
  471.    unsigned char LSFAR * LSPTR  app3_wrkdir_path_to_dir;
  472.    unsigned char        app3_prompt;
  473.    unsigned char        app3_interface;
  474.    unsigned char        app3_apptype;
  475.    unsigned short       app3_res_count;
  476. };
  477.  
  478. /*
  479.  * the following structure contains redirections required by the application
  480.  */
  481.  
  482. struct app_res_list {
  483.    unsigned char  arl_alias[ALIAS_LEN + 1];
  484.    unsigned char  arl_pad_1;
  485.    unsigned char  arl_device[DEVLEN + 1];
  486. };
  487.  
  488.  
  489. #ifdef PURE_32
  490. /****************************************************************
  491.  *                                                              *
  492.  *              Function prototypes - Applications              *
  493.  *                                                              *
  494.  ****************************************************************/
  495. extern API32_FUNCTION
  496.  Net32AppAdd (const unsigned char *,         /* server                    */
  497.               unsigned char *,               /* NULL = DCDB.A or -> user  */
  498.               unsigned long,                 /* level (3); was short      */
  499.               unsigned char *,               /* buffer (send)             */
  500.               unsigned long,                 /* buffer length; was USHORT */
  501.               unsigned char *);              /* reserved                  */ 
  502.  
  503. extern API32_FUNCTION
  504.  Net32AppDel (const unsigned char *,         /* server                    */
  505.               unsigned char *,               /* NULL = DCDB.A or -> user  */
  506.               unsigned char *,               /* name of app to delete     */
  507.               unsigned long,                 /* reserved                  */
  508.               unsigned char *);              /* reserved                  */ 
  509.  
  510. extern API32_FUNCTION
  511.  Net32AppGetInfo (const unsigned char *,     /* server                    */
  512.                   unsigned char *,           /* NULL = DCDB.A or -> user  */
  513.                   unsigned char *,           /* app name                  */
  514.                   unsigned long,             /* level (0, 1, 2, 3); was short */
  515.                   unsigned char *,           /* buffer (receive)          */
  516.                   unsigned long,             /* buflen; was USHORT        */
  517.                   unsigned long  *,          /* bytes available; was USHORT */
  518.                   unsigned char *);          /* reserved                  */ 
  519.  
  520. extern API32_FUNCTION
  521.  Net32AppSetInfo (const unsigned char *,     /* server                    */
  522.                   unsigned char *,           /* NULL = DCDB.A or -> user  */
  523.                   unsigned char *,           /* appname                   */
  524.                   unsigned long,             /* level (1, 2, 3); was short */
  525.                   unsigned char *,           /* buffer (send)             */
  526.                   unsigned long,             /* buflen;  was USHORT       */
  527.                   unsigned long,             /* parmnum; was USHORT       */
  528.                   unsigned char *);          /* reserved                  */ 
  529.  
  530. extern API32_FUNCTION
  531.  Net32AppEnum (const unsigned char *,        /* server                    */
  532.                unsigned char *,              /* NULL = DCDB.A or -> user  */
  533.                unsigned long,                /* level (0, 1, 2, 3); was short */
  534.                unsigned long,                /* type; was USHORT          */
  535.                unsigned char *,              /* buffer (receive)          */
  536.                unsigned long,                /* buflen; was USHORT        */
  537.                unsigned long  *,             /* entries returned;  was USHORT */
  538.                unsigned long  *,             /* entries available; was USHORT */
  539.                unsigned char *);             /* reserved                  */ 
  540. #endif /* PURE_32 */
  541.  
  542.  
  543. /****************************************************************
  544.  *                                                              *
  545.  *              Special values and constants - Applications     *
  546.  *                                                              *
  547.  ****************************************************************/
  548.  
  549. /*
  550.  * the definitions below are used in various app_info_x.appx_flags elements
  551.  */
  552.  
  553. /*
  554.  * appx.apptype:  application types  (also masks for NetAppEnum)
  555.  */
  556.  
  557. #define APP_DOS_PUBLIC   0x01
  558. #define APP_OS2_PUBLIC   0x02
  559. #define APP_OS2_PRIVATE  0x04
  560. #define APP_ALL          0x07
  561. #define APP_DOS_PRIVATE  0x08
  562. #define APP_ALL2         0x0F
  563. #define APP_TYPE_UNKNOWN 0x40
  564.  
  565. /*
  566.  * appx_flags.interface:  application interface - OS/2 apps only
  567.  */
  568.  
  569. #define APP_PM           0x1
  570. #define APP_PROT         0x2
  571. #define APP_VIO          0x4
  572.  
  573. /*
  574.  * values for application SetInfo
  575.  */
  576.  
  577. #define APP_REMARK_PARMNUM     3
  578. #define APP_CMDLINE_PARMNUM    4
  579. #define APP_CMDPARMS_PARMNUM   5
  580.  
  581. #define APP1_NUM_ELEMENTS    3
  582. #define APP2_NUM_ELEMENTS   16
  583.  
  584. /*
  585.  * The following characters are NOT allowed in application names
  586.  */
  587. #define INVALID_APPNAME_CHARS   " .\"/\\[]:|<>+=;,?*"
  588.  
  589. /*
  590.  * The following character is NOT allowed in a remark
  591.  */
  592. #define INVALID_REMARK_CHAR  "\\"
  593.  
  594.  
  595. #ifdef ANY_32_BIT
  596. #endif
  597.  
  598. #pragma pack ()
  599.  
  600. #endif /* NETDCDB_INCLUDED */
  601.  
  602.