Partager via


IVsLibrary2.GetGuid(IntPtr) Method

Definition

Returns a pointer to the GUID of the library.

public:
 int GetGuid([Runtime::InteropServices::Out] IntPtr % ppguidLib);
public int GetGuid (out IntPtr ppguidLib);
abstract member GetGuid : nativeint -> int
Public Function GetGuid (ByRef ppguidLib As IntPtr) As Integer

Parameters

ppguidLib
IntPtr

nativeint

[out] Pointer to the GUID of the current library.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT GetGuid([out] const GUID **ppguidLib);  

This method returns the GUID identifying the current library. Put the library GUID into the code that implements this method. This GUID should be unique to the library.

Note

This method returns a pointer to the GUID, not a copy of the GUID, so the memory the GUID occupies must exist for the life of the library.

Applies to