Finely dice the garlic and onion. Fry the ham (or bacon) in a saucepan until crispy. Add the garlic and onion and fry briefly. Deglaze with the white wine, bring to the boil briefly, then lower the temperature and simmer over low heat until only half of the liquid is left. Add grated cheese, let melt while stirring constantly. Add the cream, bring to the boil briefly. Season to taste with vegetable stock powder and freshly ground black pepper. If necessary, the sauce can be thickened with cornstarch. In the meantime, cook the pasta in plenty of salted water and serve with the sauce.