1
/*********************************************************
2
* Copyright (C) 1998-2010 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License as published
6
* by the Free Software Foundation version 2.1 and no later version.
8
* This program is released with an additional exemption that
9
* compiling, linking, and/or using the OpenSSL libraries with this
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14
* or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
15
* License for more details.
17
* You should have received a copy of the GNU Lesser General Public License
18
* along with this program; if not, write to the Free Software Foundation, Inc.,
19
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21
*********************************************************/
23
#include "vm_version.h"
26
* Unicode string macros.
28
#define __UC(x) L ## x
29
#define _UC(x) __UC(x)
32
* The names of the VMware group and user that we create for security purposes.
34
#define VMWARE_USER L"__vmware_user__"
35
#define VMWARE_USER_CSTR "__vmware_user__"
36
#define VMWARE_USER_DESC L"VMware User"
37
#define VMWARE_GROUP L"__vmware__"
38
#define VMWARE_GROUP_DESC L"VMware User Group"
41
* The registry key used to save the VMware group SID for use by the driver.
44
#define VMWARE_SID_REGKEY L"SOFTWARE\\Wow6432Node\\" _UC(COMPANY_NAME) L"\\SID"
46
* The registry key used to store username/password for VMs. I'd like this to be
47
* a wide-char string, but _UC(PRODUCT_REG_NAME) doesn't work since PRODUCT_REG_NAME
48
* is itself a concatentation of 8-bit chars (which causes a width mismatch).
50
#define VMWARE_ACCTINFO_REGKEY "SOFTWARE\\Wow6432Node\\" COMPANY_NAME "\\" \
51
PRODUCT_REG_NAME "\\AccountInfo"
53
#define VMWARE_SID_REGKEY L"SOFTWARE\\" _UC(COMPANY_NAME) L"\\SID"
54
#define VMWARE_ACCTINFO_REGKEY "SOFTWARE\\" COMPANY_NAME "\\" \
55
PRODUCT_REG_NAME "\\AccountInfo"