Source code of Windows XP (NT5)
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.

59 lines
1.3 KiB

  1. /*
  2. * cnrlink.h - CNRLink ADT module description.
  3. */
  4. /* Types
  5. ********/
  6. typedef struct _cnrlink
  7. {
  8. int nUnused;
  9. }
  10. CNRLINK;
  11. DECLARE_STANDARD_TYPES(CNRLINK);
  12. typedef enum _cnrflags
  13. {
  14. CNR_FL_LOCAL = 0x0001,
  15. ALL_CNR_FLAGS = CNR_FL_LOCAL
  16. }
  17. CNRFLAGS;
  18. /* Prototypes
  19. *************/
  20. /* cnrlink.c */
  21. extern BOOL CreateLocalCNRLink(LPCTSTR, PCNRLINK *, PUINT, LPTSTR, LPCTSTR *);
  22. extern BOOL CreateRemoteCNRLink(LPCTSTR, LPCTSTR, PCNRLINK *, PUINT);
  23. extern void DestroyCNRLink(PCNRLINK);
  24. extern COMPARISONRESULT CompareCNRLinks(PCCNRLINK, PCCNRLINK);
  25. extern BOOL IsLocalCNRLink(PCCNRLINK, PBOOL);
  26. extern BOOL GetLocalPathFromCNRLink(PCCNRLINK, LPTSTR, PDWORD);
  27. extern void GetRemotePathFromCNRLink(PCCNRLINK, LPTSTR);
  28. extern BOOL ConnectToCNR(PCCNRLINK, DWORD, HWND, LPTSTR, PDWORD);
  29. extern BOOL DisconnectFromCNR(PCCNRLINK);
  30. extern BOOL IsCNRAvailable(PCCNRLINK);
  31. extern UINT GetCNRLinkLen(PCCNRLINK);
  32. extern BOOL GetCNRNetType(PCCNRLINK, PCDWORD *);
  33. extern BOOL GetCNRName(PCCNRLINK, LPCSTR *);
  34. extern BOOL GetLastRedirectedDevice(PCCNRLINK, LPCSTR *);
  35. #ifdef UNICODE
  36. extern BOOL GetCNRNameW(PCCNRLINK, LPCWSTR *);
  37. extern BOOL GetLastRedirectedDeviceW(PCCNRLINK, LPCWSTR *);
  38. #endif
  39. #if defined(DEBUG) || defined (VSTF)
  40. extern BOOL IsValidPCCNRLINK(PCCNRLINK);
  41. #endif
  42. #ifdef DEBUG
  43. extern void DumpCNRLink(PCCNRLINK);
  44. #endif