The function supports GetLastError. If an error occurs during the function, the caller can call GetLastError to retrieve the error code.
Syntax
Requirements
Namespace: System.Runtime.InteropServices.ComTypes
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0