Download Pelles C here: http://www.pellesc.se
.386
.model flat,stdcall
option casemap:none
ExitProcess PROTO :DWORD
printf PROTO C :DWORD,:VARARG
OutputText PROTO C :DWORD,:VARARG
ALIAS "OutputText"="printf"
includelib \PellesC\lib\Win\kernel32.lib
includelib msvcrt.lib
.data
string db 'Hello world!',0
.code
start:
invoke OutputText,ADDR string
invoke ExitProcess,0
END start012D1000 > $ 68 00202D01 PUSH CalcLen.012D2000 ; ASCII "Hello world!"
012D1005 . E8 F6EFFFFF CALL CalcLen.012D0000
012D100A . 83C4 04 ADD ESP,4
012D100D . 6A 00 PUSH 0 ; /ExitCode = 0
012D100F . E8 00000000 CALL <JMP.&KERNEL32.ExitProcess> ; \ExitProcess
012D1014 $-FF25 5C202D01 JMP DWORD PTR DS:[<&KERNEL32.ExitProcess>; kernel32.ExitProcess
012D101A .-FF25 64202D01 JMP DWORD PTR DS:[<&msvcrt.printf>] ; msvcrt.printf
QuoteRevised POASM handling of ALIAS directive (IA32, AMD64, ARM64).
printf PROTO C :DWORD,:VARARG
OutputText PROTO C :DWORD,:VARARG
ALIAS "OutputText"="printf"
.386
.model flat,stdcall
option casemap:none
include Example.inc
includelib kernel32.lib
includelib user32.lib
includelib gdi32.lib
SaveBmpFromHBitmap PROTO :DWORD,:DWORD
.data
BmpFile db 'Sample.bmp',0
filename db 'TestBitmap.bmp',0
.data?
hBitmap dd ?
.code
start:
xor eax,eax
invoke LoadImage,eax,ADDR BmpFile,\
IMAGE_BITMAP,eax,eax,LR_LOADFROMFILE
test eax,eax
jz @f
mov hBitmap,eax
invoke SaveBmpFromHBitmap,eax,ADDR filename
@@:
invoke DeleteObject,hBitmap
invoke ExitProcess,0
END start
, and improved messaging text. "C:\Program Files\PowerShell\7\pwsh.exe" -WindowStyle Hidden -FILE "R:\Temp\calendar_exe\SCR1.PS1"
Page created in 0.031 seconds with 15 queries.