Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
cda320f0
Commit
cda320f0
authored
Aug 07, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Stub __SystemSecurity::SetSD.
parent
c55beb65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
1 deletion
+42
-1
builtin.c
dlls/wbemprox/builtin.c
+5
-1
security.c
dlls/wbemprox/security.c
+35
-0
wbemprox_private.h
dlls/wbemprox/wbemprox_private.h
+2
-0
No files found.
dlls/wbemprox/builtin.c
View file @
cda320f0
...
...
@@ -496,6 +496,7 @@ static const struct column col_stdregprov[] =
static
const
struct
column
col_systemsecurity
[]
=
{
{
method_getsdW
,
CIM_FLAG_ARRAY
|
COL_FLAG_METHOD
},
{
method_setsdW
,
CIM_FLAG_ARRAY
|
COL_FLAG_METHOD
},
};
static
const
struct
column
col_videocontroller
[]
=
{
...
...
@@ -807,6 +808,7 @@ struct record_stdregprov
struct
record_systemsecurity
{
class_method
*
getsd
;
class_method
*
setsd
;
};
struct
record_videocontroller
{
...
...
@@ -857,6 +859,8 @@ static const struct record_param data_param[] =
{
class_stdregprovW
,
method_getstringvalueW
,
-
1
,
param_valueW
,
CIM_STRING
},
{
class_systemsecurityW
,
method_getsdW
,
-
1
,
param_returnvalueW
,
CIM_UINT32
,
VT_I4
},
{
class_systemsecurityW
,
method_getsdW
,
-
1
,
param_sdW
,
CIM_UINT8
|
CIM_FLAG_ARRAY
},
{
class_systemsecurityW
,
method_setsdW
,
1
,
param_sdW
,
CIM_UINT8
|
CIM_FLAG_ARRAY
},
{
class_systemsecurityW
,
method_setsdW
,
-
1
,
param_returnvalueW
,
CIM_UINT32
,
VT_I4
},
};
#define FLAVOR_ID (WBEM_FLAVOR_FLAG_PROPAGATE_TO_INSTANCE | WBEM_FLAVOR_NOT_OVERRIDABLE |\
...
...
@@ -881,7 +885,7 @@ static const struct record_stdregprov data_stdregprov[] =
};
static
const
struct
record_systemsecurity
data_systemsecurity
[]
=
{
{
security_get_sd
}
{
security_get_sd
,
security_set_sd
}
};
/* check if row matches condition and update status */
...
...
dlls/wbemprox/security.c
View file @
cda320f0
...
...
@@ -180,3 +180,38 @@ HRESULT security_get_sd( IWbemClassObject *obj, IWbemClassObject *in, IWbemClass
return
hr
;
}
HRESULT
security_set_sd
(
IWbemClassObject
*
obj
,
IWbemClassObject
*
in
,
IWbemClassObject
**
out
)
{
VARIANT
retval
;
IWbemClassObject
*
sig
,
*
out_params
=
NULL
;
HRESULT
hr
;
FIXME
(
"stub
\n
"
);
hr
=
create_signature
(
class_systemsecurityW
,
method_setsdW
,
PARAM_OUT
,
&
sig
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWbemClassObject_SpawnInstance
(
sig
,
0
,
&
out_params
);
IWbemClassObject_Release
(
sig
);
}
if
(
SUCCEEDED
(
hr
))
{
set_variant
(
VT_UI4
,
S_OK
,
NULL
,
&
retval
);
hr
=
IWbemClassObject_Put
(
out_params
,
param_returnvalueW
,
0
,
&
retval
,
CIM_UINT32
);
if
(
SUCCEEDED
(
hr
)
&&
out
)
{
*
out
=
out_params
;
IWbemClassObject_AddRef
(
out_params
);
}
IWbemClassObject_Release
(
out_params
);
}
return
hr
;
}
dlls/wbemprox/wbemprox_private.h
View file @
cda320f0
...
...
@@ -225,6 +225,7 @@ HRESULT service_resume_service(IWbemClassObject *, IWbemClassObject *, IWbemClas
HRESULT
service_start_service
(
IWbemClassObject
*
,
IWbemClassObject
*
,
IWbemClassObject
**
)
DECLSPEC_HIDDEN
;
HRESULT
service_stop_service
(
IWbemClassObject
*
,
IWbemClassObject
*
,
IWbemClassObject
**
)
DECLSPEC_HIDDEN
;
HRESULT
security_get_sd
(
IWbemClassObject
*
,
IWbemClassObject
*
,
IWbemClassObject
**
)
DECLSPEC_HIDDEN
;
HRESULT
security_set_sd
(
IWbemClassObject
*
,
IWbemClassObject
*
,
IWbemClassObject
**
)
DECLSPEC_HIDDEN
;
static
void
*
heap_alloc
(
size_t
len
)
__WINE_ALLOC_SIZE
(
1
);
static
inline
void
*
heap_alloc
(
size_t
len
)
...
...
@@ -271,6 +272,7 @@ static const WCHAR method_getsdW[] = {'G','e','t','S','D',0};
static
const
WCHAR
method_getstringvalueW
[]
=
{
'G'
,
'e'
,
't'
,
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
'V'
,
'a'
,
'l'
,
'u'
,
'e'
,
0
};
static
const
WCHAR
method_pauseserviceW
[]
=
{
'P'
,
'a'
,
'u'
,
's'
,
'e'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
method_resumeserviceW
[]
=
{
'R'
,
'e'
,
's'
,
'u'
,
'm'
,
'e'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
method_setsdW
[]
=
{
'S'
,
'e'
,
't'
,
'S'
,
'D'
,
0
};
static
const
WCHAR
method_startserviceW
[]
=
{
'S'
,
't'
,
'a'
,
'r'
,
't'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
method_stopserviceW
[]
=
{
'S'
,
't'
,
'o'
,
'p'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
0
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment