Jump to content
Tuts 4 You

Using An Nfo File In Masm?


Recommended Posts

Hey guys, I've searched through the forum so I don't believe this has been asked yet. I did find an example by UFO-Pu55y in the PNG keygen template he released.

Though I was wondering if someone could provide a "watered down" example of an nfo viewer in masm?

I sort of understand whats going on, but something a bit simpler would be much appreciated.

Maybe I'm just being dumb but I was wondering if this is basicly what needs to be done;

Load nfo from the resource, dump it into a text box and set the text box to be the Terminal font.

Thanks, and sorry if this is a dumb question.

Link to comment
Load nfo from the resource, dump it into a text box and set the text box to be the Terminal font.

Thats it!

[laugh] I guess thats one of those things I just had to say out loud to figure it out. Thanks mate

Link to comment

I've been looking at UFO's code and was trying to do about the same thing to just play around with it however, it doesn't seem to want to change the text of the window - it keeps it as the default.

Any advice? This is the piece of code I'm using, mainly from UFO's

invoke GetDlgItem,hWnd,ID_NFOEDIT

mov hNfoEdit,eax

invoke FindResource, hInstance, ID_NFO_TEXT, RT_RCDATA

invoke LoadResource, hInstance, eax

invoke SetDlgItemText,hWnd,ID_NFOEDIT,eax

invoke SendMessage,hNfoEdit,WM_SETFONT,hNfoFont,1

Link to comment

you will have to create the font you need before installing itthere are many ways to do that so you choose your own after creating the font you'll have it's handle "send it to hNfoFont"

use CreateFontA or any other API to get your own specified font but it won't work on all PC's the same and i dunno if UFO figured any new way to fix that problem but it should work on your system fine but in some rare situations it won't...........

Link to comment
invoke SendMessage,hNfoEdit,WM_SETFONT,hNfoFont,1
Yes, that's the question.. what's in your hNfoFont ??

Ahhh I forgot to set it using CreateFontIndirect, doh!

Thanks guys - sorry about the dumbness

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...