/*1* Copyright (c) 2006 Robert Reif2*3* This library is free software; you can redistribute it and/or4* modify it under the terms of the GNU Lesser General Public5* License as published by the Free Software Foundation; either6* version 2.1 of the License, or (at your option) any later version.7*8* This library is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU11* Lesser General Public License for more details.12*13* You should have received a copy of the GNU Lesser General Public14* License along with this library; if not, write to the Free Software15* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA16*17*/1819#ifndef __WINE_ADVAPI32MISC_H20#define __WINE_ADVAPI32MISC_H2122#include "ntsecapi.h"23#include "winsvc.h"24#include "winnls.h"2526const char * debugstr_sid(PSID sid);27BOOL ADVAPI_IsLocalComputer(LPCWSTR ServerName);28BOOL ADVAPI_GetComputerSid(PSID sid);2930BOOL lookup_local_wellknown_name(const LSA_UNICODE_STRING*, PSID, LPDWORD, LPWSTR, LPDWORD, PSID_NAME_USE, BOOL*);31BOOL lookup_local_user_name(const LSA_UNICODE_STRING*, PSID, LPDWORD, LPWSTR, LPDWORD, PSID_NAME_USE, BOOL*);32const WCHAR *get_wellknown_privilege_name(const LUID *);3334/* memory allocation functions */3536static inline WCHAR *strdupAW( const char *src )37{38WCHAR *dst = NULL;39if (src)40{41DWORD len = MultiByteToWideChar( CP_ACP, 0, src, -1, NULL, 0 );42if ((dst = malloc( len * sizeof(WCHAR) ))) MultiByteToWideChar( CP_ACP, 0, src, -1, dst, len );43}44return dst;45}4647#endif /* __WINE_ADVAPI32MISC_H */484950