Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.5 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990-1991 **/
  4. /********************************************************************/
  5. //***
  6. //
  7. // Filename: usrparms.h
  8. //
  9. // Description:
  10. //
  11. // History:
  12. //
  13. #define UP_CLIENT_MAC 'm'
  14. #define UP_CLIENT_DIAL 'd'
  15. // The 49-byte user params structure is laid out as follows:
  16. // NOTE that the buffer is 48 byte + NULL byte.
  17. //
  18. // +-+-------------------+-+------------------------+-+
  19. // |m|Macintosh Pri Group|d|Dial-in CallBack Number | |
  20. // +-+-------------------+-+------------------------+-+
  21. // | | |
  22. // +---------------------+------ Signature +- NULL terminator
  23. //
  24. #define UP_LEN_MAC ( LM20_UNLEN )
  25. #define UP_LEN_DIAL ( LM20_MAXCOMMENTSZ - 3 - UP_LEN_MAC )
  26. typedef struct {
  27. char up_MACid;
  28. char up_PriGrp[UP_LEN_MAC];
  29. char up_MAC_Terminater;
  30. char up_DIALid;
  31. char up_CBNum[UP_LEN_DIAL];
  32. char up_Null;
  33. } USER_PARMS;
  34. typedef USER_PARMS FAR *PUP;
  35. VOID InitUsrParams(
  36. OUT USER_PARMS *UserParms);
  37. USHORT
  38. SetUsrParams(
  39. USHORT InfoType,
  40. LPWSTR InBuf,
  41. LPWSTR OutBuf);
  42. USHORT
  43. FAR
  44. APIENTRY
  45. MprGetUsrParams(
  46. USHORT InfoType,
  47. LPWSTR InBuf,
  48. LPWSTR OutBuf);
  49. DWORD
  50. APIENTRY
  51. RasPrivilegeAndCallBackNumber(
  52. IN BOOL Compress,
  53. IN PRAS_USER_0 pRasUser0
  54. );