module Process

def destroy_environment_block(env_pointer)

Returns:
  • (Boolean) - true if successfully frees environment variables created by the CreateEnvironmentBlock function.

Parameters:
  • env_pointer (Pointer) -- The environment block is an array of null-terminated Unicode strings.
def destroy_environment_block(env_pointer)
  unless DestroyEnvironmentBlock(env_pointer)
    raise SystemCallError.new("DestroyEnvironmentBlock", FFI.errno)
  end
  true
end