windows-nt/Source/XPSP1/NT/shell/published/inc/msshrui.h

173 lines
3.5 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*****************************************************************/
/** Microsoft Windows **/
//* Copyright (c) Microsoft Corporation. All rights reserved. **/
/*****************************************************************/
/*
msshrui.h
Prototypes and definitions for sharing APIs
FILE HISTORY:
gregj 06/03/93 Created
brucefo 3/5/96 Fixed prototypes for NT
*/
#ifndef _INC_MSSHRUI
#define _INC_MSSHRUI
#ifndef RC_INVOKED
#pragma pack(1) /* Assume byte packing throughout */
#endif /* !RC_INVOKED */
#ifdef __cplusplus
extern "C" { /* Assume C declarations for C++ */
#endif /* __cplusplus */
// Note: make sure you GetProcAddress the proper (ANSI/UNICODE) entrypoint!
BOOL WINAPI
IsPathShared(
IN LPCTSTR lpPath,
IN BOOL fRefresh
);
typedef
BOOL
(WINAPI* PFNISPATHSHARED)(
IN LPCTSTR lpPath,
IN BOOL fRefresh
);
BOOL WINAPI
SharingDialog(
IN HWND hwndParent,
IN LPTSTR pszComputerName,
IN LPTSTR pszPath
);
typedef
BOOL
(WINAPI* PFNSHARINGDIALOG)(
IN HWND hwndParent,
IN LPTSTR pszComputerName,
IN LPTSTR pszPath
);
BOOL WINAPI
GetNetResourceFromLocalPath(
IN LPCTSTR lpcszPath,
IN OUT LPTSTR lpszNameBuf,
IN DWORD cchNameBufLen,
OUT PDWORD pdwNetType
);
typedef
BOOL
(WINAPI* PFNGETNETRESOURCEFROMLOCALPATH)(
IN LPCTSTR lpcszPath,
IN OUT LPTSTR lpszNameBuf,
IN DWORD cchNameBufLen,
OUT PDWORD pdwNetType
);
BOOL WINAPI
GetLocalPathFromNetResource(
IN LPCTSTR lpcszName,
IN DWORD dwNetType,
IN OUT LPTSTR lpszLocalPathBuf,
IN DWORD cchLocalPathBufLen,
OUT PBOOL pbIsLocal
);
typedef
BOOL
(WINAPI* PFNGETLOCALPATHFROMNETRESOURCE)(
IN LPCTSTR lpcszName,
IN DWORD dwNetType,
IN OUT LPTSTR lpszLocalPathBuf,
IN DWORD cchLocalPathBufLen,
OUT PBOOL pbIsLocal
);
// Flags returned by IsFolderPrivateForUser via pdwPrivateType
#define IFPFU_NOT_PRIVATE 0x0000
#define IFPFU_PRIVATE 0x0001
#define IFPFU_PRIVATE_INHERITED 0x0002
#define IFPFU_NOT_NTFS 0x0004
BOOL WINAPI
IsFolderPrivateForUser(
IN PCWSTR pszFolderPath,
IN PCWSTR pszUserSID,
OUT PDWORD pdwPrivateType,
OUT PWSTR* ppszInheritanceSource
);
typedef
BOOL
(WINAPI* PFNISFOLDERPRIVATEFORUSER)(
IN PCWSTR pszFolderPath,
IN PCWSTR pszUserSID,
OUT PDWORD pdwPrivateType,
OUT PWSTR* ppszInheritanceSource
);
BOOL WINAPI
SetFolderPermissionsForSharing(
IN PCWSTR pszFolderPath,
IN PCWSTR pszUserSID,
IN DWORD dwLevel,
IN HWND hwndParent
);
typedef
BOOL
(WINAPI* PFNSETFOLDERPERMISSIONSFORSHARING)(
IN PCWSTR pszFolderPath,
IN PCWSTR pszUserSID,
IN DWORD dwLevel,
IN HWND hwndParent
);
#ifndef WINNT
UINT WINAPI ShareDirectoryNotify(HWND hwnd, LPCSTR lpDir, DWORD dwOper);
#ifndef WNDN_MKDIR
#define WNDN_MKDIR 1
#define WNDN_RMDIR 2
#define WNDN_MVDIR 3
#endif
#define ORD_SHARESHUTDOWNNOTIFY 12
BOOL WINAPI
ShareShutdownNotify(
DWORD dwFlags,
UINT uiMessage,
WPARAM wParam,
LPARAM lParam
);
typedef
BOOL
(WINAPI* pfnShareShutdownNotify)(
DWORD dwFlags,
UINT uiMessage,
WPARAM wParam,
LPARAM lParam
);
#endif // WINNT
#ifndef RC_INVOKED
#pragma pack()
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !_INC_MSSHRUI */