INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Visual Eiffel Library.", "Win32 API: Functions used with processes and threads."
project: "Visual Eiffel Win32 Library"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: winlib
class WAPI_PROCESS_AND_THREAD_FUNCTIONS
inherit

WAPI_ERROR_SERVER
end
feature -- Process functions

frozen CreateProcess (lpapplicationname: POINTER; lpcommandline: POINTER; lpprocessattributes: POINTER; lpthreadattributes: POINTER; binherithandles: INTEGER; dwcreationflags: BIT 32; lpenvironment: POINTER; lpcurrentdirectory: POINTER; lpstartupinfo: POINTER; lpprocessinformation: POINTER): INTEGER
-- The `CreateProcess' function creates a new process and its
-- primary thread. The new process executes the specified
-- executable file

frozen OpenProcess (dwdesiredaccess: BIT 32; binherithandle: BOOLEAN; dwprocessid: INTEGER): INTEGER
-- HANDLE
-- The OpenProcess function returns a handle of an existing process
-- object.

frozen GetCurrentProcess: INTEGER
-- The `GetCurrentProcess' function returns a pseudohandle for the
-- current process

frozen GetCurrentProcessId: INTEGER
-- The `GetCurrentProcessId' function returns the process identifier
-- of the calling process

frozen GetExitCodeProcess (hprocess: INTEGER; lpexitcode: POINTER): INTEGER
-- The `GetExitCodeProcess' function retrieves the termination status
-- of the specified process

frozen GetPriorityClass (hprocess: INTEGER): INTEGER
-- The `GetPriorityClass' function returns the priority class for
-- the specified process.
-- This value, together with the priority value of each thread of
-- the process, determines each thread's base priority level.

frozen SetPriorityClass (hprocess: INTEGER; dwpriorityclass: INTEGER): INTEGER
-- The `SetPriorityClass' function sets the priority class for
-- the specified process.
-- This value together with the priority value of each thread of
-- the process determines each thread's base priority level.

frozen GetEnvironmentVariable (lpname: POINTER; lpbuffer: POINTER; nsize: INTEGER): INTEGER
-- DWORD
-- The `GetEnvironmentVariable' function retrieves the value
-- of the specified variable from the environment block
-- of the calling process. The value is in the form
-- of a null-terminated string of characters.
-- Parameters
-- lpName - Points to a null-terminated string that specifies
-- the environment variable.
-- lpBuffer - Points to a buffer to receive the value of the
-- specified environment variable.
-- nSize - Specifies the size, in characters, of the buffer
-- pointed to by the `lpBuffer' parameter.
-- Return Value
-- If the function succeeds, the return value is the number
-- of characters stored into the buffer pointed to by lpBuffer,
-- not including the terminating null character.
-- If the specified environment variable name was not found
-- in the environment block for the current process, the return
-- value is zero.
-- If the buffer pointed to by lpBuffer is not large enough,
-- the return value is the buffer size, in characters, required
-- to hold the value string and its terminating null character.

frozen SetEnvironmentVariable (lpname: POINTER; lpvalue: POINTER): INTEGER
-- BOOL
-- The `SetEnvironmentVariable' function sets the value
-- of an environment variable for the current process.
-- Parameters
-- lpName - Points to a null-terminated string that specifies
-- the environment variable whose value is being set.
-- The operating system creates the environment variable
-- if it does not exist and lpValue is not NULL.
-- lpValue - Points to a null-terminated string containing
-- the new value of the specified environment variable.
-- If this parameter is NULL, the variable is deleted
-- from the current process's environment.
-- Return Values
-- If the function succeeds, the return value is TRUE.
-- If the function fails, the return value is FALSE.
-- To get extended error information, call `GetLastError'.
feature -- Thread functions

frozen GetCurrentThread: INTEGER
-- The `GetCurrentThread' function returns a pseudohandle
-- for the current thread

frozen GetCurrentThreadId: INTEGER
-- The `GetCurrentThreadId' function returns the thread identifier
-- of the calling thread

frozen GetExitCodeThread (hthread: INTEGER; lpexitcode: POINTER): INTEGER
-- The `GetExitCodeThread' function retrieves the termination status
-- of the specified thread

frozen Sleep (dwmilliseconds: INTEGER)
-- The `Sleep' function suspends the execution of the current thread
-- for a specified interval
end -- class WAPI_PROCESS_AND_THREAD_FUNCTIONS

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES