home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 April / PCWorld_2000-04_cd.bin / Software / Servis / Devc / _SETUP.4 / Group3 / lmchdev.h < prev    next >
C/C++ Source or Header  |  1999-11-07  |  2KB  |  58 lines

  1. #ifndef _LMCHDEV_H
  2. #define _LMCHDEV_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define CHARDEVQ_NO_REQUESTS (-1)
  7. #define CHARDEV_CLOSE 0
  8. #define CHARDEVQ_MAX_PRIORITY 1
  9. #define CHARDEVQ_DEV_PARMNUM 1
  10. #define HANDLE_INFO_LEVEL_1 1
  11. #define HANDLE_CHARTIME_PARMNUM 1
  12. #define HANDLE_CHARCOUNT_PARMNUM 2
  13. #define CHARDEV_STAT_OPENED 2
  14. #define CHARDEVQ_PRIORITY_PARMNUM 2
  15. #define CHARDEVQ_DEVS_PARMNUM 3
  16. #define CHARDEV_STAT_ERROR 4
  17. #define CHARDEVQ_NUMUSERS_PARMNUM 4
  18. #define CHARDEVQ_NUMAHEAD_PARMNUM 5
  19. #define CHARDEVQ_DEF_PRIORITY 5
  20. #define CHARDEVQ_PRIORITY_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+CHARDEVQ_PRIORITY_PARMNUM)
  21. #define CHARDEVQ_DEVS_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+CHARDEVQ_DEVS_PARMNUM)
  22. #define CHARDEVQ_MIN_PRIORITY 9
  23. typedef struct _CHARDEV_INFO_0 { LPWSTR ch0_dev; } CHARDEV_INFO_0,*PCHARDEV_INFO_0,*LPCHARDEV_INFO_0;
  24. typedef struct _CHARDEV_INFO_1 {
  25.     LPWSTR ch1_dev;
  26.     DWORD ch1_status;
  27.     LPWSTR ch1_username;
  28.     DWORD ch1_time;
  29. } CHARDEV_INFO_1,*PCHARDEV_INFO_1,*LPCHARDEV_INFO_1;
  30. typedef struct _CHARDEVQ_INFO_0 { LPWSTR cq0_dev; } CHARDEVQ_INFO_0,*PCHARDEVQ_INFO_0,*LPCHARDEVQ_INFO_0;
  31. typedef struct _CHARDEVQ_INFO_1 {
  32.     LPWSTR cq1_dev;
  33.     DWORD cq1_priority;
  34.     LPWSTR cq1_devs;
  35.     DWORD cq1_numusers;
  36.     DWORD cq1_numahead;
  37. } CHARDEVQ_INFO_1,*PCHARDEVQ_INFO_1,*LPCHARDEVQ_INFO_1;
  38. typedef struct _CHARDEVQ_INFO_1002 { DWORD cq1002_priority; } CHARDEVQ_INFO_1002,*PCHARDEVQ_INFO_1002,*LPCHARDEVQ_INFO_1002;
  39. typedef struct _CHARDEVQ_INFO_1003 { LPWSTR cq1003_devs; } CHARDEVQ_INFO_1003,*PCHARDEVQ_INFO_1003,*LPCHARDEVQ_INFO_1003;
  40. typedef struct _HANDLE_INFO_1 {
  41.     DWORD hdli1_chartime;
  42.     DWORD hdli1_charcount;
  43. }HANDLE_INFO_1,*PHANDLE_INFO_1,*LPHANDLE_INFO_1;
  44. NET_API_STATUS WINAPI NetCharDevEnum(LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
  45. NET_API_STATUS WINAPI NetCharDevGetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE*);
  46. NET_API_STATUS WINAPI NetCharDevControl(LPCWSTR,LPCWSTR,DWORD);
  47. NET_API_STATUS WINAPI NetCharDevQEnum(LPCWSTR,LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
  48. NET_API_STATUS WINAPI NetCharDevQGetInfo(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,PBYTE*);
  49. NET_API_STATUS WINAPI NetCharDevQSetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE,PDWORD);
  50. NET_API_STATUS WINAPI NetCharDevQPurge(LPCWSTR,LPCWSTR);
  51. NET_API_STATUS WINAPI NetCharDevQPurgeSelf(LPCWSTR,LPCWSTR,LPCWSTR);
  52. NET_API_STATUS WINAPI NetHandleGetInfo(HANDLE,DWORD,PBYTE*);
  53. NET_API_STATUS WINAPI NetHandleSetInfo(HANDLE,DWORD,PBYTE,DWORD,PDWORD);
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif 
  58.