private Guid GetPropertyPageGuid(NativeMethods.IPerPropertyBrowsing target, int dispid)
        {
            // check for a property page
            int hr = target.MapPropertyToPage(dispid, out Guid guid);

            if (hr == NativeMethods.S_OK)
            {
                return(guid);
            }
            return(Guid.Empty);
        }
Exemplo n.º 2
0
        private unsafe Guid GetPropertyPageGuid(NativeMethods.IPerPropertyBrowsing target, Ole32.DispatchID dispid)
        {
            // check for a property page
            Guid    guid = Guid.Empty;
            HRESULT hr   = target.MapPropertyToPage(dispid, &guid);

            if (hr == HRESULT.S_OK)
            {
                return(guid);
            }

            return(Guid.Empty);
        }