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.

138 lines
4.4 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1992 **/
  4. /**********************************************************************/
  5. /*
  6. uiexport.h
  7. Prototypes for Net UI exported APIs
  8. FILE HISTORY:
  9. Johnl 17-Apr-1992 Created
  10. */
  11. #ifndef _UIEXPORT_H_
  12. #define _UIEXPORT_H_
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /* Selections the user can make in the System focus dialog
  17. */
  18. /* Low word of the selection type
  19. */
  20. #define FOCUSDLG_DOMAINS_ONLY (1)
  21. #define FOCUSDLG_SERVERS_ONLY (2)
  22. #define FOCUSDLG_SERVERS_AND_DOMAINS (3)
  23. /* High word of the selection type contains a bitmask indicating
  24. * which domains to display in the dialog.
  25. * WARNING: This bitmask are shifted up 16 bits from the bitmask in
  26. * \nt\private\net\ui\common\h\domenum.h. If you want to
  27. * modify the values of the bitmask, you will need to
  28. * make corresponding changes to domenum.h.
  29. *
  30. */
  31. #define FOCUSDLG_BROWSE_LOGON_DOMAIN 0x00010000
  32. #define FOCUSDLG_BROWSE_WKSTA_DOMAIN 0x00020000
  33. #define FOCUSDLG_BROWSE_OTHER_DOMAINS 0x00040000
  34. #define FOCUSDLG_BROWSE_TRUSTING_DOMAINS 0x00080000
  35. #define FOCUSDLG_BROWSE_WORKGROUP_DOMAINS 0x00100000
  36. /* Some handy combinations of flags.
  37. */
  38. /* FOCUSDLG_BROWSE_LM2X_DOMAINS will return only the domains available
  39. from a LanMan 2.x workstation. This returns just the logon,
  40. workstation, and other domains. This is the default value.
  41. */
  42. #define FOCUSDLG_BROWSE_LM2X_DOMAINS ( FOCUSDLG_BROWSE_LOGON_DOMAIN | \
  43. FOCUSDLG_BROWSE_WKSTA_DOMAIN | \
  44. FOCUSDLG_BROWSE_OTHER_DOMAINS )
  45. /*
  46. FOCUSDLG_BROWSE_LOCAL_DOMAINS will return only the domains available
  47. to the local machine. This returns the logon, workstation,
  48. and other, plus the domains that trust "us".
  49. */
  50. #define FOCUSDLG_BROWSE_LOCAL_DOMAINS ( FOCUSDLG_BROWSE_LM2X_DOMAINS | \
  51. FOCUSDLG_BROWSE_TRUSTING_DOMAINS )
  52. /*
  53. FOCUSDLG_BROWSE_ALL_DOMAINS is a conglomeration of all potential domain
  54. sources available to the domain enumerator.
  55. */
  56. #define FOCUSDLG_BROWSE_ALL_DOMAINS ( FOCUSDLG_BROWSE_LOCAL_DOMAINS | \
  57. FOCUSDLG_BROWSE_WORKGROUP_DOMAINS )
  58. /*******************************************************************
  59. NAME: I_SystemFocusDialog
  60. SYNOPSIS: Presents a dialog to the user from which a server or domain
  61. maybe selected.
  62. ENTRY: hwndOwner - Parent window handle
  63. nSelectionType - The type of selection the user is allowed
  64. to make
  65. pszName - The server or domain name. It will be
  66. undefined if the user hits the CANCEL
  67. button ( pfOK = FALSE )
  68. cchBufSize - The buffer size of the lptstrName.
  69. pfUserQuit - If the user hits the OKAY button, it will
  70. return TRUE. Otherwise, it will return FALSE.
  71. pszHelpFile - The helpfile to use when the user hits F1.
  72. If NULL, the default helpfile is used.
  73. nHelpContext - The helpcontext to use for the helpfile above.
  74. If the above is NULL, this must be 0 (& vice
  75. versa).
  76. EXIT: if *pfOKPressed is TRUE (and an error didn't occur), then
  77. lptstrName will be filled with the user selected name.
  78. RETURNS: NO_ERROR on success, standard ERROR_* error code otherwise
  79. NOTES: This will be a UNICODE only API when the net group goes UNICODE
  80. HISTORY:
  81. JohnL 22-Apr-1992 Added selection option, exported to private\inc
  82. ChuckC 03-Nov-1992 Added helpfile & help context
  83. ********************************************************************/
  84. UINT FAR PASCAL I_SystemFocusDialog(
  85. HWND hwndOwner,
  86. UINT nSelectionType,
  87. LPWSTR pszName,
  88. UINT cchBufSize,
  89. BOOL *pfOKPressed,
  90. LPWSTR pszHelpFile,
  91. DWORD nHelpContext
  92. );
  93. typedef UINT (FAR PASCAL *LPFNI_SYSTEMFOCUSDIALOG)(
  94. HWND hwndOwner,
  95. UINT nSelectionType,
  96. LPWSTR pszName,
  97. UINT cchBufSize,
  98. BOOL *pfOKPressed,
  99. LPWSTR pszHelpFile,
  100. DWORD nHelpContext
  101. );
  102. #ifdef __cplusplus
  103. }
  104. #endif
  105. #endif //_UIEXPORT_H_