Hi,
I was looking for an API call to have the file type defined based on its contents.
I think the FindMimeFromData function does it all.
Now I have the problem of not knowing how to address this from within VFP.
I know I have to use the DECLARE, but then I'm stocked with the arguments and the types to pass on to the DLL.
Please, can anybody put a light on this??
Here is the function syntax.
HRESULT FindMimeFromData(
LPBC pBC,
LPCWSTR pwzUrl,
LPVOID pBuffer,
DWORD cbSize,
LPCWSTR pwzMimeProposed,
DWORD dwMimeFlags,
LPWSTR *ppwzMimeOut,
DWORD dwReserved
);
Thanks in advance.