2 * Copyright 2012 Hans Leidekker for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
28 #include "wine/debug.h"
29 #include "wbemprox_private.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(wbemprox
);
33 static const WCHAR class_biosW
[] =
34 {'W','i','n','3','2','_','B','I','O','S',0};
36 static const WCHAR prop_captionW
[] =
37 {'C','a','p','t','i','o','n',0};
38 static const WCHAR prop_descriptionW
[] =
39 {'D','e','s','c','r','i','p','t','i','o','n',0};
40 static const WCHAR prop_manufacturerW
[] =
41 {'M','a','n','u','f','a','c','t','u','r','e','r',0};
42 static const WCHAR prop_releasedateW
[] =
43 {'R','e','l','e','a','s','e','D','a','t','e',0};
44 static const WCHAR prop_serialnumberW
[] =
45 {'S','e','r','i','a','l','N','u','m','b','e','r',0};
47 static const struct column col_bios
[] =
49 { prop_descriptionW
, CIM_STRING
},
50 { prop_manufacturerW
, CIM_STRING
},
51 { prop_releasedateW
, CIM_DATETIME
},
52 { prop_serialnumberW
, CIM_STRING
}
55 static const WCHAR bios_descriptionW
[] =
56 {'D','e','f','a','u','l','t',' ','S','y','s','t','e','m',' ','B','I','O','S',0};
57 static const WCHAR bios_manufacturerW
[] =
58 {'T','h','e',' ','W','i','n','e',' ','P','r','o','j','e','c','t',0};
59 static const WCHAR bios_releasedateW
[] =
60 {'2','0','1','2','0','6','0','8','0','0','0','0','0','0','.','0','0','0','0','0','0','+','0','0','0',0};
61 static const WCHAR bios_serialnumberW
[] =
67 const WCHAR
*description
;
68 const WCHAR
*manufacturer
;
69 const WCHAR
*releasedate
;
70 const WCHAR
*serialnumber
;
74 static const struct record_bios data_bios
[] =
76 { bios_descriptionW
, bios_manufacturerW
, bios_releasedateW
, bios_serialnumberW
}
79 static struct table classtable
[] =
81 { class_biosW
, SIZEOF(col_bios
), col_bios
, SIZEOF(data_bios
), (BYTE
*)data_bios
}
84 struct table
*get_table( const WCHAR
*name
)
87 struct table
*table
= NULL
;
89 for (i
= 0; i
< SIZEOF(classtable
); i
++)
91 if (!strcmpiW( classtable
[i
].name
, name
))
93 table
= &classtable
[i
];