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
9d834fc1
Commit
9d834fc1
authored
Apr 01, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Apr 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Remove some unused services functions.
parent
0b7a37ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
79 deletions
+0
-79
service.c
dlls/advapi32/service.c
+0
-79
No files found.
dlls/advapi32/service.c
View file @
9d834fc1
...
...
@@ -340,85 +340,6 @@ void __RPC_USER MACHINE_HANDLEW_unbind(MACHINE_HANDLEW MachineName, handle_t h)
}
/******************************************************************************
* registry access functions and data
*/
static
const
WCHAR
szDisplayName
[]
=
{
'D'
,
'i'
,
's'
,
'p'
,
'l'
,
'a'
,
'y'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
szType
[]
=
{
'T'
,
'y'
,
'p'
,
'e'
,
0
};
static
const
WCHAR
szStart
[]
=
{
'S'
,
't'
,
'a'
,
'r'
,
't'
,
0
};
static
const
WCHAR
szError
[]
=
{
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
0
};
static
const
WCHAR
szImagePath
[]
=
{
'I'
,
'm'
,
'a'
,
'g'
,
'e'
,
'P'
,
'a'
,
't'
,
'h'
,
0
};
static
const
WCHAR
szGroup
[]
=
{
'G'
,
'r'
,
'o'
,
'u'
,
'p'
,
0
};
static
const
WCHAR
szDependencies
[]
=
{
'D'
,
'e'
,
'p'
,
'e'
,
'n'
,
'd'
,
'e'
,
'n'
,
'c'
,
'i'
,
'e'
,
's'
,
0
};
static
const
WCHAR
szDependOnService
[]
=
{
'D'
,
'e'
,
'p'
,
'e'
,
'n'
,
'd'
,
'O'
,
'n'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
szObjectName
[]
=
{
'O'
,
'b'
,
'j'
,
'e'
,
'c'
,
't'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
szTag
[]
=
{
'T'
,
'a'
,
'g'
,
0
};
struct
reg_value
{
DWORD
type
;
DWORD
size
;
LPCWSTR
name
;
LPCVOID
data
;
};
static
inline
void
service_set_value
(
struct
reg_value
*
val
,
DWORD
type
,
LPCWSTR
name
,
LPCVOID
data
,
DWORD
size
)
{
val
->
name
=
name
;
val
->
type
=
type
;
val
->
data
=
data
;
val
->
size
=
size
;
}
static
inline
void
service_set_dword
(
struct
reg_value
*
val
,
LPCWSTR
name
,
const
DWORD
*
data
)
{
service_set_value
(
val
,
REG_DWORD
,
name
,
data
,
sizeof
(
DWORD
));
}
static
inline
void
service_set_string
(
struct
reg_value
*
val
,
LPCWSTR
name
,
LPCWSTR
string
)
{
DWORD
len
=
(
lstrlenW
(
string
)
+
1
)
*
sizeof
(
WCHAR
);
service_set_value
(
val
,
REG_SZ
,
name
,
string
,
len
);
}
static
inline
void
service_set_multi_string
(
struct
reg_value
*
val
,
LPCWSTR
name
,
LPCWSTR
string
)
{
DWORD
len
=
0
;
/* determine the length of a double null terminated multi string */
do
{
len
+=
(
lstrlenW
(
&
string
[
len
]
)
+
1
);
}
while
(
string
[
len
++
]
);
len
*=
sizeof
(
WCHAR
);
service_set_value
(
val
,
REG_MULTI_SZ
,
name
,
string
,
len
);
}
static
inline
LONG
service_write_values
(
HKEY
hKey
,
const
struct
reg_value
*
val
,
int
n
)
{
LONG
r
=
ERROR_SUCCESS
;
int
i
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
r
=
RegSetValueExW
(
hKey
,
val
[
i
].
name
,
0
,
val
[
i
].
type
,
(
const
BYTE
*
)
val
[
i
].
data
,
val
[
i
].
size
);
if
(
r
!=
ERROR_SUCCESS
)
break
;
}
return
r
;
}
/******************************************************************************
* Service IPC functions
*/
static
LPWSTR
service_get_pipe_name
(
void
)
...
...
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