📄 aspuploader.idl
字号:
// aspuploader.idl : IDL source for aspuploader.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (aspuploader.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(34DAF413-D098-4341-8748-41D9EB992865),
dual,
helpstring("IUploader Interface"),
pointer_default(unique)
]
interface IUploader : IDispatch
{
[id(1), helpstring("method StartUpload")] HRESULT StartUpload([in]IUnknown *pIUnk, [out,retval]long *ret);
[id(2), helpstring("method GetUploadFilename")] HRESULT GetUploadFilename([in] BSTR bsField, [out, retval] BSTR* pbsFilename);
[id(3), helpstring("method GetFileSize")] HRESULT GetFileSize([in] BSTR bsFieldName, [out, retval] long* file_size);
[id(4), helpstring("method UploadFile")] HRESULT UploadFile([in] BSTR bsFieldName, [out, retval] long* plResult);
[id(5), helpstring("method GetFormValue")] HRESULT GetFormValue([in] BSTR bsFieldName, [out, retval] BSTR* psReturn);
[id(6), helpstring("method SetMaxFileSize")] HRESULT SetMaxFileSize([in] long lSize);
[id(7), helpstring("method GetError")] HRESULT GetError([in] long lError, [out, retval] BSTR* psReturn);
[id(8), helpstring("method SetDestinationPath")] HRESULT SetDestinationPath([in] BSTR bsPath);
[id(9), helpstring("method SetForbiddenExtensions"), vararg] HRESULT SetForbiddenExtensions([in] SAFEARRAY(VARIANT) FileExtensions);
[id(10), helpstring("method SetAllowedExtensions"), vararg] HRESULT SetAllowedExtensions([in] SAFEARRAY(VARIANT) FileExtensions);
[id(11), helpstring("method SetOverwrite")] HRESULT SetOverwrite([in]long overwrite);
};
[
uuid(DB59EE59-D341-45B7-A809-4E69B48E8A34),
version(1.0),
helpstring("aspuploader 1.0 Type Library")
]
library ASPUPLOADERLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(660D754D-55A4-4316-9544-6C5EB7417207),
helpstring("Uploader Class")
]
coclass Uploader
{
[default] interface IUploader;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -