Crypt32.dll - CryptProtectData

Vincent Béron vberon at mecano.gme.usherb.ca
Sun Nov 30 15:05:43 CST 2003


Le dim 30/11/2003 à 14:52, Thomas Brix Larsen a écrit :
> RCS file: /home/wine/wine/dlls/crypt32/crypt32.spec,v
> retrieving revision 1.13
> diff -u -r1.13 crypt32.spec
> --- dlls/crypt32/crypt32.spec	12 May 2003 03:21:45 -0000	1.13
> +++ dlls/crypt32/crypt32.spec	30 Nov 2003 19:45:03 -0000
> @@ -186,3 +186,4 @@
>  @ stub RegQueryInfoKeyU
>  @ stub RegQueryValueExU
>  @ stub RegSetValueExU
> +@ stdcall CryptProtectData(ptr wstr ptr ptr ptr long ptr)

Try to keep the functions in alphabetical order in the spec file please.

> +BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn, LPCWSTR szDataDescr, DATA_BLOB* pOptionalEntropy, PVOID pvReserved, void* pPromptStruct, DWORD dwFlags, DATA_BLOB* pDataOut)

You said you changed the type of pPromptStruct to void* for cause of
non-documentation. Better to get documentation for it, such as from
WinCrypt.h from the SDK.
I suggest you add something along those lines in Wine's wincrypt.h:

typedef struct _CRYPTPROTECT_PROMPTSTRUCT
{
  DWORD   cbSize;
  DWORD   dwPromptFlags;
  HWND    hwndApp;
  LPCWSTR szPrompt;
} CRYPTPROTECT_PROMPTSTRUCT, *PCRYPTPROTECT_PROMPTSTRUCT;

Vincent




More information about the wine-devel mailing list