31#include "wine/unicode.h"
38 {
'c',
'o',
'm',
'p',
'u',
't',
'e',
'r',
's',
'y',
's',
't',
'e',
'm',0};
42 {
'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',0};
48 {
'p',
'r',
'o',
'c',
'e',
's',
's',0};
51 {
'W',
'i',
'n',
'3',
'2',
'_',
'B',
'I',
'O',
'S',0};
53 {
'W',
'i',
'n',
'3',
'2',
'_',
'C',
'o',
'm',
'p',
'u',
't',
'e',
'r',
'S',
'y',
's',
't',
'e',
'm',0};
55 {
'W',
'i',
'n',
'3',
'2',
'_',
'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',0};
57 {
'W',
'i',
'n',
'3',
'2',
'_',
'N',
'e',
't',
'w',
'o',
'r',
'k',
'A',
'd',
'a',
'p',
't',
'e',
'r',0};
59 {
'W',
'i',
'n',
'3',
'2',
'_',
'O',
'p',
'e',
'r',
'a',
't',
'i',
'n',
'g',
'S',
'y',
's',
't',
'e',
'm',0};
61 {
'W',
'i',
'n',
'3',
'2',
'_',
'P',
'r',
'o',
'c',
'e',
's',
's',0};
63 {
'W',
'i',
'n',
'3',
'2',
'_',
'P',
'r',
'o',
'c',
'e',
's',
's',
'o',
'r',0};
105 LONG i, last_index = 0;
111 for (
i = 0;
i <= last_index;
i++)
143 static const WCHAR fmtW[] = {
'%',
's',0};
152 static const WCHAR bomW[] = {0xfeff}, fmtW[] = {
'%',
'-',
'*',
's',
'\r',
'\n',0};
163 count +=
sizeof(bomW);
171 static const WCHAR fmtW[] = {
'%',
'-',
'*',
's',
'\r',
'\n',0};
177 static const WCHAR select_allW[] = {
'S',
'E',
'L',
'E',
'C',
'T',
' ',
'*',
' ',
'F',
'R',
'O',
'M',
' ',0};
178 static const WCHAR cimv2W[] = {
'R',
'O',
'O',
'T',
'\\',
'C',
'I',
'M',
'V',
'2',0};
179 static const WCHAR wqlW[] = {
'W',
'Q',
'L',0};
201 if (
hr !=
S_OK)
goto done;
205 if (
hr !=
S_OK)
goto done;
214 if (
hr !=
S_OK)
goto done;
232 IWbemClassObject_Release(
obj );
236 IEnumWbemClassObject_Reset(
result );
253 IWbemClassObject_Release(
obj );
271 static const WCHAR getW[] = {
'g',
'e',
't',0};
272 static const WCHAR quitW[] = {
'q',
'u',
'i',
't',0};
273 static const WCHAR exitW[] = {
'e',
'x',
'i',
't',0};
274 static const WCHAR pathW[] = {
'p',
'a',
't',
'h',0};
275 static const WCHAR classW[] = {
'c',
'l',
'a',
's',
's',0};
276 static const WCHAR contextW[] = {
'c',
'o',
'n',
't',
'e',
'x',
't',0};
static struct sockaddr_in sa
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static int query_prop(const WCHAR *class, const WCHAR *propname)
static const WCHAR win32_networkadapterW[]
static int output_string(HANDLE handle, const WCHAR *msg,...)
static int output_error(int msg)
static const WCHAR processW[]
static int output_line(const WCHAR *str, ULONG column_width)
static const WCHAR nicW[]
static WCHAR * find_prop(IWbemClassObject *class, const WCHAR *prop)
static int output_header(const WCHAR *prop, ULONG column_width)
static const WCHAR win32_operatingsystemW[]
static const WCHAR computersystemW[]
static const WCHAR biosW[]
static const WCHAR win32_processW[]
static const WCHAR cpuW[]
static const WCHAR logicaldiskW[]
static WCHAR * strdupW(const WCHAR *src)
static const WCHAR win32_biosW[]
static const struct @5 alias_map[]
static const WCHAR * find_class(const WCHAR *alias)
static const WCHAR win32_processorW[]
static const WCHAR win32_computersystemW[]
static const WCHAR win32_logicaldiskW[]
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
#define HeapFree(x, y, z)
static const WCHAR getW[]
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleW(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
HRESULT WINAPI CoInitializeSecurity(PSECURITY_DESCRIPTOR pSecDesc, LONG cAuthSvc, SOLE_AUTHENTICATION_SERVICE *asAuthSvc, void *pReserved1, DWORD dwAuthnLevel, DWORD dwImpLevel, void *pReserved2, DWORD dwCapabilities, void *pReserved3)
HRESULT WINAPI SafeArrayGetUBound(SAFEARRAY *psa, UINT nDim, LONG *plUbound)
HRESULT WINAPI SafeArrayGetElement(SAFEARRAY *psa, LONG *rgIndices, void *pvData)
HRESULT WINAPI SafeArrayDestroy(SAFEARRAY *psa)
GLuint GLuint GLsizei count
GLint GLint GLsizei width
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static const WCHAR wqlW[]
BSTR WINAPI SysAllocString(LPCOLESTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
#define RPC_C_AUTHN_LEVEL_DEFAULT
#define RPC_C_IMP_LEVEL_IMPERSONATE
HRESULT WINAPI DECLSPEC_HOTPATCH VariantChangeType(VARIANTARG *pvargDest, VARIANTARG *pvargSrc, USHORT wFlags, VARTYPE vt)
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
static const WCHAR classW[]
static const WCHAR exitW[]
@ WBEM_FLAG_RETURN_IMMEDIATELY
#define STD_OUTPUT_HANDLE
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define STRING_ALIAS_NOT_FOUND
#define STRING_CMDLINE_NOT_SUPPORTED
#define STRING_INVALID_QUERY
#define STRING_INVALID_PATH