summaryrefslogtreecommitdiffstats
path: root/private/nw/svcdlls/nwwks/client/nwshcmn.h
diff options
context:
space:
mode:
Diffstat (limited to 'private/nw/svcdlls/nwwks/client/nwshcmn.h')
-rw-r--r--private/nw/svcdlls/nwwks/client/nwshcmn.h115
1 files changed, 115 insertions, 0 deletions
diff --git a/private/nw/svcdlls/nwwks/client/nwshcmn.h b/private/nw/svcdlls/nwwks/client/nwshcmn.h
new file mode 100644
index 000000000..dd498b9e6
--- /dev/null
+++ b/private/nw/svcdlls/nwwks/client/nwshcmn.h
@@ -0,0 +1,115 @@
+/*++
+
+Copyright (c) 1995 Microsoft Corporation
+
+Module Name:
+
+ nwshcmn.h
+
+Abstract:
+
+ Common header file for shell extensions
+
+Author:
+
+ Yi-Hsin Sung (yihsins) 20-Oct-1995
+
+Revision History:
+
+--*/
+
+#ifndef _NWSHCMN_H_
+#define _NWSHCMN_H_
+
+#if 0
+#define ODS(sz) OutputDebugString(sz)
+#else
+#define ODS(sz)
+#endif
+
+#define TREECHAR L'*'
+
+#define MAX_ONE_NETRES_SIZE 1024
+
+extern "C"
+{
+extern HINSTANCE hmodNW;
+}
+extern LONG g_cRefThisDll; // Reference count of this DLL.
+
+typedef UINT
+(WINAPI *SHELLGETNETRESOURCE)( HNRES hnres,
+ UINT iItem,
+ LPNETRESOURCE pnres,
+ UINT cbMax );
+
+typedef UINT
+(WINAPI *SHELLDRAGQUERYFILE)( HDROP hdrop,
+ UINT iItem,
+ LPWSTR pszItem,
+ UINT cbMax);
+
+typedef VOID
+(WINAPI *SHELLCHANGENOTIFY)( LONG wEventId,
+ UINT uFlags,
+ LPCVOID dwItem1,
+ LPCVOID dwItem2 );
+
+typedef BOOL
+(WINAPI *SHELLEXECUTEEX)( LPSHELLEXECUTEINFOW lpExecInfo );
+
+
+extern SHELLGETNETRESOURCE g_pFuncSHGetNetResource;
+extern SHELLDRAGQUERYFILE g_pFuncSHDragQueryFile;
+extern SHELLCHANGENOTIFY g_pFuncSHChangeNotify;
+extern SHELLEXECUTEEX g_pFuncSHExecuteEx;
+extern WCHAR g_szProviderName[];
+
+VOID HideControl( HWND hwndDlg, WORD wID );
+VOID UnHideControl( HWND hwndDlg, WORD wID );
+VOID EnableDlgItem( HWND hwndDlg, WORD wID, BOOL fEnable);
+
+DWORD MsgBoxPrintf( HWND hwnd, UINT uiMsg, UINT uiTitle, UINT uiFlags,...);
+DWORD MsgBoxErrorPrintf( HWND hwnd, UINT uiMsg, UINT uiTitle, UINT uiFlags, DWORD errNum, LPWSTR pszInsertStr );
+DWORD LoadMsgPrintf( LPWSTR *ppszMessage, UINT uiMsg, ...);
+DWORD LoadMsgErrorPrintf( LPWSTR *ppszMessage, UINT uiMsg, DWORD errNum );
+
+#if 0
+HRESULT
+NWUISetDefaultContext(
+ HWND hParent,
+ LPNETRESOURCE pNetRes
+);
+#endif
+
+HRESULT
+NWUIWhoAmI(
+ HWND hParent,
+ LPNETRESOURCE pNetRes
+);
+
+HRESULT
+NWUILogOut(
+ HWND hParent,
+ LPNETRESOURCE pNetRes,
+ PBOOL pfDisconnected
+);
+
+HRESULT
+NWUIAttachAs(
+ HWND hParent,
+ LPNETRESOURCE pNetRes
+);
+
+HRESULT
+NWUIMapNetworkDrive(
+ HWND hParent,
+ LPNETRESOURCE pNetRes
+);
+
+HRESULT
+NWUIGlobalWhoAmI(
+ HWND hParent
+);
+
+#endif // _NWSHCMN_H_