internal

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2024 License: BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var (
	IDataTransferManagerInteropCLSID = "Windows.ApplicationModel.DataTransfer.DataTransferManager"
	IDataTransferManagerInteropGUID  = ole.NewGUID("3A3DCD6C-3EAB-43DC-BCDE-45671CE800C8")
)

DataTransferManagerInterop: https://docs.microsoft.com/en-us/windows/win32/api/shobjidlcore/nn-shobjidlcore-idatatransfermanagerinterop

View Source
var (
	IDataPackageGUID  = ole.NewGUID("61EBF5C7-EFEA-4346-9554-981D7E198FFE")
	IDataPackage2GUID = ole.NewGUID("041C1FE9-2409-45E1-A538-4C53EEEE04A7")
)
View Source
var (
	IUriRuntimeClassFactoryCLSID = "Windows.Foundation.Uri"
	IUriRuntimeClassFactoryGUID  = ole.NewGUID("44A9796F-723E-4FDF-A218-033E75B0C084")
)

IUriRuntimeClassFactory: https://docs.microsoft.com/en-us/cpp/cppcx/wrl/how-to-activate-and-use-a-windows-runtime-component-using-wrl?view=msvc-170

View Source
var (
	IDataPackagePropertySetGUID = ole.NewGUID("CD1C93EB-4C4C-443A-A8D3-F5C241E91689")
)
View Source
var (
	IDataRequestGUID = ole.NewGUID("4341AE3B-FC12-4E53-8C02-AC714C415A27")
)
View Source
var (
	IDataRequestedEventArgsGUID = ole.NewGUID("CB8BA807-6AC5-43C9-8AC5-9BA232163182")
)
View Source
var (
	IDataTransferManagerGUID = ole.NewGUID("A5CAEE9B-8708-49D1-8D36-67D25A8DA00C") // GUID from WinSDK 10, see https://www.magnumdb.com/search?q=IDataTransferManager.
)
View Source
var (
	ITypedEventHandlerDataTransferManagerDataRequestedEventArgsGUID = ole.NewGUID("ec6f9cc8-46d0-5e0e-b4d2-7d7773ae37a0")
)
View Source
var (
	IUriRuntimeClassGUID = ole.NewGUID("9E365E57-48B2-4160-956F-C7385120BBFC")
)

Functions

func NewIDataTransferManagerInterop

func NewIDataTransferManagerInterop(r **IDataTransferManagerInterop) error

func NewIUriRuntimeClassFactory

func NewIUriRuntimeClassFactory(r **IUriRuntimeClassFactory) error

Types

type IDataPackage

type IDataPackage struct {
	VTBL *IDataPackageVTBL
}

func (*IDataPackage) GetIDataPackage2

func (i *IDataPackage) GetIDataPackage2(r **IDataPackage2) error

func (*IDataPackage) GetProperties

func (i *IDataPackage) GetProperties(r **IDataPackagePropertySet) error

func (*IDataPackage) SetText

func (i *IDataPackage) SetText(s string) error

func (*IDataPackage) SetUri

func (i *IDataPackage) SetUri(s string) error

type IDataPackage2

type IDataPackage2 struct {
	VTBL *IDataPackage2VTBL
}
func (i *IDataPackage2) SetWebLink(uri *IUriRuntimeClass) error

type IDataPackage2VTBL

type IDataPackage2VTBL struct {
	ole.IInspectableVtbl
	SetApplicationLink uintptr // HRESULT SetApplicationLink([in] Windows.Foundation.Uri* value);
	SetWebLink         uintptr // HRESULT SetWebLink([in] Windows.Foundation.Uri* value);
}

type IDataPackagePropertySet

type IDataPackagePropertySet struct {
	VTBL *IDataPackagePropertySetVTBL
}

func (*IDataPackagePropertySet) SetTitle

func (i *IDataPackagePropertySet) SetTitle(s string) error

type IDataPackagePropertySetVTBL

