flat assembler
Message board for the users of flat assembler.

Index > Windows > RegisterHotkey

Author
Thread Post new topic Reply to topic
Razneb



Joined: 10 Feb 2005
Posts: 12
Razneb 24 Feb 2005, 01:11
I am trying to import the API 'RegisterHotkey', which is located in the USER32.dLL file.

However, in FASM, when I try to import 'RegisterHotkey' and compile I get a messagebox saying: "The procedure entry point RegisterHotkey could not be located in the dynamic link library USER32.DLL"

But, that's where 'RegisterHotkey' is located.

Any ideas???

Razneb-
Post 24 Feb 2005, 01:11
View user's profile Send private message Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: US
coconut 24 Feb 2005, 05:22
paste your import section here?
Post 24 Feb 2005, 05:22
View user's profile Send private message Reply with quote
Razneb



Joined: 10 Feb 2005
Posts: 12
Razneb 24 Feb 2005, 05:25
Here it is.

Code:
section ".idata" import data readable writeable
library KERNEL32,"KERNEL32.DLL",\
    USER32,"USER32.DLL",\
    GDI32,"GDI32.DLL"

import GDI32,\
       CreateFont,"CreateFontA"

import KERNEL32,\
       GetModuleHandle,"GetModuleHandleA",\
       OpenProcess,"OpenProcess",\
       WriteProcessMemory,"WriteProcessMemory",\
       ReadProcessMemory,"ReadProcessMemory",\
       CloseHandle,"CloseHandle",\
       ExitProcess,"ExitProcess"

import USER32,\
       FindWindow,"FindWindowA",\
       GetWindowThreadProcessId,"GetWindowThreadProcessId",\
       SendMessage,"SendMessageA",\
       MessageBox,"MessageBoxA",\
       RegisterClass,"RegisterClassA",\
       CreateWindowEx,"CreateWindowExA",\
       DefWindowProc,"DefWindowProcA",\
       ShowWindow,"ShowWindow",\
       LoadCursor,"LoadCursorA",\
       LoadIcon,"LoadIconA",\
       GetMessage,"GetMessageA",\
       TranslateMessage,"TranslateMessage",\
       DispatchMessage,"DispatchMessageA",\
       RegisterHotkey,"RegisterHotkey",\
       UnregisterHotkey,"UnregisterHotkey",\
       PostQuitMessage,"PostQuitMessage"    
Post 24 Feb 2005, 05:25
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20459
Location: In your JS exploiting you and your system
revolution 24 Feb 2005, 07:17
RegisterHotKey,"RegisterHotKey",\

Use a capital "K"
Post 24 Feb 2005, 07:17
View user's profile Send private message Visit poster's website Reply with quote
liteonish



Joined: 24 Feb 2005
Posts: 26
liteonish 24 Feb 2005, 13:01
Umm... A bit offtopic, but I've read that even if you include the whole damn library FASM only actually includes the parts that your exe needs. If that's true, isn't there no point to including every string separately?

_________________
I just own that much.
Post 24 Feb 2005, 13:01
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 24 Feb 2005, 13:21
liteonish wrote:
Umm... A bit offtopic, but I've read that even if you include the whole damn library FASM only actually includes the parts that your exe needs. If that's true, isn't there no point to including every string separately?


Yes, there is no point, but visibly the people like to build its import tables manually or simply don't like to read the macro definitions... Very Happy

Regards.
Post 24 Feb 2005, 13:21
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
gumletis



Joined: 18 Dec 2004
Posts: 128
gumletis 25 Feb 2005, 07:58
Also if you include manuelt, you can import from other librarys them you not normaly do with, fx your own....
Post 25 Feb 2005, 07:58
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 25 Feb 2005, 11:31
Quote:
Umm... A bit offtopic, but I've read that even if you include the whole damn library FASM only actually includes the parts that your exe needs. If that's true, isn't there no point to including every string separately?


I import the parts I need manually for two reasons. First, I use a scaled down, slightly customized version of the macros. Secondly, it helps those reading my source to see exactly what functions I'm actually using.
Post 25 Feb 2005, 11:31
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.