#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wbemcli.h"
#include "wine/debug.h"
#include "wbemprox_private.h"
Go to the source code of this file.
◆ COBJMACROS
◆ get_owner()
Definition at line 34 of file process.c.
35{
38
45
52
54
55done:
57 {
60 }
63}
void user(int argc, const char *argv[])
BOOL WINAPI GetComputerNameW(LPWSTR lpBuffer, LPDWORD lpnSize)
#define ERROR_INSUFFICIENT_BUFFER
BOOL WINAPI GetUserNameW(LPWSTR lpszName, LPDWORD lpSize)
void set_variant(VARTYPE type, LONGLONG val, void *val_ptr, VARIANT *ret)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
DWORD WINAPI GetLastError(void)
#define ERROR_BUFFER_OVERFLOW
Referenced by alloc_rootdir_entry(), check_file(), process_get_owner(), and test_file().
◆ process_get_owner()
Definition at line 65 of file process.c.
66{
70
72
75
77 {
78 hr = IWbemClassObject_SpawnInstance( sig, 0, &
out_params );
80 {
81 IWbemClassObject_Release( sig );
83 }
84 }
90 {
91 if (!
V_UI4( &retval ))
92 {
97 }
99 }
100
101done:
104 IWbemClassObject_Release( sig );
106 {
109 }
112}
HRESULT create_signature(const WCHAR *class, const WCHAR *method, enum param_direction dir, IWbemClassObject **sig)
static HRESULT get_owner(VARIANT *user, VARIANT *domain, VARIANT *retval)
static void out_params(void)
void WINAPI VariantInit(VARIANTARG *pVarg)
static const WCHAR param_userW[]
static const WCHAR method_getownerW[]
static const WCHAR class_processW[]
static const WCHAR param_returnvalueW[]
static const WCHAR param_domainW[]
Referenced by fill_process().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
wbemprox |
| ) |
|