type IDataPackagePropertySetVTBL struct {
	ole.IInspectableVtbl
	GetTitle                 uintptr // [propget] HRESULT Title([out] [retval] HSTRING* value);
	SetTitle                 uintptr // [propput] HRESULT Title([in] HSTRING value);
	GetDescription           uintptr // [propget] HRESULT Description([out] [retval] HSTRING* value);
	SetDescription           uintptr // [propput] HRESULT Description([in] HSTRING value);
	GetThumbnail             uintptr // [propget] HRESULT Thumbnail([out] [retval] Windows.Storage.Streams.IRandomAccessStreamReference** value);
	SetThumbnail             uintptr // [propput] HRESULT Thumbnail([in] Windows.Storage.Streams.IRandomAccessStreamReference* value);
	GetFileTypes             uintptr // [propget] HRESULT FileTypes([out] [retval] Windows.Foundation.Collections.IVector<HSTRING>** value);
	GetApplicationName       uintptr // [propget] HRESULT ApplicationName([out] [retval] HSTRING* value);
	SetApplicationName       uintptr // [propput] HRESULT ApplicationName([in] HSTRING value);
	GetApplicationListingUri uintptr // [propget] HRESULT ApplicationListingUri([out] [retval] Windows.Foundation.Uri** value);
	SetApplicationListingUri uintptr // [propput] HRESULT ApplicationListingUri([in] Windows.Foundation.Uri* value);
}

type IDataPackageVTBL

type IDataPackageVTBL struct {
	ole.IInspectableVtbl
	GetView                  uintptr // HRESULT GetView [out] [retval] Windows.ApplicationModel.DataTransfer.DataPackageView** value);
	Properties               uintptr // [propget] HRESULT Properties [out] [retval] Windows.ApplicationModel.DataTransfer.DataPackagePropertySet** value);
	GetRequestedOperation    uintptr // [propget] HRESULT RequestedOperation [out] [retval] Windows.ApplicationModel.DataTransfer.DataPackageOperation* value);
	SetRequestedOperation    uintptr // [propput] HRESULT RequestedOperation [in] Windows.ApplicationModel.DataTransfer.DataPackageOperation value);
	AddOperationCompleted    uintptr // [eventadd] HRESULT  OperationCompleted [in] Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.DataTransfer.DataPackage*, Windows.ApplicationModel.DataTransfer.OperationCompletedEventArgs*>* handler, [out] [retval] EventRegistrationToken* eventCookie);
	RemoveOperationCompleted uintptr // [eventremove] HRESULT  OperationCompleted [in] EventRegistrationToken eventCookie);
	AddDestroyed             uintptr // [eventadd] HRESULT  Destroyed [in] Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.DataTransfer.DataPackage*, IInspectable*>* handler, [out] [retval] EventRegistrationToken* eventCookie);
	RemoveDestroyed          uintptr // [eventremove] HRESULT  Destroyed [in] EventRegistrationToken eventCookie);
	SetData                  uintptr // HRESULT SetData [in] HSTRING formatId, [in] IInspectable* value);
	SetDataProvider          uintptr // HRESULT SetDataProvider [in] HSTRING formatId, [in] Windows.ApplicationModel.DataTransfer.DataProviderHandler* delayRenderer);
	SetText                  uintptr // HRESULT SetText [in] HSTRING value);
	SetUri                   uintptr // [deprecated("SetUri may be altered or unavailable for releases after Windows Phone 'OSVersion' (TBD). Instead, use SetWebLink or SetApplicationLink.", deprecate, Windows.Foundation.UniversalApiContract, 1.0)] HRESULT  SetUri [in] Windows.Foundation.Uri* value);
	SetHtmlFormat            uintptr // HRESULT SetHtmlFormat [in] HSTRING value);
	ResourceMap              uintptr // [propget] HRESULT  ResourceMap [out] [retval] Windows.Foundation.Collections.IMap<HSTRING, Windows.Storage.Streams.RandomAccessStreamReference*>** value);
	SetRtf                   uintptr // HRESULT SetRtf [in] HSTRING value);
	SetBitmap                uintptr // HRESULT SetBitmap [in] Windows.Storage.Streams.RandomAccessStreamReference* value);
	SetStorageItemsReadOnly  uintptr // [overload("SetStorageItems")] HRESULT  SetStorageItemsReadOnly [in] Windows.Foundation.Collections.IIterable<Windows.Storage.IStorageItem*>* value);
	SetStorageItems          uintptr // [overload("SetStorageItems")] HRESULT  SetStorageItems [in] Windows.Foundation.Collections.IIterable<Windows.Storage.IStorageItem*>* value, [in] boolean readOnly);
}

type IDataRequest

type IDataRequest struct {
	VTBL *IDataRequestVTBL
}

func (*IDataRequest) GetData

func (i *IDataRequest) GetData(r **IDataPackage) error

func (*IDataRequest) SetData

func (i *IDataRequest) SetData(r *IDataPackage) error

type IDataRequestVTBL

