How to test cryptui's dialogs?
André Hentschel
nerv at dawncrow.de
Mon Jul 6 11:56:57 CDT 2009
Aurimas Fišeras schrieb:
> On 07/06/2009 03:44 AM, Juan Lang wrote:
>> Hi Aurimas,
>>
>>> But how can I run cryptui's wizards and other dialogs to confirm that
>>> everything else is translated correctly?
>> In addition to the excellent suggestions you've already gotten, I'll
>> just add that it's possible to test cryptui's dialogs without
>> installing anything by opening the certificate manager. For instance,
>> the following program, compiled with winegcc, should produce a program
>> that'll open the certificate manager:
>>
>> #include <windows.h>
>> #include <cryptuiapi.h>
>> int main(void)
>> {
>> CRYPTUI_CERT_MGR_STRUCT mgrStruct;
>>
>> memset(&mgrStruct, 0, sizeof(mgrStruct);
>> mgrStruct.dwSize = sizeof(mgrStruct);
>> CryptUIDlgCertMgr(&mgrStruct);
>> return 0;
>> }
>>
>> Thanks,
>> --Juan
>>
> Thanks. This method works too.
> However, had to add
> #include <string.h>
> to compile it.
>
> Unfortunately certificate manager crashes in the same places as it
> crashed in Chrome.
>
>
Juan,
You missed a ) in the memset-line, but i didnt need to include string.h as Aurimas.
I just used "winemaker ." and added "-lcryptui" for LIBRARIES and it compiled fine.
--
Best Regards, André Hentschel
More information about the wine-devel
mailing list