Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to index page
Thread view  Board view

14.06.2008, 15:15
(edited by DOS386, 15.06.2008, 07:59)


I encountered an application linking to AVICAP32.DLL :-) but regrettably HX doesn't provide such so brewed my own:

; *** AVICRAP.ASM ***

; Faked / dummy AVICRAP.DLL / AVICAP32.DLL | Based on DeLL HELL example
; (CL) Copyleft 2008 by DOS386 , Public Domain - ABUSE AT YOUR OWN RISK !!!
; Compile with FASM -> AVICRAP.DLL (1.5 KiB) -> AVICAP32.DLL to activate ;-)
; Requires "EXPORT.INC" from FASMW package
; Imports and fixups/relox are deleted for obvious reason ;-)

include "EXPORT.INC"

format PE GUI 4.0 DLL on "AVISTUB.BIN" as "DLL"
entry  llentry

section '.code' code readable executable

llentry:  xor  eax,eax     ; &
          inc  eax         ; & MOVNTQ EAX,1
          ret  12          ; Throw away 3 arguments :-D

CrapWin:  xor  eax,eax     ; Return handle 0 -> if you don't like it, just F*** OFF ;-)
          ret  32          ; Throw away 8 arguments

section '.edata' export data readable

export 'AVICAP32.DLL',CrapWin,'capCreateCaptureWindowA'


Yeah ... just 10 lines of code and one compiler needed to get the DLL :clap:

My version is 100 times less bloated, [image] times more free and 99% compatible to the original ... the only marginal difference is, that it doesn't "open the capture window" :ok:

Maybe good idea to add to HX ? :hungry:

DL (3.73 KiB)

This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***

Back to index page
Thread view  Board view
15317 Postings in 1383 Threads, 254 registered users, 34 users online (0 registered, 34 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum