summaryrefslogtreecommitdiffstats
path: root/private/nw/svcdlls/nwwks/client/nwshcmn.h
blob: dd498b9e6520f20a8fac39e2c4398aa3dbd2a6f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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_