rpc_wkssvc.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. Unix SMB/Netbios implementation.
  3. Version 1.9.
  4. SMB parameters and setup
  5. Copyright (C) Andrew Tridgell 1992-1997
  6. Copyright (C) Luke Kenneth Casson Leighton 1996-1997
  7. Copyright (C) Paul Ashton 1997
  8. This program is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2 of the License, or
  11. (at your option) any later version.
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. #ifndef _RPC_WKS_H /* _RPC_WKS_H */
  21. #define _RPC_WKS_H
  22. /* wkssvc pipe */
  23. #define WKS_QUERY_INFO 0x00
  24. /* WKS_Q_QUERY_INFO - probably a capabilities request */
  25. typedef struct q_wks_query_info_info
  26. {
  27. uint32 ptr_srv_name; /* pointer (to server name?) */
  28. UNISTR2 uni_srv_name; /* unicode server name starting with '\\' */
  29. uint16 switch_value; /* info level 100 (0x64) */
  30. } WKS_Q_QUERY_INFO;
  31. /* WKS_INFO_100 - level 100 info */
  32. typedef struct wks_info_100_info
  33. {
  34. uint32 platform_id; /* 0x0000 01f4 - unknown */
  35. uint32 ptr_compname; /* pointer to server name */
  36. uint32 ptr_lan_grp ; /* pointer to domain name */
  37. uint32 ver_major; /* 4 - unknown */
  38. uint32 ver_minor; /* 0 - unknown */
  39. UNISTR2 uni_compname; /* unicode server name */
  40. UNISTR2 uni_lan_grp ; /* unicode domain name */
  41. } WKS_INFO_100;
  42. /* WKS_R_QUERY_INFO - probably a capabilities request */
  43. typedef struct r_wks_query_info_info
  44. {
  45. uint16 switch_value; /* 100 (0x64) - switch value */
  46. /* for now, only level 100 is supported. this should be an enum container */
  47. uint32 ptr_1; /* pointer 1 */
  48. WKS_INFO_100 *wks100; /* workstation info level 100 */
  49. uint32 status; /* return status */
  50. } WKS_R_QUERY_INFO;
  51. #endif /* _RPC_WKS_H */