home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / UPM.H < prev    next >
C/C++ Source or Header  |  1996-07-17  |  28KB  |  704 lines

  1. /**************************************************************************
  2.  
  3.    Module Name    = UPM.H
  4.  
  5.    Descriptive Name = User Profile Management Include file
  6.  
  7.    (C) Copyright IBM Corporation 1988, 1994.  All rights reserved.
  8.    (C) Copyright Microsoft Corporation 1988, 1991.  All rights reserved.
  9.    Licensed Material - Program Property of IBM
  10.  
  11.    Function = Include File defining Api Logon/Logoff
  12.  
  13.    Operating System = OS/2
  14.  
  15. **************************************************************************/
  16.  
  17. /**INTERNAL_ONLY**/
  18. /***************************************************************************/
  19. /** Change History:                                                        */
  20. /**                                                                        */
  21. /** line one:                                                              */
  22. /**  Flag Change Fixer Date      Tester   Date      Review Date            */
  23. /**  ---- ------ ----- --------- ------   --------- ------ ---------       */
  24. /**  @f00 F2359  mbb                                                       */
  25. /** Add PURE_32 stuff already incorporated in NETCONS.H; change all        */
  26. /** 'LSFAR LSPAS' to 'FARPASCAL'                                           */
  27. /**  @d01 D12134 mbb   1994Aug19                                           */
  28. /** Put #define INFORM_GUI_QUEUE inside INTERMAL_ONLY tags                 */
  29. /** @D02 D19704,5,6: jc 1995Jun22                                          */
  30. /** Borland compiler doesn't recognize _System, _Far16, _Pascal keywords   */
  31. /***************************************************************************/
  32. /**END_INTERNAL**/
  33. /**INTERNAL_ONLY**/
  34. /*
  35. *
  36. *    IMPORTANT!  IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT!
  37. *    READ THIS FIRST BEFORE MAKING ANY CHANGES
  38. *
  39. *    This file was modified to provide support for 32-bit code.
  40. *
  41. *    A 32-bit module that combines 16- and 32-bit calls and includes  //@f00C
  42. *    this header file must define the constant INCL_32.
  43. *
  44. *    A "pure" 32-bit module that includes this header file must       //@f00A
  45. *    define the constant PURE_32.                                     //@f00A
  46. *
  47. *    Do not add any keywords like far, pascal, etc. which are not
  48. *    recognized by the 32-bit compiler. The constants defined below
  49. *    must be used to replace these keywords.
  50. *
  51. *    #ifdef  PURE_32                                                  //@f00A
  52. *        #pragma pack(1)                                              //@f00A
  53. *        #define LSFAR                                                //@f00A
  54. *        #define LSPAS                                                //@f00A
  55. *        #define LSPTR                                                //@f00A
  56. *        #define LSINT  short                                         //@f00A
  57. *        #define FARPASCAL                                            //@f00A
  58. *    #ifdef INCL_32    ( defined by 32-bit apps )
  59. *        #define LSFAR
  60. *        #define LSPAS
  61. *        #define LSPTR  _Seg16
  62. *        #define LSINT  short
  63. *        #define FARPASCAL _Far16 _Pascal                             //@f00A
  64. *    #else                 ( for 16-bit apps )
  65. *        #define LSFAR  far
  66. *        #define LSPAS  pascal
  67. *        #define LSPTR
  68. *        #define LSINT  int
  69. *        #define FARPASCAL far pascal                                 //@f00A
  70. *    #endif
  71. *
  72. */
  73. /**END_INTERNAL**/
  74.  
  75. #ifdef  PURE_32
  76. #include <os2def.h>
  77. #pragma pack(1)
  78. #define LSFAR
  79. #define LSPAS
  80. #define LSPTR
  81. #define LSINT  short
  82. #define FARPASCAL
  83. #define ANY_32_BIT
  84.  
  85. #endif /* PURE_32 */
  86.  
  87. #ifdef  INCL_32
  88. #pragma pack(1)
  89. #define LSFAR
  90. #define LSPAS
  91. #define LSPTR  _Seg16
  92. #define LSINT  short
  93. #define FARPASCAL  _Far16 _Pascal
  94. #define ANY_32_BIT
  95. #endif /* PURE_32 */
  96.  
  97. #ifndef ANY_32_BIT
  98. #define LSFAR  far
  99. #define LSPAS  pascal
  100. #define LSPTR
  101. #define LSINT  int
  102. #define FARPASCAL  far pascal
  103. #endif
  104.  
  105. /**INTERNAL_ONLY**/
  106.  
  107. /* Undocumented Function */
  108.  
  109. #define upmenpw  UPMENPW
  110. #define upmeloll UPMELOLL
  111.  
  112.  
  113. /* The following QUEUE definition has been added so that notification can
  114.    be given to the LS40 GUI via a queue when LOGOFF occurs - MRED 04/21/94
  115. */
  116. #define INFORM_GUI_QUEUE "\\QUEUES\\LS40\\LOGOFF.QUE"
  117.  
  118. /**END_INTERNAL**/
  119.  
  120. #define upmelgn  UPMELGN
  121. #define upmelgff UPMELGFF
  122. #define upmelocu UPMELOCU
  123. #define upmelocl UPMELOCL
  124. #define upmeulgn UPMEULGN
  125. #define upmeulgf UPMEULGF
  126. #define upmeusrl UPMEUSRL
  127. #define upmesetp UPMESETP
  128. #define upmegetp UPMEGETP
  129. #define upmglgn  UPMGLGN
  130. #define upmgulgn UPMGULGN
  131. #define upmglgff UPMGLGFF
  132. #define upmgulgf UPMGULGF
  133. #define upmglocu UPMGLOCU
  134. #define upmglocl UPMGLOCL
  135. #define upmgusrl UPMGUSRL
  136.  
  137. /*
  138.      String lengths
  139. */
  140. #define UPM_UIDLEN    10
  141.  
  142. /*
  143. The following password length applies to user logon profile entries only.
  144. */
  145. #define UPM_PWDLEN    10
  146. #define UPM_REMLEN    17
  147.  
  148. /************************************************************/
  149. /*                                                          */
  150. /*   Function Prototypes, 16-bit and mixed-model            */
  151. /*                                                          */
  152. /************************************************************/
  153. #ifndef PURE_32
  154.  
  155. /*
  156.      Log (generic) an application process on the the system
  157. */
  158. LSINT FARPASCAL UPMGLGN(
  159.             unsigned short,          /*  userid length     */
  160.             unsigned short,          /*  password length   */
  161.             unsigned short,          /*  remotename length */
  162.             unsigned short,          /*  remotetype        */
  163.             unsigned short,          /*  authcheck         */
  164.             unsigned char LSFAR *,   /*  userid            */
  165.             unsigned char LSFAR *,   /*  password          */
  166.             unsigned char LSFAR *);  /*  remotename        */
  167.  
  168. /*
  169.      Log (generic) a user on to the system
  170. */
  171. LSINT FARPASCAL UPMGULGN(
  172.             unsigned short,          /*  userid length     */
  173.             unsigned short,          /*  password length   */
  174.             unsigned short,          /*  remotename length */
  175.             unsigned short,          /*  remotetype        */
  176.             unsigned short,          /*  flags             */
  177.             unsigned char LSFAR *,   /*  userid            */
  178.             unsigned char LSFAR *,   /*  password          */
  179.             unsigned char LSFAR *);  /*  remotename        */
  180. /*
  181.      Log (generic) an application process off the system
  182. */
  183. LSINT FARPASCAL UPMGLGFF(
  184.             unsigned short,          /*  userid length     */
  185.             unsigned short,          /*  remotename length */
  186.             unsigned short,          /*  remotetype        */
  187.             unsigned char LSFAR *,   /*  userid            */
  188.             unsigned char LSFAR *);  /*  remotename        */
  189.  
  190. /*
  191.      Log (generic) a user off the system
  192. */
  193. LSINT FARPASCAL UPMGULGF(
  194.             unsigned short,          /*  userid length     */
  195.             unsigned short,          /*  remotename length */
  196.             unsigned short,          /*  remotetype        */
  197.             unsigned char LSFAR *,   /*  userid            */
  198.             unsigned char LSFAR *);  /*  remotename        */
  199.  
  200. /*
  201.      Get (generic) locally logged on user ID.
  202. */
  203. LSINT FARPASCAL UPMGLOCU(
  204.             unsigned short *,       /*  userid length     */
  205.             unsigned char LSFAR *,  /*  userid            */
  206.             unsigned short *);      /*  user type         */
  207. /*
  208.      Logon (generic) a local user ID.
  209. */
  210. LSINT FARPASCAL UPMGLOCL(
  211.             unsigned short *,         /*  userid length     */
  212.             unsigned char LSFAR *,    /*  userid            */
  213.             unsigned short *);        /*  user type         */
  214.  
  215. /*
  216.      (generic) logon user list
  217. */
  218. LSINT FARPASCAL UPMGUSRL(
  219.             unsigned short,          /*  remotename length */
  220.             unsigned short,          /*  remotetype        */
  221.             unsigned short,          /*  bufferlen         */
  222.             unsigned short LSFAR *,  /*  entriesread */
  223.             unsigned short LSFAR *,  /*  totalentry  */
  224.             unsigned char LSFAR *,   /*  remotename  */
  225.             unsigned char LSFAR *);  /*  buffer      */
  226.  
  227. /*
  228.      Log an application process on the the system
  229. */
  230. LSINT FARPASCAL UPMELGN(
  231.             unsigned char LSFAR *,   /*  userid      */
  232.             unsigned char LSFAR *,   /*  password     */
  233.             unsigned char LSFAR *,   /*  remotename  */
  234.             unsigned short,          /*  remotetype  */
  235.             unsigned short );        /*  authcheck   */
  236.  
  237. /*
  238.      Log an application process off the system
  239. */
  240. LSINT FARPASCAL UPMELGFF(
  241.             unsigned char LSFAR *,   /*  userid      */
  242.             unsigned char LSFAR *,   /*  remotename  */
  243.             unsigned short );        /*  remotetype  */
  244. /*
  245.      Get the local user ID logged on the system
  246. */
  247. LSINT FARPASCAL UPMELOCU(
  248.             unsigned char LSFAR *,   /*  userid      */
  249.             unsigned short *);       /*  type  */
  250. /*
  251.      Logon a local user ID on the system
  252. */
  253. LSINT FARPASCAL UPMELOCL(
  254.             unsigned char LSFAR *,   /*  userid      */
  255.             unsigned short *);       /*  type  */
  256.  
  257. /*
  258.      Log a user on the system
  259. */
  260. LSINT FARPASCAL UPMEULGN(
  261.             unsigned char LSFAR *,   /*  userid      */
  262.             unsigned char LSFAR *,   /*  password    */
  263.             unsigned char LSFAR *,   /*  remotename  */
  264.             unsigned short,          /*  remotetype  */
  265.             unsigned short );        /*  flags       */
  266.  
  267. /*
  268.      Log a user off the system
  269. */
  270. LSINT FARPASCAL UPMEULGF(
  271.             unsigned char LSFAR *,   /*  userid      */
  272.             unsigned char LSFAR *,   /*  remotename  */
  273.             unsigned short );        /*  remotetype  */
  274. /*
  275.      Logged on user list
  276. */
  277. LSINT FARPASCAL UPMEUSRL(
  278.             unsigned char LSFAR *,     /*  remotename  */
  279.             short,                     /*  remotetype  */
  280.             char LSFAR *,              /*  buffer      */
  281.             unsigned short,            /*  bufferlen   */
  282.             unsigned short LSFAR *,    /*  entriesread */
  283.             unsigned short LSFAR * );  /*  totalentry  */
  284.  
  285. /*
  286.      Set a Users logon profile
  287. */
  288. LSINT FARPASCAL UPMESETP (
  289.             unsigned char LSFAR *,     /*  userid      */
  290.             char LSFAR *,              /*  buffer      */
  291.             unsigned short,            /*  entries     */
  292.             unsigned short );          /*  level       */
  293.  
  294. /*
  295.      Get a Users logon profile
  296. */
  297. LSINT FARPASCAL UPMEGETP (
  298.             unsigned char LSFAR *,     /*  userid      */
  299.             char LSFAR *,              /*  buffer      */
  300.             unsigned short,            /*  bufferlen   */
  301.             unsigned short LSFAR *,    /*  entriesread */
  302.             unsigned short LSFAR *,    /*  totalavail  */
  303.             unsigned short);           /*  level       */
  304.  
  305. /**INTERNAL_ONLY**/
  306.  
  307. /* Undocumented Function */
  308.  
  309. LSINT LSFAR LSPAS UPMENPW(
  310.             char LSFAR *,              /* buffer       */
  311.             char LSFAR *,              /* new password */
  312.             unsigned short);           /* level        */
  313.  
  314. LSINT FARPASCAL UPMELOLL(
  315.             unsigned char LSFAR *,   /*  userid      */
  316.             unsigned short *);       /*  type  */
  317.  
  318. /**END_INTERNAL**/
  319.  
  320. #endif /* Not PURE_32 */
  321.  
  322.  
  323. /************************************************************/
  324. /*                                                          */
  325. /*   Data structures, 16-bit, mixed-model, and PURE_32      */
  326. /*                                                          */
  327. /************************************************************/
  328.  
  329. /*
  330.      User logon structure for UPMGUSRL
  331. */
  332.  
  333. struct UPM_G_USER_LOGON
  334.        {
  335.          unsigned short useridlen;
  336.          unsigned short remotelen;
  337.          unsigned short remotetype;
  338.          LSINT          sessionid;
  339.          char           userid[UPM_UIDLEN + 1];
  340.          char           remotename[UPM_REMLEN + 1];
  341.        };
  342.  
  343. /*
  344.      User logon structure for upmeusrl
  345. */
  346.  
  347. struct UPM_USER_LOGON
  348.        {
  349.          char    userid[UPM_UIDLEN + 1];
  350.          short   remotetype;
  351.          char    remotename[UPM_REMLEN + 1];
  352.          LSINT   sessionid;
  353.        };
  354.  
  355. /*
  356.      User logon profile structure for upmegetp and upmesetp
  357. */
  358.  
  359. struct UPM_USER_LOGON_PROF_0 {
  360.           unsigned char userid[ UPM_UIDLEN + 1];
  361.           unsigned char password[ UPM_PWDLEN + 1];
  362.           unsigned char remotename[ UPM_REMLEN + 1];
  363.           unsigned short remotetype;
  364.           };
  365.  
  366.  
  367. /**INTERNAL_ONLY**/
  368. /*-------------------- Begin (more) @f00 additions -----------------------*/
  369. #ifdef IBMTHUNK  /* Define PURE_32 temporarily */
  370. #define PURE_32
  371. #endif /* IBMTHUNK */
  372. /**END_INTERNAL**/
  373.  
  374. #ifdef PURE_32
  375.  
  376. #define u32elgn  U32ELGN
  377. #define u32elgff U32ELGFF
  378. #define u32elocu U32ELOCU
  379. #define u32elocl U32ELOCL
  380. #define u32eulgn U32EULGN
  381. #define u32eulgf U32EULGF
  382. #define u32eusrl U32EUSRL
  383. #define u32esetp U32ESETP
  384. #define u32egetp U32EGETP
  385. /**INTERNAL_ONLY**/
  386. /* #define u32glgn  U32GLGN  */
  387. /* #define u32gulgn U32GULGN */
  388. /* #define u32glgff U32GLGFF */
  389. /* #define u32gulgf U32GULGF */
  390. /* #define u32glocu U32GLOCU */
  391. /* #define u32glocl U32GLOCL */
  392. /* #define u32gusrl U32GUSRL */
  393. /**END_INTERNAL**/
  394.  
  395. /************************************************************/
  396. /*                                                          */
  397. /*   Function Prototypes, PURE_32 only                      */
  398. /*                                                          */
  399. /************************************************************/
  400.  
  401. /**INTERNAL_ONLY**/
  402. /*                                                              */
  403. /*     Log (generic) an application process on the the system   */
  404. /*                                                              */
  405. /*                                                              */
  406. /*LSINT APIENTRY U32GLGN(       */
  407. /*            unsigned long,    */     /*  userid length     */
  408. /*            unsigned long,    */     /*  password length   */
  409. /*            unsigned long,    */     /*  remotename length */
  410. /*            unsigned long,    */     /*  remotetype        */
  411. /*            unsigned long,    */     /*  authcheck         */
  412. /*            unsigned char *,  */     /*  userid            */
  413. /*            unsigned char *,  */     /*  password          */
  414. /*            unsigned char *); */     /*  remotename        */
  415. /*                              */
  416. /*                              */
  417. /*     Log (generic) a user on to the system    */
  418. /*                              */
  419. /*LSINT APIENTRY U32GULGN(      */
  420. /*            unsigned long,    */       /*  userid length     */
  421. /*            unsigned long,    */       /*  password length   */
  422. /*            unsigned long,    */       /*  remotename length */
  423. /*            unsigned long,    */       /*  remotetype        */
  424. /*            unsigned long,    */       /*  flags             */
  425. /*            unsigned char *,  */       /*  userid            */
  426. /*            unsigned char *,  */       /*  password          */
  427. /*            unsigned char *); */       /*  remotename        */
  428. /*                                                             */
  429. /*     Log (generic) an application process off the system     */
  430. /*                                                             */
  431. /*                                                             */
  432. /*LSINT APIENTRY U32GLGFF(      */
  433. /*            unsigned long,    */       /*  userid length     */
  434. /*            unsigned long,    */       /*  remotename length */
  435. /*            unsigned long,    */       /*  remotetype        */
  436. /*            unsigned char *,  */       /*  userid            */
  437. /*            unsigned char *); */       /*  remotename        */
  438. /*                                                             */
  439. /*                                                             */
  440. /*     Log (generic) a user off the system                     */
  441. /*                                                             */
  442. /*                                                             */
  443. /*LSINT APIENTRY U32GULGF(      */
  444. /*            unsigned long,    */       /*  userid length     */
  445. /*            unsigned long,    */       /*  remotename length */
  446. /*            unsigned long,    */       /*  remotetype        */
  447. /*            unsigned char *,  */       /*  userid            */
  448. /*            unsigned char *); */       /*  remotename        */
  449. /*                                                             */
  450. /*                                                             */
  451. /*     Get (generic) locally logged on user ID.                */
  452. /*                                                             */
  453. /*                                                             */
  454. /*LSINT APIENTRY U32GLOCU(      */
  455. /*            unsigned long *,  */      /*  userid length     */
  456. /*            unsigned char *,  */      /*  userid            */
  457. /*            unsigned long *); */      /*  user type         */
  458. /*                                                             */
  459. /*     Logon (generic) a local user ID.                        */
  460. /*                                                             */
  461. /*                                                             */
  462. /*LSINT APIENTRY U32GLOCL(      */
  463. /*            unsigned long *,  */        /*  userid length     */
  464. /*            unsigned char *,  */        /*  userid            */
  465. /*            unsigned long *); */        /*  user type         */
  466. /*                                                              */
  467. /*                                                              */
  468. /*     (generic) logon user list                                */
  469. /*                                                              */
  470. /*LSINT APIENTRY U32GUSRL(      */
  471. /*            unsigned long,    */       /*  remotename length */
  472. /*            unsigned long,    */       /*  remotetype        */
  473. /*            unsigned long,    */       /*  bufferlen         */
  474. /*            unsigned long *,  */       /*  entriesread */
  475. /*            unsigned long *,  */       /*  totalentry  */
  476. /*            unsigned char *,  */       /*  remotename  */
  477. /*            unsigned char * );*/       /*  buffer      */
  478. /**END_INTERNAL**/
  479.  
  480. /*
  481.      Log an application process onto the system
  482. */
  483. LSINT APIENTRY U32ELGN(
  484.             unsigned char *,         /*  userid      */
  485.             unsigned char *,         /*  password    */
  486.             unsigned char *,         /*  remotename  */
  487.             unsigned long,           /*  remotetype  */
  488.             unsigned long );         /*  authcheck   */
  489.  
  490. /*
  491.      Log an application process off the system
  492. */
  493. LSINT APIENTRY U32ELGFF(
  494.             unsigned char *,         /*  userid      */
  495.             unsigned char *,         /*  remotename  */
  496.             unsigned long );         /*  remotetype  */
  497. /*
  498.      Get the local user ID logged on the system
  499. */
  500. LSINT APIENTRY U32ELOCU(
  501.             unsigned char *,         /*  userid      */
  502.             unsigned long *);        /*  type  */
  503. /*
  504.      Logon a local user ID on the system
  505. */
  506. LSINT APIENTRY U32ELOCL(
  507.             unsigned char *,         /*  userid      */
  508.             unsigned long *);        /*  type  */
  509.  
  510. /*
  511.      Log a user onto the system
  512. */
  513. LSINT APIENTRY U32EULGN(
  514.             unsigned char *,         /*  userid      */
  515.             unsigned char *,         /*  password    */
  516.             unsigned char *,         /*  remotename  */
  517.             unsigned long,           /*  remotetype  */
  518.             unsigned long );         /*  flags       */
  519.  
  520. /*
  521.      Log a user off the system
  522. */
  523. LSINT APIENTRY U32EULGF(
  524.             unsigned char *,         /*  userid      */
  525.             unsigned char *,         /*  remotename  */
  526.             unsigned long );         /*  remotetype  */
  527. /*
  528.      Logged on user list
  529. */
  530.  
  531. LSINT APIENTRY U32EUSRL(
  532.             unsigned char *,           /*  remotename  */
  533.             unsigned long,             /*  remotetype  */
  534.             unsigned char *,           /*  buffer      */
  535.             unsigned long,             /*  bufferlen   */
  536.             unsigned long *,           /*  entriesread */
  537.             unsigned long * );         /*  totalentry  */
  538.  
  539. /*
  540.      Set a Users logon profile
  541. */
  542.  
  543. LSINT APIENTRY U32ESETP (
  544.             unsigned char *,           /*  userid      */
  545.             unsigned char *,           /*  buffer      */
  546.             unsigned long,             /*  entries     */
  547.             unsigned long );           /*  level       */
  548.  
  549. /*
  550.      Get a Users logon profile
  551. */
  552.  
  553. LSINT APIENTRY U32EGETP (
  554.             unsigned char *,           /*  userid      */
  555.             unsigned char *,           /*  buffer      */
  556.             unsigned long,             /*  bufferlen   */
  557.             unsigned long *,           /*  entriesread */
  558.             unsigned long *,           /*  totalavail  */
  559.             unsigned long);            /*  level       */
  560.  
  561. #endif /* PURE_32 */
  562.  
  563. /**INTERNAL_ONLY**/
  564. #ifdef IBMTHUNK   /* Undefine PURE_32; no data structures to pick up*/
  565. #undef PURE_32
  566. #endif /* IBMTHUNK */
  567. /*-------------  End @f00 additions, except for comments  -----------------*/
  568. /**END_INTERNAL**/
  569.  
  570. /************************************************************/
  571. /*                                                          */
  572. /*   More manifest constants                                */
  573. /*                                                          */
  574. /************************************************************/
  575.  
  576. /*
  577.      Valid values for the remotetype parameter
  578. */
  579. #define UPM_LOCAL            1
  580. #define UPM_DNODE            2
  581. #define UPM_DOMAIN           3
  582. /*
  583.      Additional remotetype value for upmeulgf
  584. */
  585. #define UPM_DOMAIN_MAX_FORCE 4
  586.  
  587. /*
  588.      Verbose upmeulgn (1.3.x style)
  589. */
  590. #define UPM_DOMAIN_VERBOSE   5
  591.  
  592. /*
  593.      Additional remotetype values for upmeusrl
  594. */
  595. #define UPM_LOCAL_HPFS     21
  596. #define UPM_ALL            22
  597.  
  598. /*
  599.      Lan Server logon flags for UPMEULGN.
  600.      If UPM_FL_LOCVER or UPM_FL_NOVER is specified remotename must null.
  601. */
  602.  
  603. #define UPM_FL_LOCVER               0x01   /* Local verification  */
  604. #define UPM_FL_NOVER                0x02   /* No verification     */
  605. #define UPM_FL_DOMVER               0x03   /* Domain verification */
  606.  
  607. /*
  608.      Valid values for the authcheck parameter
  609. */
  610. #define UPM_CONFIG         1
  611. #define UPM_ADMIN          2
  612. #define UPM_USER           3
  613.  
  614. /*
  615.      Valid user type privilege levels
  616. */
  617. #define UPM_PRIV_USER         1
  618. #define UPM_PRIV_ADMIN        2
  619. #define UPM_PRIV_LOCAL_ADMIN  9
  620. /*
  621.      Return values
  622.  
  623.      Note:  These values are all negative.  Any positive return
  624.            value signifies an unexpected OS/2 system level error
  625.            occurred.  The positive value is the OS/2 return code.
  626. */
  627. #define UPM_OK                 0      /* Successful.                         */
  628. #define UPM_LOG_INPROC         0xFB01 /* Another logon is in process.        */
  629. #define UPM_BAD_TYPE           0xFB02 /* Bad remotetype.                     */
  630. #define UPM_NOMEM              0xFB03 /* Cannot allocate required memory.    */
  631. #define UPM_LOG_FILE_NOT_FOUND 0xFB04 /* An execute file could not be found. */
  632. #define UPM_FAIL_SECURITY      0xFB05 /* User not logged, failed security
  633.                                          clearance.                          */
  634. #define UPM_BAD_PARAMETER      0xFB06 /* A parameter passed was invalid.     */
  635. #define UPM_BAD_AUTHCHECK      0xFB07 /* Authcheck was not valid.            */
  636. #define UPM_LOG_CANCEL         0xFB08 /* User has canceled from the logon
  637.                                          panel.                              */
  638. #define UPM_NOT_LOGGED         0xFB10 /* A logon has not occured for this
  639.                                          userid.                             */
  640. #define UPM_LOGGED             0xFB12 /* A domain logon is currently active. */
  641. #define UPM_SYS_ERROR          0xFB13 /* An unexpected system error.         */
  642. #define UPM_OPEN_SESSIONS      0xFB14 /* The domain logoff failed, The domain
  643.                                          logon has active sessions.          */
  644. #define UPM_ULP_LOADED         0xFB15 /* The local logon failed, a local
  645.                                          logon with a user logon profile is
  646.                                          active.                             */
  647. #define UPM_LOGGED_ELSEWHERE   0xFB16 /* The domain logon failed, the userid
  648.                                          is already logged on the domain.    */
  649. #define UPM_PASSWORD_EXP       0xFB17 /* The users password is expired.      */
  650. #define UPM_UNAVAIL            0xFB18 /* The logon failed, The remote node
  651.                                          or server could not be contacted to
  652.                                          process the logon request.          */
  653. #define UPM_ACTIVE             0xFB19 /* The domain logon or logoff failed,
  654.                                          a domain logon, logoff or net
  655.                                          command is in process.              */
  656. #define UPM_SS_PWDEXPWARNING   0xFB20 /* The local logon succeeded. The users
  657.                                          password is expired.                */
  658. #define UPM_SS_BUSY            0xFB21 /* The local logon failed. The Local
  659.                                          security was busy.                     */
  660. #define UPM_SS_DEAD            0xFB22 /* The local logon failed. Local
  661.                                          security has terminated unexpectedly.  */
  662. #define UPM_ERROR_MORE_DATA    0xFB23 /* More data is available, the buffer
  663.                                          provided is not large enough.       */
  664. #define UPM_MAX_ENT_EXCEEDED   0xFB24 /* Update failed, the input buffer
  665.                                          contains more than 16 entries.      */
  666. #define UPM_DUP_ULP_ENTRY      0xFB25 /* Two or more entries with the same
  667.                                          remote name and user ID were
  668.                                          detected.                           */
  669. #define UPM_MAX_ULP_EXCEEDED   0xFB26 /* Database contains maximum number
  670.                                          entries                             */
  671. #define UPM_NODISK             0xFB27 /* Insufficient disk space was available to
  672.                                          process this request   */
  673. #define UPM_PROF_NOT_FOUND     0xFB28 /* Did not find user logon profile for
  674.                                          user ID. */
  675. #define UPM_ERROR_NONVAL_LOGON 0xFB29 /* Non validated Lan Server logons are not
  676.                                          allowed with server service started  */
  677.  
  678.  
  679.  
  680.  
  681.  
  682. #ifdef  ANY_32_BIT
  683. /**INTERNAL_ONLY**/
  684. /* #pragma linkage (UPMGLGN,  far16 pascal) */
  685. /* #pragma linkage (UPMGULGN, far16 pascal) */
  686. /* #pragma linkage (UPMGLGFF, far16 pascal) */
  687. /* #pragma linkage (UPMGULGF, far16 pascal) */
  688. /* #pragma linkage (UPMGLOCU, far16 pascal) */
  689. /* #pragma linkage (UPMGLOCL, far16 pascal) */
  690. /* #pragma linkage (UPMGUSRL, far16 pascal) */
  691. /* #pragma linkage (UPMELGN,  far16 pascal) */
  692. /* #pragma linkage (UPMELGFF, far16 pascal) */
  693. /* #pragma linkage (UPMELOCU, far16 pascal) */
  694. /* #pragma linkage (UPMELOCL, far16 pascal) */
  695. /* #pragma linkage (UPMEULGN, far16 pascal) */
  696. /* #pragma linkage (UPMEULGF, far16 pascal) */
  697. /* #pragma linkage (UPMEUSRL, far16 pascal) */
  698. /* #pragma linkage (UPMESETP, far16 pascal) */
  699. /* #pragma linkage (UPMEGETP, far16 pascal) */
  700. /**END_INTERNAL**/
  701. #pragma pack()
  702. #endif
  703.  
  704.