35#define BUILDVERSION 16535
37static const WCHAR wshNameW[] = {
'W',
'i',
'n',
'd',
'o',
'w',
's',
' ',
'S',
'c',
'r',
'i',
'p',
't',
' ',
'H',
'o',
's',
't',0};
52 static const WCHAR nullW[] = {
'n',
'u',
'l',
'l',0};
76 static const WCHAR windows_script_hostW[] =
77 {
'W',
'i',
'n',
'd',
'o',
'w',
's',
' ',
'S',
'c',
'r',
'i',
'p',
't',
' ',
'H',
'o',
's',
't',0};
85 static const WCHAR crnlW[] = {
'\r',
'\n'};
136 WINE_TRACE(
"(%x %x %p\n", iTInfo, lcid, ppTInfo);
147 cNames, lcid, rgDispId);
149 return ITypeInfo_GetIDsOfNames(
host_ti, rgszNames, cNames, rgDispId);
154 EXCEPINFO *pExcepInfo,
UINT *puArgErr)
156 WINE_TRACE(
"(%d %p %p)\n", dispIdMember, pDispParams, pVarResult);
158 return ITypeInfo_Invoke(
host_ti, iface, dispIdMember,
wFlags, pDispParams,
159 pVarResult, pExcepInfo, puArgErr);
227 FIXME(
"(%d) semi-stub: no script engine clean up\n", ExitCode);
316 IUnknown_Release(unk);
347 argc = ubound-lbound+1;
348 strs = heap_alloc_zero(
argc*
sizeof(*strs));
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING Pathname
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
IArguments2 arguments_obj
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
WCHAR scriptFullName[MAX_PATH]
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
#define WideCharToMultiByte
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleOutputCP(VOID)
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)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
VOID WINAPI ExitProcess(IN UINT uExitCode)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI DECLSPEC_HOTPATCH CLSIDFromProgID(LPCOLESTR progid, LPCLSID clsid)
HRESULT WINAPI SafeArrayGetUBound(SAFEARRAY *psa, UINT nDim, LONG *plUbound)
HRESULT WINAPI SafeArrayAccessData(SAFEARRAY *psa, void **ppvData)
HRESULT WINAPI SafeArrayUnaccessData(SAFEARRAY *psa)
UINT WINAPI SafeArrayGetDim(SAFEARRAY *psa)
HRESULT WINAPI SafeArrayGetLBound(SAFEARRAY *psa, UINT nDim, LONG *plLbound)
GLuint GLuint GLsizei count
GLenum GLuint GLenum GLsizei const GLchar * buf
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 HRESULT WINAPI Host_QueryInterface(IHost *iface, REFIID riid, void **ppv)
static HRESULT WINAPI Host_get_Application(IHost *iface, IDispatch **out_Dispatch)
static ULONG WINAPI Host_Release(IHost *iface)
static HRESULT WINAPI Host_Invoke(IHost *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI Host_GetTypeInfoCount(IHost *iface, UINT *pctinfo)
static HRESULT WINAPI Host_Echo(IHost *iface, SAFEARRAY *args)
static HRESULT WINAPI Host_get_ScriptFullName(IHost *iface, BSTR *out_ScriptFullName)
static HRESULT WINAPI Host_CreateObject(IHost *iface, BSTR ProgID, BSTR Prefix, IDispatch **out_Dispatch)
static void print_string(const WCHAR *string)
static HRESULT WINAPI Host_GetObject(IHost *iface, BSTR Pathname, BSTR ProgID, BSTR Prefix, IDispatch **out_Dispatch)
static HRESULT WINAPI Host_get_FullName(IHost *iface, BSTR *out_Path)
static HRESULT WINAPI Host_get_Name(IHost *iface, BSTR *out_Name)
static HRESULT WINAPI Host_GetIDsOfNames(IHost *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI Host_get_Version(IHost *iface, BSTR *out_Version)
static HRESULT WINAPI Host_get_Interactive(IHost *iface, VARIANT_BOOL *out_Interactive)
static HRESULT WINAPI Host_get_ScriptName(IHost *iface, BSTR *out_ScriptName)
static HRESULT WINAPI Host_get_BuildVersion(IHost *iface, int *out_Build)
static HRESULT WINAPI Host_ConnectObject(IHost *iface, IDispatch *Object, BSTR Prefix)
static const WCHAR wshNameW[]
static HRESULT to_string(VARIANT *src, BSTR *dst)
static HRESULT WINAPI Host_put_Interactive(IHost *iface, VARIANT_BOOL v)
static HRESULT WINAPI Host_get_Timeout(IHost *iface, LONG *out_Timeout)
static const WCHAR wshVersionW[]
static HRESULT WINAPI Host_get_Path(IHost *iface, BSTR *out_Path)
static HRESULT WINAPI Host_get_StdErr(IHost *iface, ITextStream **ppts)
static HRESULT WINAPI Host_get_StdOut(IHost *iface, ITextStream **ppts)
static HRESULT WINAPI Host_Sleep(IHost *iface, LONG Time)
static HRESULT WINAPI Host_GetTypeInfo(IHost *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI Host_Quit(IHost *iface, int ExitCode)
static ULONG WINAPI Host_AddRef(IHost *iface)
static const IHostVtbl HostVtbl
static HRESULT WINAPI Host_get_Arguments(IHost *iface, IArguments2 **out_Arguments)
static HRESULT WINAPI Host_put_Timeout(IHost *iface, LONG v)
VARIANT_BOOL wshInteractive
static HRESULT WINAPI Host_DisconnectObject(IHost *iface, IDispatch *Object)
static HRESULT WINAPI Host_get_StdIn(IHost *iface, ITextStream **ppts)
static const WCHAR nullW[]
#define memcpy(s1, s2, n)
static const char * debugstr_variant(const VARIANT *var)
static PLARGE_INTEGER Time
static VARIANTARG static DISPID
#define UNREFERENCED_PARAMETER(P)
BSTR WINAPI SysAllocString(LPCOLESTR str)
UINT WINAPI SysStringLen(BSTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
#define IsEqualGUID(rguid1, rguid2)
static __inline const char * wine_dbgstr_guid(const GUID *id)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
HRESULT WINAPI DECLSPEC_HOTPATCH VariantChangeType(VARIANTARG *pvargDest, VARIANTARG *pvargSrc, USHORT wFlags, VARTYPE vt)
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
#define STD_OUTPUT_HANDLE
_In_ DWORD _Out_ _In_ WORD wFlags
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
_In_ __drv_aliasesMem PSTRING Prefix