~ubuntu-branches/ubuntu/saucy/vmware-view-open-client/saucy

« back to all changes in this revision

Viewing changes to lib/bora/include/vm_group.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2010-06-04 17:45:04 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100604174504-zjltuc0hdp4mv7de
Tags: 4.5.0-264434+dfsg-1
* Merging upstream version 4.5.0-264434+dfsg.
* Updating date and version header in manpage.
* Rediffing doc-pdf.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*********************************************************
 
2
 * Copyright (C) 1998-2010 VMware, Inc. All rights reserved.
 
3
 *
 
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.
 
7
 *
 
8
 * This program is released with an additional exemption that
 
9
 * compiling, linking, and/or using the OpenSSL libraries with this
 
10
 * program is allowed.
 
11
 *
 
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.
 
16
 *
 
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.
 
20
 *
 
21
 *********************************************************/
 
22
 
 
23
#include "vm_version.h"
 
24
 
 
25
/*
 
26
 * Unicode string macros.
 
27
 */
 
28
#define __UC(x)      L ## x
 
29
#define _UC(x)       __UC(x)
 
30
 
 
31
/*
 
32
 * The names of the VMware group and user that we create for security purposes.
 
33
 */
 
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"
 
39
 
 
40
/*
 
41
 * The registry key used to save the VMware group SID for use by the driver.
 
42
 */
 
43
#ifdef VM_X86_64
 
44
#define VMWARE_SID_REGKEY       L"SOFTWARE\\Wow6432Node\\" _UC(COMPANY_NAME) L"\\SID"
 
45
/*
 
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).
 
49
 */
 
50
#define VMWARE_ACCTINFO_REGKEY  "SOFTWARE\\Wow6432Node\\" COMPANY_NAME "\\" \
 
51
                                PRODUCT_REG_NAME "\\AccountInfo"
 
52
#else
 
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"
 
56
#endif