flat assembler
Message board for the users of flat assembler.

Index > Windows > My some code snippet

Author
Thread Post new topic Reply to topic
goldenspider



Joined: 16 May 2011
Posts: 38
goldenspider
Aha, Fixed some errors.

Create a Transparent windows using Premultiplied Alpha bmp.

You need to add some definition.

INCLUDE\API\USER32.INC
...
UpdateLayeredWindow,'UpdateLayeredWindow',\
...

INCLUDE\EQUATES\GDI32.INC
...
struct BLENDFUNCTION
BlendOp db ?
BlendFlags db ?
SourceConstantAlpha db ?
AlphaFormat db ?
ends

AC_SRC_OVER = 00h
AC_SRC_ALPHA = 01h
...


Description:
Filesize: 67.08 KB
Viewed: 1169 Time(s)

alpha0.png


Description:
Download
Filename: AlphaWin.zip
Filesize: 86.57 KB
Downloaded: 119 Time(s)



Last edited by goldenspider on 02 Sep 2011, 05:11; edited 3 times in total
Post 01 Sep 2011, 02:35
View user's profile Send private message Reply with quote
goldenspider



Joined: 16 May 2011
Posts: 38
goldenspider
SMC.ASM is a test piece for reading and writing to the code section
of a PE file.


Description:
Download
Filename: smc.zip
Filesize: 1.69 KB
Downloaded: 98 Time(s)

Post 01 Sep 2011, 02:41
View user's profile Send private message Reply with quote
goldenspider



Joined: 16 May 2011
Posts: 38
goldenspider
fasm call GNU multiple precision functions.


Description:
Download
Filename: gmp.zip
Filesize: 210.25 KB
Downloaded: 122 Time(s)

Post 01 Sep 2011, 02:44
View user's profile Send private message Reply with quote
goldenspider



Joined: 16 May 2011
Posts: 38
goldenspider
Call LZMA.Dll example (Lempel-Ziv-Markov chain-Algorithm)


Description:
Download
Filename: lzma.zip
Filesize: 345.03 KB
Downloaded: 101 Time(s)

Post 01 Sep 2011, 02:47
View user's profile Send private message Reply with quote
goldenspider



Joined: 16 May 2011
Posts: 38
goldenspider
This is example of mixing C and assembly (using MS Visual C)

this file demonstrates following:
- calling fastcall function defined in asm (AddNum)


Description:
Download
Filename: fastcall.zip
Filesize: 119.58 KB
Downloaded: 105 Time(s)

Post 01 Sep 2011, 02:52
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.