I'm trying to implement the FindMimeFromData primitive in the
URLMonLibrary class. I've defined the follwing method:
URLMonLibrary>>findMimeFromData: pBC pwzUrl: pwzUrl pBuffer: pBuffer
cbSize: cbSize pwzMimeProposed: pwzMimeProposed dwMimeFlags:
dwMimeFlags ppwzMimeOut: ppwzMimeOut dwReserved: dwReserved
"Determines the Multipurpose Internet Mail Extensions (MIME) type
from the data provided.
HRESULT FindMimeFromData(
LPBC pBC,
LPCWSTR pwzUrl,
LPVOID pBuffer,
DWORD cbSize,
LPCWSTR pwzMimeProposed,
DWORD dwMimeFlags,
LPWSTR* ppwzMimeOut,
DWORD dwReserved );"
<stdcall: hresult FindMimeFromDataA lpvoid UnicodeString* lpvoid
dword UnicodeString* dword lpwstr* dword>
^self invalidCall
but when I invoke it with:
mime := String new: 50.
URLMonLibrary default findMimeFromData: nil pwzUrl:
'
http://www.yahoo.com' pBuffer: nil cbSize: 0
pwzMimeProposed: nil dwMimeFlags: 0 ppwzMimeOut: mime dwReserved: 0
I get the error: "The specified procedure could not be found." Any
ideas what I'm doing wrong? Any help would be appreciated.