module Process

def create_environment_block(env_pointer, token)

Returns:
  • (Boolean) - true if successfully retrieves the environment variables for the specified user.

Parameters:
  • token (Integer) -- User token handle.
  • env_pointer (Pointer) -- The environment block is an array of null-terminated Unicode strings.
def create_environment_block(env_pointer, token)
  unless CreateEnvironmentBlock(env_pointer, token, false)
    raise SystemCallError.new("CreateEnvironmentBlock", FFI.errno)
  end
  true
end