⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assofile.asm

📁 一个十六进制编辑器源代码,cool!
💻 ASM
字号:
_assofile proto
.data
	szTipassofile db '关联文件后更方便打开文件',13,13
		db '[是]->设置关联',13
		db '[否]->取消关联',0
.code
_assofile proc uses esi
local lpfnName,@szBuf[255]:BYTE, @szBufParam[300]:BYTE,@szShortPathName[255]:BYTE 
local mb:MSGBOXPARAMSA 
	lea esi,@szBuf
	invoke GetModuleFileName,hInstDll,esi,255
	invoke GetShortPathName,esi,addr @szShortPathName,255
	lea esi,@szShortPathName
	;_msgbox esi,addr @szBuf
	;ret
	mov mb.cbSize,sizeof MSGBOXPARAMSA
	mov mb.lpszCaption,offset szAppName
	mov mb.lpszText,offset szTipassofile
	m2m mb.hInstance,hInstance
	m2m mb.hwndOwner,hWnd
	mov mb.lpszIcon,IDI_MAIN
	mov mb.dwStyle,MB_USERICON  or MB_YESNOCANCEL 
	xor eax,eax
	mov mb.dwContextHelpId,eax
	mov mb.lpfnMsgBoxCallback,eax
	mov mb.dwLanguageId,eax
	invoke MessageBoxIndirect,addr mb
	push esi
	.if eax==IDYES 
		push ctext("regsvr32 %s")
	.elseif eax==IDNO 
		push ctext("regsvr32 /u %s")
	.else
		pop esi
		ret
	.endif
	lea eax,@szBufParam
	push eax
	call wsprintf
	add esp,4*3
	invoke WinExec,addr @szBufParam,5

	invoke GetModuleFileName,0,addr @szBuf,255
	invoke WriteProfileString,ctext("xHex"),ctext("Path"),addr @szBuf	;win.ini

	ret
_assofile endp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -