Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
DOS386

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

[BUG] AVICRAP32.DLL (DOSX)

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 ;-)
; http://board.flatassembler.net/topic.php?t=7123

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'

;END.


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 the board
Thread view  Mix view  Order
22049 Postings in 2034 Threads, 396 registered users, 118 users online (0 registered, 118 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum