windows-nt/Source/XPSP1/NT/ds/nw/svcdlls/nwwks/client/nwshcmn.h
2020-09-26 16:20:57 +08:00

116 lines
2.3 KiB
C

/*++
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_