|
[求助]关于ListBox控件
这样子说吧,你的代码里有list.exe,list.asm,list.rc这三个文件,我选中一个,然后点确定就可以删除选中的,比如我选择list.exe,那么点确定(IDC_DelFile),list.exe就被删除了。点移动(IDC_MoveFile),就把list.exe移动到我指定的位置。 同样,选择list.asm,也可以和上面操作一样;选择list.rc,也能做同样操作。 .if ax == LBN_SELCHANGE invoke SendMessage,lParam,LB_GETCURSEL,0,0 lea ecx,@szBuffer invoke SendMessage,lParam,LB_GETTEXT,eax,ecx 这段代码貌似是触发鼠标消息 |
|
[求助]请问如何屏幕截图至内存
截图至内存,那么如何把内存中关于图片的数据经过处理,显示出图片拉? |
|
|
|
[求助]关于ListBox控件
多谢这位热心的大哥,现在我又延伸一个问题, 在listbox里选中一个项,比如我选中了ListBox.asm,然后我想通过IDC_Module这个消息列队来执行一个命令,比如 MessageBox. 然后,我又选择另外一个项,比如ListBox.exe,同时又想通过IDC_Module这个消息列队来执行另外的命令,那么该怎么办? ps:用汇编貌似就纠缠于通用控件,花费时间。这点貌似就是汇编的不足。而用其他语言,可以把思路放在程序算法上。不过,我就喜欢汇编。 |
|
|
|
|
|
[求助]LINK : fatal error LNK1104: cannot open file 问题如何解决?
到aogo的网站去下载他的masmplus,http://www.aogosoft.com/masmplus/ 然后把下面代码存为test.asm文件,然后打开,编译,你会发现一个框: .386 .model flat, stdcall option casemap:none include windows.inc include kernel32.inc include user32.inc includelib kernel32.lib includelib user32.lib .data szBuff db "test",0 .code start: invoke MessageBox,NULL,addr szBuff,NULL,MB_OK invoke ExitProcess,0 end start |
|
[求助]书中说键入ml /c /coff /Cp msgbox。asm ,在哪键入??
用aogo的masmplus吧 |
|
|
|
[求助]谁有Win2000/XP 下直接重启系统的代码呀
.386 .model flat, stdcall option casemap:none include w2k\ntddk.inc include w2k\ntdll.inc includelib ntdll.lib ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> .code DriverEntry proc pDriverObject:PDRIVER_OBJECT, pusRegistryPath:PUNICODE_STRING local ShutDown:DWORD invoke RtlAdjustPrivilege,SE_SHUTDOWN_PRIVILEGE,TRUE,TRUE,addr ShutDown .if eax==00C000007Ch invoke RtlAdjustPrivilege,SE_SHUTDOWN_PRIVILEGE,TRUE,FALSE,addr ShutDown invoke ZwShutdownSystem,2 .endif mov eax, STATUS_DEVICE_CONFIGURATION_ERROR ret DriverEntry endp ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> end DriverEntry |
|
|
|
[求助]书中说键入ml /c /coff /Cp msgbox。asm ,在哪键入??
ml.exe怎么生成的? ml是编译器,如果要问怎么生成,就问产商去。 键入ml /c /coff /Cp msgbox。asm ,在哪键入?? 命令行下输入。 |
|
[求助]驱动无法调用NtQuerySystemInformation
这个函数是由ntdll.dll导出的,要用,分别包含 ntdll.inc和ntdll.lib |
|
[求助]关于调用DLL内部函数问题?
如果你反汇编过一个C程序,你一定会看到类似: sub esp,8或者 add esp,8 之类的。 add esp,0c 其实就是恢复堆栈。这个在C语言中很普遍,堆栈由自己清除。 |
|
大家帮忙看看为什么StartService 总是返回0 失败
XP_SP2下测试通过: .386 .model flat, stdcall option casemap:none ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ; I N C L U D E F I L E S ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: include w2k\ntstatus.inc include w2k\ntddk.inc include w2k\ntoskrnl.inc includelib ntoskrnl.lib include Strings.mac ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ; C O D E ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: .code ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ; DriverEntry ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: DriverEntry proc pDriverObject:PDRIVER_OBJECT, pusRegistryPath:PUNICODE_STRING ;;;;;;;;;;;;;;;;;;;int 1 int 3 local pIDT[6]:CHAR sidt fword ptr pIDT ; 取IDTR内容 mov eax,dword ptr [pIDT + 2] ; 获取IDT表的基地址 add eax,8 ; INT 1偏移地址放放 mov ebx, [eax] ; 取int 1的低位偏移 add eax,16 mov eax, [eax] ; 取int 3的低位偏移 and eax, 0ffffh and ebx, 0ffffh sub eax,ebx ; 计算低位偏移之差 .if eax == 1eh ; 发现跟踪,差值为0x1e invoke DbgPrint, $CTA0("SoftICE is active") .else invoke DbgPrint, $CTA0("Can't find SoftICE with this method.") .endif mov eax, STATUS_DEVICE_CONFIGURATION_ERROR ;这里一定要写.否则驱动无法返回 ret DriverEntry endp ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: end DriverEntry |
|
[求助]关于LoadLibrary失败的问题
不如把具体代码发上来吧 |
|
[求助]WDM驱动如何实现直接系统重启?
关机的就有. |
|
求教:如何学好32位汇编语言程序设计?
楼上建议从头学。 .386 .model flat,stdcall option casemap:none ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ; Include 文件定义 ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> include windows.inc include user32.inc includelib user32.lib include kernel32.inc includelib kernel32.lib .data szFilePath db "c:\*.txt",0 szC db "C:\",0 .data? FileData WIN32_FIND_DATA<?> szBuff db 1024 dup(?) @hFindFile dd ? .code start: invoke FindFirstFile,addr szFilePath,addr FileData mov @hFindFile,eax .repeat invoke RtlZeroMemory,addr szBuff,sizeof szBuff invoke lstrcat,addr szBuff,addr szC invoke lstrcat,addr szBuff,addr FileData.cFileName invoke DeleteFile,addr szBuff invoke FindNextFile,@hFindFile,addr FileData .until eax == FALSE invoke ExitProcess,eax end start |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值