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.

115 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. nwshcmn.h
  5. Abstract:
  6. Common header file for shell extensions
  7. Author:
  8. Yi-Hsin Sung (yihsins) 20-Oct-1995
  9. Revision History:
  10. --*/
  11. #ifndef _NWSHCMN_H_
  12. #define _NWSHCMN_H_
  13. #if 0
  14. #define ODS(sz) OutputDebugString(sz)
  15. #else
  16. #define ODS(sz)
  17. #endif
  18. #define TREECHAR L'*'
  19. #define MAX_ONE_NETRES_SIZE 1024
  20. extern "C"
  21. {
  22. extern HINSTANCE hmodNW;
  23. }
  24. extern LONG g_cRefThisDll; // Reference count of this DLL.
  25. typedef UINT
  26. (WINAPI *SHELLGETNETRESOURCE)( HNRES hnres,
  27. UINT iItem,
  28. LPNETRESOURCE pnres,
  29. UINT cbMax );
  30. typedef UINT
  31. (WINAPI *SHELLDRAGQUERYFILE)( HDROP hdrop,
  32. UINT iItem,
  33. LPWSTR pszItem,
  34. UINT cbMax);
  35. typedef VOID
  36. (WINAPI *SHELLCHANGENOTIFY)( LONG wEventId,
  37. UINT uFlags,
  38. LPCVOID dwItem1,
  39. LPCVOID dwItem2 );
  40. typedef BOOL
  41. (WINAPI *SHELLEXECUTEEX)( LPSHELLEXECUTEINFOW lpExecInfo );
  42. extern SHELLGETNETRESOURCE g_pFuncSHGetNetResource;
  43. extern SHELLDRAGQUERYFILE g_pFuncSHDragQueryFile;
  44. extern SHELLCHANGENOTIFY g_pFuncSHChangeNotify;
  45. extern SHELLEXECUTEEX g_pFuncSHExecuteEx;
  46. extern WCHAR g_szProviderName[];
  47. VOID HideControl( HWND hwndDlg, WORD wID );
  48. VOID UnHideControl( HWND hwndDlg, WORD wID );
  49. VOID EnableDlgItem( HWND hwndDlg, WORD wID, BOOL fEnable);
  50. DWORD MsgBoxPrintf( HWND hwnd, UINT uiMsg, UINT uiTitle, UINT uiFlags,...);
  51. DWORD MsgBoxErrorPrintf( HWND hwnd, UINT uiMsg, UINT uiTitle, UINT uiFlags, DWORD errNum, LPWSTR pszInsertStr );
  52. DWORD LoadMsgPrintf( LPWSTR *ppszMessage, UINT uiMsg, ...);
  53. DWORD LoadMsgErrorPrintf( LPWSTR *ppszMessage, UINT uiMsg, DWORD errNum );
  54. #if 0
  55. HRESULT
  56. NWUISetDefaultContext(
  57. HWND hParent,
  58. LPNETRESOURCE pNetRes
  59. );
  60. #endif
  61. HRESULT
  62. NWUIWhoAmI(
  63. HWND hParent,
  64. LPNETRESOURCE pNetRes
  65. );
  66. HRESULT
  67. NWUILogOut(
  68. HWND hParent,
  69. LPNETRESOURCE pNetRes,
  70. PBOOL pfDisconnected
  71. );
  72. HRESULT
  73. NWUIAttachAs(
  74. HWND hParent,
  75. LPNETRESOURCE pNetRes
  76. );
  77. HRESULT
  78. NWUIMapNetworkDrive(
  79. HWND hParent,
  80. LPNETRESOURCE pNetRes
  81. );
  82. HRESULT
  83. NWUIGlobalWhoAmI(
  84. HWND hParent
  85. );
  86. #endif // _NWSHCMN_H_