I can't say I've ever used either of them but there are some examples on pinvoke.net though the first one is for MsiEnumPatchesEx rather than MsiEnumPatches: