| | |
problem in usin registry api
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Sep 2007
Posts: 4
Reputation:
Solved Threads: 1
hi
i write a program to add a value in windows registry but it didn't work
and doesn't add anything in registry, what's a problem?
my assembler is masm32.
and here is my code:
i write a program to add a value in windows registry but it didn't work
and doesn't add anything in registry, what's a problem?
my assembler is masm32.
and here is my code:
asm Syntax (Toggle Plain Text)
.386 .model flat, stdcall option casemap:none include windows.inc include kernel32.inc include advapi32.inc includelib kernel32.lib includelib advapi32.lib .data szRegSubKey db "Software\Microsoft\Windows\CurrentVersion\Policies\System", 0 szValue db "DisableTaskMgr", 0 .data? hKey PHKEY ? .code start: invoke RegOpenKeyEx, RegOpenKeyEx, ADDR szRegSubKey, NULL, KEY_ALL_ACCESS, ADDR hKey OR EAX, EAX JNE _error invoke RegSetValueEx, hKey, ADDR szValue, NULL, REG_DWORD, 1, DWORD _error: invoke RegCloseKey, hKey invoke ExitProcess, NULL end start
try
asm Syntax (Toggle Plain Text)
invoke RegOpenKeyEx HKEY_LOCAL_MACHINE, ADDR szRegSubKey, NULL, KEY_ALL_ACCESS, ADDR hKey)
Last edited by Tight_Coder_Ex; Nov 19th, 2007 at 3:58 pm. Reason: Typo
![]() |
Similar Threads
- major problem desktop icons disappeared no easy fix (Windows NT / 2000 / XP)
- about registry key . . . (Visual Basic 4 / 5 / 6)
- Strange shutdown problem, self-reboot (Windows NT / 2000 / XP)
- Pro*C to Mysql C API (C++)
- I'm new (Assembly)
- wanted Registry API e-Book. (C++)
- Internet Explorer Fails After Registry Removal (Viruses, Spyware and other Nasties)
- internet explorer problem (Web Browsers)
- Icon and Thumbnail Display Problem (Windows NT / 2000 / XP)
Other Threads in the Assembly Forum
- Previous Thread: Booth's Algorithm in mips
- Next Thread: need help in macro
| Thread Tools | Search this Thread |
Tag cloud for Assembly
3d 68hc11 6811 80386 adress array asm assembler assembly boot bootloader buffer compression cursor debug directory division docs dos draw emulator endtask error exceptions file int10h integer intel interrupt interrupts language loop nohau osdevelopment print program range read remainder shape string text theory tsr x86





