BExplorer.Shell.Interop.VistaBridge.ShellItemImpl.BindToHandler C# (CSharp) Method

BindToHandler() public method

public BindToHandler ( IntPtr pbc, System.Guid bhid, System.Guid riid, IntPtr &obj ) : HResult
pbc System.IntPtr
bhid System.Guid
riid System.Guid
obj System.IntPtr
return HResult
		public HResult BindToHandler(IntPtr pbc, Guid bhid, Guid riid, out IntPtr obj) {
			if (riid == typeof(IShellFolder).GUID) {
				obj = Marshal.GetIUnknownForObject(GetIShellFolder());
				return HResult.S_OK;
			}
			else {
				throw new InvalidCastException();
			}
		}