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 const WCHAR classW[]
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
static const WCHAR * find_class(const WCHAR *alias)
GLint GLint GLsizei width
HRESULT WINAPI DECLSPEC_HOTPATCH VariantChangeType(VARIANTARG *pvargDest, VARIANTARG *pvargSrc, USHORT wFlags, VARTYPE vt)
static const WCHAR cpuW[]
static const WCHAR win32_logicaldiskW[]
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
WINE_DEFAULT_DEBUG_CHANNEL(wmic)
static const WCHAR win32_computersystemW[]
static WCHAR * find_prop(IWbemClassObject *class, const WCHAR *prop)
static WCHAR * strdupW(const WCHAR *src)
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleW(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
GLuint GLuint GLsizei count
#define RPC_C_AUTHN_LEVEL_DEFAULT
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
HRESULT WINAPI SafeArrayGetElement(SAFEARRAY *psa, LONG *rgIndices, void *pvData)
#define RPC_C_IMP_LEVEL_IMPERSONATE
HRESULT WINAPI CoInitializeSecurity(PSECURITY_DESCRIPTOR pSecDesc, LONG cAuthSvc, SOLE_AUTHENTICATION_SERVICE *asAuthSvc, void *pReserved1, DWORD dwAuthnLevel, DWORD dwImpLevel, void *pReserved2, DWORD dwCapabilities, void *pReserved3)
int wmain(int argc, WCHAR *argv[])
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
GLsizei GLsizei GLuint * obj
static const struct @5 alias_map[]
static const WCHAR biosW[]
static const WCHAR getW[]
static int output_string(HANDLE handle, const WCHAR *msg,...)
static const WCHAR wqlW[]
BSTR WINAPI SysAllocString(LPCOLESTR str)
static const WCHAR win32_operatingsystemW[]
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
static const WCHAR processW[]
static const WCHAR win32_biosW[]
static const WCHAR computersystemW[]
#define STRING_INVALID_QUERY
HRESULT WINAPI SafeArrayDestroy(SAFEARRAY *psa)
static const WCHAR exitW[]
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
static const WCHAR logicaldiskW[]
GLsizei const GLfloat * value
#define STRING_CMDLINE_NOT_SUPPORTED
#define STD_OUTPUT_HANDLE
static int query_prop(const WCHAR *class, const WCHAR *propname)
static const WCHAR nicW[]
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI SafeArrayGetUBound(SAFEARRAY *psa, UINT nDim, LONG *plUbound)
WINE_UNICODE_INLINE WCHAR * strcpyW(WCHAR *dst, const WCHAR *src)
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
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
WINE_UNICODE_INLINE WCHAR * strcatW(WCHAR *dst, const WCHAR *src)
static const WCHAR win32_networkadapterW[]
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
#define STRING_INVALID_PATH
static int output_error(int msg)
static const WCHAR win32_processorW[]
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
static int output_line(const WCHAR *str, ULONG column_width)
#define STRING_ALIAS_NOT_FOUND
static const WCHAR win32_processW[]
#define HeapFree(x, y, z)
static struct sockaddr_in sa
static int output_header(const WCHAR *prop, ULONG column_width)