type IDataRequestVTBL struct {
	ole.IInspectableVtbl
	GetData             uintptr // [propget] HRESULT Data([out] [retval] Windows.ApplicationModel.DataTransfer.DataPackage** value);
	SetData             uintptr // [propput] HRESULT Data([in] Windows.ApplicationModel.DataTransfer.DataPackage* value);
	Deadline            uintptr // [propget] HRESULT Deadline([out] [retval] Windows.Foundation.DateTime* value);
	FailWithDisplayText uintptr // HRESULT FailWithDisplayText([in] HSTRING value);
	GetDeferral         uintptr // HRESULT GetDeferral([out] [retval] Windows.ApplicationModel.DataTransfer.DataRequestDeferral** value);
}

type IDataRequestedEventArgs

type IDataRequestedEventArgs struct {
	VTBL *IDataRequestedEventArgsVTBL
}

func (*IDataRequestedEventArgs) GetRequest

func (i *IDataRequestedEventArgs) GetRequest(r **IDataRequest) error

type IDataRequestedEventArgsVTBL

type IDataRequestedEventArgsVTBL struct {
	ole.IInspectableVtbl
	GetRequest uintptr // [propget] HRESULT Request([out] [retval] Windows.ApplicationModel.DataTransfer.DataRequest** value);
}

type IDataTransferManager

type IDataTransferManager struct {
	VTBL *IDataTransferManagerVTBL
}

func (*IDataTransferManager) AddDataRequested

func (i *IDataTransferManager) AddDataRequested(r *ITypedEventHandler) (err error)

type IDataTransferManagerInterop

type IDataTransferManagerInterop struct {
	VTBL *IDataTransferManagerInteropVTBL
}

func (*IDataTransferManagerInterop) GetForWindow

func (i *IDataTransferManagerInterop) GetForWindow(hwnd uintptr, r **IDataTransferManager) (err error)

func (*IDataTransferManagerInterop) ShowShareUIWindow

func (i *IDataTransferManagerInterop) ShowShareUIWindow(hwnd uintptr) error

type IDataTransferManagerInteropVTBL

type IDataTransferManagerInteropVTBL struct {
	ole.IUnknownVtbl
	GetForWindow         uintptr // HRESULT GetForWindow([in] HWND appWindow, [in] REFIID riid, [out, optional] dataTransferManager**);
	ShowShareUIForWindow uintptr // HRESULT ShowShareUIForWindow([in] HWND appWindow);
}

type IDataTransferManagerVTBL

type IDataTransferManagerVTBL struct {
	ole.IInspectableVtbl
	AddDataRequested              uintptr // [eventadd] HRESULT DataRequested([in] Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.DataTransfer.DataTransferManager*, Windows.ApplicationModel.DataTransfer.DataRequestedEventArgs*>* eventHandler, [out] [retval] EventRegistrationToken* eventCookie);
	RemoveDataRequested           uintptr // [eventremove] HRESULT DataRequested([in] EventRegistrationToken eventCookie);
	AddTargetApplicationChosen    uintptr // [eventadd] HRESULT TargetApplicationChosen([in] Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.DataTransfer.DataTransferManager*, Windows.ApplicationModel.DataTransfer.TargetApplicationChosenEventArgs*>* eventHandler, [out] [retval] EventRegistrationToken* eventCookie);
	RemoveTargetApplicationChosen uintptr // [eventremove] HRESULT TargetApplicationChosen([in] EventRegistrationToken eventCookie);
}

type ITypedEventHandler

type ITypedEventHandler struct {
	VTBL   *ITypedEventHandlerVTBL
	Invoke func(transfer *IDataTransferManager, args *IDataRequestedEventArgs) int
}

func NewTypedEventHandler

func NewTypedEventHandler(fn func(transfer *IDataTransferManager, args *IDataRequestedEventArgs) int) *ITypedEventHandler

type ITypedEventHandlerVTBL

type ITypedEventHandlerVTBL struct {
	ole.IUnknownVtbl
	Invoke uintptr
}

type IUriRuntimeClass

type IUriRuntimeClass struct {
	VTBL *interface{}
}

type IUriRuntimeClassFactory

type IUriRuntimeClassFactory struct {
	VTBL *IUriRuntimeClassFactoryVTBL
}

func (*IUriRuntimeClassFactory) CreateUri

func (i *IUriRuntimeClassFactory) CreateUri(s string, r **IUriRuntimeClass) (err error)

type IUriRuntimeClassFactoryVTBL

type IUriRuntimeClassFactoryVTBL struct {
	ole.IInspectableVtbl
	CreateUri             uintptr // HRESULT CreateUri([in] HSTRING uri, [out] [retval] Windows.Foundation.Uri** instance);
	CreateWithRelativeUri uintptr // HRESULT CreateWithRelativeUri([in] HSTRING baseUri, [in] HSTRING relativeUri, [out] [retval] Windows.Foundation.Uri** instance);
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL