Quels sont les parametres (nombre, taille...)

Renfield Messages postés 17287 Date d'inscription mercredi 2 janvier 2002 Statut Modérateur Dernière intervention 27 septembre 2021 - 18 août 2005 à 11:05
BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019 - 18 août 2005 à 11:51
Bonjour,

on peut appeler RunDll32 pour executer des fonctions contenues dans des dll...
j'aimerais m'affranchir de cette étape, mais j'ai pour cela besoin de connaitre les parametres a fournir a MailToProtocolHandler (url.dll)

j'espere que vous saurez m'aider.


<HR>
71832322 MailToProtocolHandler:
71832322 55 push ebp
71832323 8BEC mov ebp,esp
71832325 81EC58010000 sub esp,00000158h
7183232B 6804010000 push 00000104h
71832330 8D85A8FEFFFF lea eax,[ebp-00000158h]
71832336 50 push eax
71832337 689C138371 push L7183139C
7183233C 6868138371 push SSZ71831368_CMCDLLName32
71832341 6860138371 push SSZ71831360_Mail
71832346 FF1550118371 call [KERNEL32.dll!GetProfileStringA]
7183234C 85C0 test eax,eax
7183234E 0F860F010000 jbe L71832463
71832354 8D85A8FEFFFF lea eax,[ebp-00000158h]
7183235A 50 push eax
7183235B FF1554118371 call [KERNEL32.dll!LoadLibraryA]
71832361 85C0 test eax,eax
71832363 8945F8 mov [ebp-08h],eax
71832366 0F84D9000000 jz L71832445
7183236C 56 push esi
7183236D BE78138371 mov esi,SSZ71831378_MAPISendMail
71832372 56 push esi
71832373 50 push eax
71832374 FF1558118371 call [KERNEL32.dll!GetProcAddress]
7183237A 85C0 test eax,eax
7183237C 8945F4 mov [ebp-0Ch],eax
7183237F 0F8497000000 jz L7183241C
71832385 53 push ebx
71832386 8B5D10 mov ebx,[ebp+10h]
71832389 57 push edi
7183238A 53 push ebx
7183238B E8BB500000 call SUB_L7183744B
71832390 A1D8158371 mov eax,[L718315D8]
71832395 8B3560118371 mov esi,[KERNEL32.dll!CompareStringA]
7183239B 50 push eax
7183239C 68D0158371 push SSZ718315D0_url_
718323A1 50 push eax
718323A2 53 push ebx
718323A3 6A01 push 00000001h
718323A5 BF00040000 mov edi,00000400h
718323AA 57 push edi
718323AB FFD6 call esi
718323AD 48 dec eax
718323AE 48 dec eax
718323AF 7506 jnz L718323B7
718323B1 031DD8158371 add ebx,[L718315D8]
718323B7 L718323B7:
718323B7 6A07 push 00000007h
718323B9 682C138371 push SSZ7183132C_mailto_
718323BE 6A07 push 00000007h
718323C0 53 push ebx
718323C1 6A01 push 00000001h
718323C3 57 push edi
718323C4 FFD6 call esi
718323C6 48 dec eax
718323C7 48 dec eax
718323C8 7503 jnz L718323CD
718323CA 83C307 add ebx,00000007h
718323CD L718323CD:
718323CD 6A06 push 00000006h
718323CF 59 pop ecx
718323D0 6A0C push 0000000Ch
718323D2 33C0 xor eax,eax
718323D4 8D7DDC lea edi,[ebp-24h]
718323D7 F3AB rep stosd
718323D9 59 pop ecx
718323DA 8D7DAC lea edi,[ebp-54h]
718323DD F3AB rep stosd
718323DF 8D45DC lea eax,[ebp-24h]
718323E2 8945D0 mov [ebp-30h],eax
718323E5 33C0 xor eax,eax
718323E7 50 push eax
718323E8 6A09 push 00000009h
718323EA 8D4DAC lea ecx,[ebp-54h]
718323ED 51 push ecx
718323EE 33D2 xor edx,edx
718323F0 42 inc edx
718323F1 50 push eax
718323F2 50 push eax
718323F3 8955E0 mov [ebp-20h],edx
718323F6 895DE4 mov [ebp-1Ch],ebx
718323F9 8955CC mov [ebp-34h],edx
718323FC FF55F4 call [ebp-0Ch]
718323FF 85C0 test eax,eax
71832401 5F pop edi
71832402 5B pop ebx
71832403 7434 jz L71832439
71832405 8D45FC lea eax,[ebp-04h]
71832408 50 push eax
71832409 6A30 push 00000030h
7183240B 6A0F push 0000000Fh
7183240D 6A06 push 00000006h
7183240F FF7508 push [ebp+08h]
71832412 E8D5270000 call SUB_L71834BEC
71832417 83C414 add esp,00000014h
7183241A EB1D jmp L71832439
7183241C L7183241C:
7183241C 56 push esi
7183241D 8D85A8FEFFFF lea eax,[ebp-00000158h]
71832423 50 push eax
71832424 8D45FC lea eax,[ebp-04h]
71832427 50 push eax
71832428 6A30 push 00000030h
7183242A 6A0D push 0000000Dh
7183242C 6A06 push 00000006h
7183242E FF7508 push [ebp+08h]
71832431 E8B6270000 call SUB_L71834BEC
71832436 83C41C add esp,0000001Ch
71832439 L71832439:
71832439 FF75F8 push [ebp-08h]
7183243C FF15B4108371 call [KERNEL32.dll!FreeLibrary]
71832442 5E pop esi
71832443 EB33 jmp L71832478
71832445 L71832445:
71832445 8D85A8FEFFFF lea eax,[ebp-00000158h]
7183244B 50 push eax
7183244C 8D45FC lea eax,[ebp-04h]
7183244F 50 push eax
71832450 6A30 push 00000030h
71832452 6A0B push 0000000Bh
71832454 6A06 push 00000006h
71832456 FF7508 push [ebp+08h]
71832459 E88E270000 call SUB_L71834BEC
7183245E 83C418 add esp,00000018h
71832461 EB15 jmp L71832478
71832463 L71832463:
71832463 8D45FC lea eax,[ebp-04h]
71832466 50 push eax
71832467 6A30 push 00000030h
71832469 6A1C push 0000001Ch
7183246B 6A06 push 00000006h
7183246D FF7508 push [ebp+08h]
71832470 E877270000 call SUB_L71834BEC
71832475 83C414 add esp,00000014h
71832478 L71832478:
71832478 C9 leave
71832479 C21000 retn 0010h

<HR>

Merci à vous..

si ca peut aider, on fait ce genre d'appel via RunDll32 :
RunDLL32.EXE "url.dll,MailToProtocolHandler "mailto:Renfield@machin.fr"

Amusez-vous !
Renfield - thomas_reynald@msn.com
Admin CodeS-SourceS - MVP Visual Basic

1 réponse

BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019
18 août 2005 à 11:51
void WINAPI MailToProtocolHandler(HWND hwndParent, HINSTANCE hinst, PSTR pszCmdLine, int nShowCmd);

ciao...
BruNews, MVP VC++
0
Rejoignez-nous