flat assembler
Message board for the users of flat assembler.

Index > Windows > How using GlobalGetAtomNameA and GlobalAddAtomA ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1701
Roman 12 Jan 2024, 13:38
And can GlobalGetAtomNameA and GlobalAddAtomA work in different processes ?
Post 12 Jan 2024, 13:38
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 909
Location: Russia
macomics 12 Jan 2024, 15:33
Global - all this is left over from 16-bit Windows, where different modules could be in different segments. This is about segments, not about processes. All Atoms will be inside your process only. This is most often used in window classes to register the class name. In response, you get just such an hAtom.

ADD: GlobalAlloc has the same prefix, but it allocates just memory within this virtual address space and not even shared between different processes. But blocks of this memory can be used by any module (exe or dll) loaded into that address space.
Post 12 Jan 2024, 15:33
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.