Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c6a01c42
Commit
c6a01c42
authored
Feb 21, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Add support for RegistrationInfo to task definition XML writer.
parent
890bff26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
2 deletions
+80
-2
task.c
dlls/taskschd/task.c
+80
-2
No files found.
dlls/taskschd/task.c
View file @
c6a01c42
...
...
@@ -1059,6 +1059,12 @@ static const WCHAR task_ns[] = {'h','t','t','p',':','/','/','s','c','h','e','m',
static
const
WCHAR
RegistrationInfo
[]
=
{
'R'
,
'e'
,
'g'
,
'i'
,
's'
,
't'
,
'r'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
'I'
,
'n'
,
'f'
,
'o'
,
0
};
static
const
WCHAR
Author
[]
=
{
'A'
,
'u'
,
't'
,
'h'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
Description
[]
=
{
'D'
,
'e'
,
's'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
Source
[]
=
{
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
Date
[]
=
{
'D'
,
'a'
,
't'
,
'e'
,
0
};
static
const
WCHAR
Version
[]
=
{
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
Documentation
[]
=
{
'D'
,
'o'
,
'c'
,
'u'
,
'm'
,
'e'
,
'n'
,
't'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
URI
[]
=
{
'U'
,
'R'
,
'I'
,
0
};
static
const
WCHAR
SecurityDescriptor
[]
=
{
'S'
,
'e'
,
'c'
,
'u'
,
'r'
,
'i'
,
't'
,
'y'
,
'D'
,
'e'
,
's'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
Settings
[]
=
{
'S'
,
'e'
,
't'
,
't'
,
'i'
,
'n'
,
'g'
,
's'
,
0
};
static
const
WCHAR
Triggers
[]
=
{
'T'
,
'r'
,
'i'
,
'g'
,
'g'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
Principals
[]
=
{
'P'
,
'r'
,
'i'
,
'n'
,
'c'
,
'i'
,
'p'
,
'a'
,
'l'
,
's'
,
0
};
...
...
@@ -1212,11 +1218,83 @@ static HRESULT write_task_attributes(IStream *stream, ITaskDefinition *taskdef)
static
HRESULT
write_registration_info
(
IStream
*
stream
,
IRegistrationInfo
*
reginfo
)
{
HRESULT
hr
;
BSTR
bstr
;
VARIANT
var
;
if
(
!
reginfo
)
return
write_empty_element
(
stream
,
RegistrationInfo
);
FIXME
(
"stub
\n
"
);
return
S_OK
;
hr
=
write_element
(
stream
,
RegistrationInfo
);
if
(
hr
!=
S_OK
)
return
hr
;
push_indent
();
hr
=
IRegistrationInfo_get_Source
(
reginfo
,
&
bstr
);
if
(
hr
==
S_OK
)
{
hr
=
write_text_value
(
stream
,
Source
,
bstr
);
SysFreeString
(
bstr
);
if
(
hr
!=
S_OK
)
return
hr
;
}
hr
=
IRegistrationInfo_get_Date
(
reginfo
,
&
bstr
);
if
(
hr
==
S_OK
)
{
hr
=
write_text_value
(
stream
,
Date
,
bstr
);
SysFreeString
(
bstr
);
if
(
hr
!=
S_OK
)
return
hr
;
}
hr
=
IRegistrationInfo_get_Author
(
reginfo
,
&
bstr
);
if
(
hr
==
S_OK
)
{
hr
=
write_text_value
(
stream
,
Author
,
bstr
);
SysFreeString
(
bstr
);
if
(
hr
!=
S_OK
)
return
hr
;
}
hr
=
IRegistrationInfo_get_Version
(
reginfo
,
&
bstr
);
if
(
hr
==
S_OK
)
{
hr
=
write_text_value
(
stream
,
Version
,
bstr
);
SysFreeString
(
bstr
);
if
(
hr
!=
S_OK
)
return
hr
;
}
hr
=
IRegistrationInfo_get_Description
(
reginfo
,
&
bstr
);
if
(
hr
==
S_OK
)
{
hr
=
write_text_value
(
stream
,
Description
,
bstr
);
SysFreeString
(
bstr
);
if
(
hr
!=
S_OK
)
return
hr
;
}
hr
=
IRegistrationInfo_get_Documentation
(
reginfo
,
&
bstr
);
if
(
hr
==
S_OK
)
{
hr
=
write_text_value
(
stream
,
Documentation
,
bstr
);
SysFreeString
(
bstr
);
if
(
hr
!=
S_OK
)
return
hr
;
}
hr
=
IRegistrationInfo_get_URI
(
reginfo
,
&
bstr
);
if
(
hr
==
S_OK
)
{
hr
=
write_text_value
(
stream
,
URI
,
bstr
);
SysFreeString
(
bstr
);
if
(
hr
!=
S_OK
)
return
hr
;
}
hr
=
IRegistrationInfo_get_SecurityDescriptor
(
reginfo
,
&
var
);
if
(
hr
==
S_OK
)
{
if
(
V_VT
(
&
var
)
==
VT_BSTR
)
{
hr
=
write_text_value
(
stream
,
SecurityDescriptor
,
V_BSTR
(
&
var
));
VariantClear
(
&
var
);
if
(
hr
!=
S_OK
)
return
hr
;
}
else
FIXME
(
"SecurityInfo variant type %d is not supported
\n
"
,
V_VT
(
&
var
));
}
pop_indent
();
return
write_element_end
(
stream
,
RegistrationInfo
);
}
static
HRESULT
write_principal
(
IStream
*
stream
,
IPrincipal
*
principal
)
...
...
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