This method returns standard Component Object Model (COM) error codes, as defined in WinError.h, in addition to the following values.
Return code | Description |
|---|
S_OK | The method completed successfully. |
E_INVALIDARG |
pVersion is null and cchBuffer is not null, or vice versa. -or-
hProcess is not a valid handle to a process. -or- The CLR is not loaded. |
ERROR_INSUFFICIENT_BUFFER |
cchBuffer is null or less than the length of the version string. |
E_NOTIMPL | This method is not available on the Microsoft Windows 95, Microsoft Windows 98, or Microsoft Windows Millennium Edition operating system. |