易语言Toast通知源码
系统结构:Initialize,RunMessageLoop,WndProc,DisplayToast,CreateToast,CreateToastXml,SetImageSrc,SetTextValues,SetNodeValueString,L,SUCCEEDED,LOWORD,COM_ToastEventHandler,AppendChild,get_Attributes,GetNamedItem,TryCreateShortcut,指针到整数,取字节集指针,取文本型指针,get_Reason,QueryInterface,AddRef,Release,GetIids,GetRuntimeClassName,GetTrustLevel,CreateToastNotifier,CreateToastNotifierWithId,GetTemplateContent,Show,Hide,get_Setting,AddToSchedule,RemoveFromSchedule,GetScheduledToastNotifications,CreateToastNotification,get_Content,put_ExpirationTime,get_ExpirationTime,add_Dismissed,remove_Dismissed,add_Activated,remove_Activated,add_Failed,remove_Failed,创建自Unicode字符,创建自Ansi字符,取句柄,取长度,是否为空,取Unicode字符,清除,get_Doctype,get_Implementation,get_DocumentElement,CreateElement,CreateDocumentFragment,CreateTextNode,CreateComment,CreateProcessingInstruction,CreateAttribute,CreateEntityReference,GetElementsByTagName,CreateCDataSection,get_DocumentUri,CreateAttributeNS,CreateElementNS,GetElementById,ImportNode,get_Length,Item,SetArguments,SetPath,SetValue,Commit,Save,ActivatedEventHandler,DismissedEventHandler,FailedEventHandler,RoInitialize,RoUninitialize,MultiByteToWideChar,WindowsCreateString,WindowsDeleteString,WindowsGetStringLen,WindowsIsStringEmpty,RoGetActivationFactory,WindowsGetStringRawBuffer,GetModuleFileName,CoCreateInstance,SHStrDup,RtlMoveMemory,MessageBox,CoTaskMemAlloc,CoTaskMemFree,ZeroMemory,GetModuleHandle,LoadIcon,LoadCursor,RegisterClassEx,CreateWindowEx,GetMessage,TranslateMessage,DispatchMessage,DefWindowProc,PostQuitMessage,SendMessage,SetForegroundWindow,
======程序集
| |
| |------ _启动子程序
| |
| |------ Initialize
| |
| |------ RunMessageLoop
| |
| |------ WndProc
| |
| |------ DisplayToast
| |
| |------ CreateToast
| |
| |------ CreateToastXml
| |
| |------ SetImageSrc
| |
| |------ SetTextValues
| |
| |------ SetNodeValueString
| |
| |------ L
| |
| |------ SUCCEEDED
| |
| |------ LOWORD
| |
| |------ COM_ToastEventHandler
| |
| |------ AppendChild
| |
| |------ get_Attributes
| |
| |------ GetNamedItem
| |
| |------ TryCreateShortcut
| |
| |------ 指针到整数
| |
| |------ 取字节集指针
| |
| |------ 取文本型指针
| |
| |------ get_Reason
| |
| |
======IUnknown
| |
| |------ QueryInterface
| |
| |------ AddRef
| |
| |------ Release
| |
| |
======IInspectable
| |
| |------ GetIids
| |
| |------ GetRuntimeClassName
| |
| |------ GetTrustLevel
| |
| |
======IToastNotificationManagerStatics
| |
| |------ CreateToastNotifier
| |
| |------ CreateToastNotifierWithId
| |
| |------ GetTemplateContent
| |
| |
======IToastNotifier
| |
| |------ Show
| |
| |------ Hide
| |
| |------ get_Setting
| |
| |------ AddToSchedule
| |
| |------ RemoveFromSchedule
| |
| |------ GetScheduledToastNotifications
| |
| |
======IToastNotificationFactory
| |
| |------ CreateToastNotification
| |
| |
======IToastNotification
| |
| |------ get_Content
| |
| |------ put_ExpirationTime
| |
| |------ get_ExpirationTime
| |
| |------ add_Dismissed
| |
| |------ remove_Dismissed
| |
| |------ add_Activated
| |
| |------ remove_Activated
| |
| |------ add_Failed
| |
| |------ remove_Failed
| |
| |
======HString
| |
| |------ _初始化
| |
| |------ _销毁
| |
| |------ 创建自Unicode字符
| |
| |------ 创建自Ansi字符
| |
| |------ 取句柄
| |
| |------ 取长度
| |
| |------ 是否为空
| |
| |------ 取Unicode字符
| |
| |------ 清除
| |
| |
======IXmlDocument
| |
| |------ get_Doctype
| |
| |------ get_Implementation
| |
| |------ get_DocumentElement
| |
| |------ CreateElement
| |
| |------ CreateDocumentFragment
| |
| |------ CreateTextNode
| |
| |------ CreateComment
| |
| |------ CreateProcessingInstruction
| |
| |------ CreateAttribute
| |
| |------ CreateEntityReference
| |
| |------ GetElementsByTagName
| |
| |------ CreateCDataSection
| |
| |------ get_DocumentUri
| |
| |------ CreateAttributeNS
| |
| |------ CreateElementNS
| |
| |------ GetElementById
| |
| |------ ImportNode
| |
| |
======IXmlNodeList
| |
| |------ get_Length
| |
| |------ Item
| |
| |
======ShellLinkHelper
| |
| |------ SetArguments
| |
| |------ SetPath
| |
| |------ SetValue
| |
| |------ Commit
| |
| |------ Save
| |
| |
======ToastEventHandler
| |
| |------ _QueryInterface
| |
| |------ _AddRef
| |
| |------ _Release
| |
| |------ ActivatedEventHandler
| |
| |------ DismissedEventHandler
| |
| |------ FailedEventHandler
| |
| |
======调用的Dll
| |
| |---[dll]------ RoInitialize
| |
| |---[dll]------ RoUninitialize
| |
| |---[dll]------ MultiByteToWideChar
| |
| |---[dll]------ WindowsCreateString
| |
| |---[dll]------ WindowsDeleteString
| |
| |---[dll]------ WindowsGetStringLen
| |
| |---[dll]------ WindowsIsStringEmpty
| |
| |---[dll]------ RoGetActivationFactory
| |
| |---[dll]------ WindowsGetStringRawBuffer
| |
| |---[dll]------ GetModuleFileName
| |
| |---[dll]------ CoCreateInstance
| |
| |---[dll]------ SHStrDup
| |
| |---[dll]------ RtlMoveMemory
| |
| |---[dll]------ MessageBox
| |
| |---[dll]------ CoTaskMemAlloc
| |
| |---[dll]------ CoTaskMemFree
| |
| |---[dll]------ ZeroMemory
| |
| |---[dll]------ GetModuleHandle
| |
| |---[dll]------ LoadIcon
| |
| |---[dll]------ LoadCursor
| |
| |---[dll]------ RegisterClassEx
| |
| |---[dll]------ CreateWindowEx
| |
| |---[dll]------ GetMessage
| |
| |---[dll]------ TranslateMessage
| |
| |---[dll]------ DispatchMessage
| |
| |---[dll]------ DefWindowProc
| |
| |---[dll]------ PostQuitMessage
| |
| |---[dll]------ SendMessage
| |
| |---[dll]------ SetForegroundWindow
调用的DLL命令:
.DLL命令 RoInitialize, 整数型, "combase.dll", "RoInitialize"
.参数 initType, 整数型
.DLL命令 RoUninitialize, , "combase.dll", "RoUninitialize"
.DLL命令 MultiByteToWideChar, 整数型, "kernel32.dll", "MultiByteToWideChar"
.参数 CodePage, 整数型
.参数 dwFlags, 整数型
.参数 lpMultiByteStr, 文本型, 传址
.参数 cbMultiByte, 整数型
.参数 lpWideCharStr, 字节集, 传址
.参数 cchWideChar, 整数型
.DLL命令 WindowsCreateString, 整数型, "combase.dll", "WindowsCreateString"
.参数 sourceString, 字节集, 传址
.参数 length, 整数型
.参数 string, 整数型, 传址
.DLL命令 WindowsDeleteString, 整数型, "combase.dll", "WindowsDeleteString"
.参数 string, 整数型
.DLL命令 WindowsGetStringLen, 整数型, "combase.dll", "WindowsGetStringLen"
.参数 string, 整数型
.DLL命令 WindowsIsStringEmpty, 逻辑型, "combase.dll", "WindowsIsStringEmpty"
.参数 string, 整数型
.DLL命令 RoGetActivationFactory, 整数型, "combase.dll", "RoGetActivationFactory"
.参数 activatableClassId, 整数型
.参数 iid, 字节集, 传址
.参数 factory, 整数型, 传址
.DLL命令 WindowsGetStringRawBuffer, 整数型, "combase.dll", "WindowsGetStringRawBuffer"
.参数 string, 整数型
.参数 length, 整数型, 传址
.DLL命令 GetModuleFileName, 整数型, "kernel32.dll", "GetModuleFileNameA"
.参数 hModule, 整数型
.参数 lpFileName, 文本型
.参数 nSize, 整数型
.DLL命令 CoCreateInstance, 整数型, "ole32.dll", "CoCreateInstance"
.参数 rclsid, 字节集, 传址
.参数 pUnkOuter, 整数型
.参数 dwClsContext, 整数型
.参数 riid, 字节集, 传址
.参数 ppv, 整数型, 传址
.DLL命令 SHStrDup, 整数型, "shlwapi.dll", "SHStrDupW"
.参数 pszSource, 字节集
.参数 ppwsz, 整数型, 传址
.DLL命令 RtlMoveMemory, , "kernel32.dll", "RtlMoveMemory"
.参数 Destination, 整数型
.参数 Source, 字节集, 传址
.参数 Length, 整数型
.DLL命令 MessageBox, 整数型, "user32.dll", "MessageBoxA"
.参数 hwnd, 整数型
.参数 lpText, 文本型
.参数 lpCaption, 文本型
.参数 wType, 整数型
.DLL命令 CoTaskMemAlloc, 整数型, "ole32.dll", "CoTaskMemAlloc"
.参数 cb, 整数型
.DLL命令 CoTaskMemFree, , "ole32.dll", "CoTaskMemFree"
.参数 pv, 整数型
.DLL命令 ZeroMemory, , "kernel32.dll", "RtlZeroMemory"
.参数 Destination, 整数型
.参数 Length, 整数型
.DLL命令 GetModuleHandle, 整数型, "kernel32.dll", "GetModuleHandleA"
.参数 lpModuleName, 整数型
.DLL命令 LoadIcon, 整数型, "user32.dll", "LoadIconA"
.参数 hInstance, 整数型
.参数 lpIconName, 整数型
.DLL命令 LoadCursor, 整数型, "user32.dll", "LoadCursorA"
.参数 hInstance, 整数型
.参数 lpCursorName, 整数型
.DLL命令 RegisterClassEx, 整数型, "user32.dll", "RegisterClassExA"
.参数 pcWndClassEx, WNDCLASSEX
.DLL命令 CreateWindowEx, 整数型, "user32.dll", "CreateWindowExA"
.参数 dwExStyle, 整数型
.参数 lpClassName, 文本型
.参数 lpWindowName, 文本型
.参数 dwStyle, 整数型
.参数 x, 整数型
.参数 y, 整数型
.参数 nWidth, 整数型
.参数 nHeight, 整数型
.参数 hWndParent, 整数型
.参数 hMenu, 整数型
.参数 hInstance, 整数型
.参数 lpParam, 整数型
.DLL命令 GetMessage, 逻辑型, "user32.dll", "GetMessageA"
.参数 lpMsg, MSG
.参数 hWnd, 整数型
.参数 wMsgFilterMin, 整数型
.参数 wMsgFilterMax, 整数型
.DLL命令 TranslateMessage, 整数型, "user32.dll", "TranslateMessage"
.参数 lpMsg, MSG
.DLL命令 DispatchMessage, 整数型, "user32.dll", "DispatchMessageA"
.参数 lpMsg, MSG
.DLL命令 DefWindowProc, 整数型, "user32.dll", "DefWindowProcA"
.参数 hWnd, 整数型
.参数 Msg, 整数型
.参数 wParam, 整数型
.参数 lParam, 整数型
.DLL命令 PostQuitMessage, , "user32.dll", "PostQuitMessage"
.参数 nExitCode, 整数型
.DLL命令 SendMessage, 整数型, "user32.dll", "SendMessageA"
.参数 hWnd, 整数型
.参数 Msg, 整数型
.参数 wParam, 整数型
.参数 lParam, 文本型
.DLL命令 SetForegroundWindow, 逻辑型, "user32.dll", "SetForegroundWindow"
.参数 hWnd, 整数型
注:本站源码主要来源于网络收集。如有侵犯您的利益,请联系我们,我们将及时删除!
部分源码可能含有危险代码,(如关机、格式化磁盘等),请看清代码在运行。
由此产生的一切后果本站均不负责。源码仅用于学习使用,如需运用到商业场景请咨询原作者。
使用本站源码开发的产品均与本站无任何关系,请大家遵守国家相关法律。