зеркало из https://github.com/mozilla/pjs.git
Bug 454117 - WinMobile / WinCE has no Access Control Levels (ACL). r=blassey
This commit is contained in:
Родитель
7f1936dbf7
Коммит
1b02d83434
|
@ -799,4 +799,29 @@ typedef struct
|
||||||
#define SetPropW SetProp
|
#define SetPropW SetProp
|
||||||
#define FONTENUMPROCW FONTENUMPROC
|
#define FONTENUMPROCW FONTENUMPROC
|
||||||
#define GetLongPathNameW GetLongPathName
|
#define GetLongPathNameW GetLongPathName
|
||||||
|
|
||||||
|
// ACL Defines
|
||||||
|
|
||||||
|
|
||||||
|
typedef enum _SE_OBJECT_TYPE {
|
||||||
|
SE_UNKNOWN_OBJECT_TYPE = 0,
|
||||||
|
SE_FILE_OBJECT,
|
||||||
|
SE_SERVICE,
|
||||||
|
SE_PRINTER,
|
||||||
|
SE_REGISTRY_KEY,
|
||||||
|
SE_LMSHARE,
|
||||||
|
SE_KERNEL_OBJECT,
|
||||||
|
SE_WINDOW_OBJECT,
|
||||||
|
SE_DS_OBJECT,
|
||||||
|
SE_DS_OBJECT_ALL,
|
||||||
|
SE_PROVIDER_DEFINED_OBJECT,
|
||||||
|
SE_WMIGUID_OBJECT,
|
||||||
|
SE_REGISTRY_WOW64_32KEY
|
||||||
|
} SE_OBJECT_TYPE;
|
||||||
|
|
||||||
|
typedef DWORD SECURITY_INFORMATION, *PSECURITY_INFORMATION;
|
||||||
|
|
||||||
|
#define UNPROTECTED_DACL_SECURITY_INFORMATION 0x0
|
||||||
|
|
||||||
|
|
||||||
#endif // _MOZCE_DEFS
|
#endif // _MOZCE_DEFS
|
||||||
|
|
|
@ -150,6 +150,15 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
MOZCE_SHUNT_API BOOL InitializeAcl(PACL apAcl, DWORD len, DWORD rev);
|
||||||
|
MOZCE_SHUNT_API DWORD SetNamedSecurityInfoW(unsigned short* pObjectName,
|
||||||
|
SE_OBJECT_TYPE ObjectType,
|
||||||
|
SECURITY_INFORMATION SecurityInfo,
|
||||||
|
PSID psidOwner,
|
||||||
|
PSID psidGroup,
|
||||||
|
PACL pDacl,
|
||||||
|
PACL pSacl);
|
||||||
|
|
||||||
// From assert.cpp
|
// From assert.cpp
|
||||||
MOZCE_SHUNT_API void mozce_assert(int inExpression);
|
MOZCE_SHUNT_API void mozce_assert(int inExpression);
|
||||||
|
|
||||||
|
|
|
@ -1199,6 +1199,24 @@ MOZCE_SHUNT_API HWND GetAncestor(HWND hwnd, UINT gaFlags)
|
||||||
return(hwndParent);
|
return(hwndParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MOZCE_SHUNT_API BOOL InitializeAcl(PACL apAcl, DWORD len, DWORD rev)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
MOZCE_SHUNT_API DWORD SetNamedSecurityInfoW(unsigned short* pObjectName,
|
||||||
|
SE_OBJECT_TYPE ObjectType,
|
||||||
|
SECURITY_INFORMATION SecurityInfo,
|
||||||
|
PSID psidOwner,
|
||||||
|
PSID psidGroup,
|
||||||
|
PACL pDacl,
|
||||||
|
PACL pSacl)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче