ReactOS 0.4.17-dev-357-ga8f14ff
wscript.h File Reference
#include "ihost.h"
Include dependency graph for wscript.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void schedule_timeout (LONG seconds)
 

Variables

IHost host_obj
 
IArguments2 arguments_obj
 
ITypeInfohost_ti
 
ITypeInfoarguments_ti
 
WCHAR scriptFullName []
 
WCHAR ** argums
 
int numOfArgs
 
VARIANT_BOOL wshInteractive
 
LONG wshTimeout
 

Function Documentation

◆ schedule_timeout()

void schedule_timeout ( LONG  seconds)

Definition at line 416 of file main.c.

417{
418 if(timeout_thread) {
423 }
424 if(seconds <= 0)
425 return;
428 else
431 (void *)(DWORD_PTR)(seconds * 1000), 0, NULL);
432}
static DWORD WINAPI timeout_thread_proc(void *arg)
Definition: main.c:406
static HANDLE timeout_thread
Definition: main.c:404
static HANDLE timeout_cancel_event
Definition: main.c:403
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define CloseHandle
Definition: compat.h:739
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
Definition: thread.c:137
#define INFINITE
Definition: serial.h:102
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
Definition: synch.c:82
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
Definition: synch.c:587
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
Definition: synch.c:669
BOOL WINAPI DECLSPEC_HOTPATCH ResetEvent(IN HANDLE hEvent)
Definition: synch.c:650
uint32_t DWORD_PTR
Definition: typedefs.h:65

Referenced by Host_put_Timeout(), and wWinMain().

Variable Documentation

◆ arguments_obj

IArguments2 arguments_obj
extern

Definition at line 140 of file arguments.c.

Referenced by Host_get_Arguments().

◆ arguments_ti

ITypeInfo* arguments_ti
extern

◆ argums

WCHAR** argums
extern

Definition at line 34 of file arguments.c.

Referenced by Arguments2_Item(), and wWinMain().

◆ host_obj

◆ host_ti

◆ numOfArgs

int numOfArgs
extern

Definition at line 35 of file arguments.c.

Referenced by Arguments2_Count(), Arguments2_get_length(), Arguments2_Item(), and wWinMain().

◆ scriptFullName

WCHAR scriptFullName[]
extern

◆ wshInteractive

◆ wshTimeout

LONG wshTimeout
extern

Definition at line 44 of file host.c.

Referenced by Host_get_Timeout(), Host_put_Timeout(), set_host_properties(), and wWinMain().