Commit 9d834fc1 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

advapi32: Remove some unused services functions.

parent 0b7a37ac
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment