Академический Документы
Профессиональный Документы
Культура Документы
HCU NOTES:
Credit goes to the original author for the easy to follow format
though it pains me to say i do not have a clue who it was who sent
me the original listing.
To use these api, just flip into SoftICE and BPX MessageBoxA
(or any other call you want to bpx on)
Being redundant in case this file has been separated from the website,
your winice.dat file is in your softice'95 directory with the executable
(look in your autoexec.bat file for the location of WINICE.EXE if you
have forgotten it's install location)
Use THESE for now: (see ED!SON's tutorial for more info)
gdi32.dll
kernel32.dll
user32.dll
+gthorne'97
\******************************************************/
ReadFile
WriteFile
more on locating file accesses:
SetFilePointer
GetSystemDirectory
GetSystemDirectoryA
These are the most common calls to read/write from/to a *.ini file
or a file of similar format.
GetPrivateProfileString
GetPrivateProfileInt
WritePrivateProfileString
WritePrivateProfileInt
GetPrivateProfileStringA
GetPrivateProfileIntA
WritePrivateProfileStringA
WritePrivateProfileIntA
Interrupt info:
_____________
bpint 21 if (ah==3d)
bpint 2f if (ah==01)
The Registry
------------
Create or delete a new key in the registry:
RegCreateKey
RegDeleteKey
RegCreateKeyA
RegDeleteKeyA
RegQueryValue
RegQueryValueA
RegCloseKey
RegOpenKey
RegCloseKeyA
RegOpenKeyA
Dialog Boxes
------------
Get text or integer from a dialog box edit:
GetWindowText
GetDlgItemText
GetWindowTextA
GetDlgItemTextA
GetDlgItemInt
MessageBox
MessageBoxA
MessageBoxExA
MessageBeep
SENDMESSAGE
WSPRINTF
GetSystemTime
GetLocalTime
SystemTimeToFileTime
Generating a Window
---------------------
createwindow
createwindowexa
showwindow
Value Meaning
0 Drive Cannot Be determined
1 Root Dir Does not exist
2 DriveRemoveable
3 A Fixed Disk (HardDrive)
4 Remote Drive(Network)
5 Cd-Rom Drive
6 RamDisk
GetLogicalDrives
GetLogicalDrivesA
GetLogicalDriveStrings
GetLogicalDriveStringsA
GETWINDOWWORD
GETWINDOWLONG
BOZOSLIVEHERE
HMEMCPY
GLOBALGETATOMNAME
assuming you are using wm_command to try to locate the button push,
you hwnd the result and see the hwnd of the button is 0324 and the
hwnd of the window is 0129
to find the button, use the window value, not the button value to bmsg on
(the other just won't work)
- - -
+gthorne'97