From 9ba500cac2da61f4a1bf0b434f3cc3e3805c2a5a Mon Sep 17 00:00:00 2001 From: Ian Schmidt Date: Fri, 19 Feb 1999 14:04:35 +0000 Subject: [PATCH] Partial stub implementation of undocumented KERNEL routine PK16FNF, needed by Win98 EXPLORER. Thanks to Ulrich Weigand for information. --- relay32/kernel32.spec | 2 +- win32/kernel32.c | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/relay32/kernel32.spec b/relay32/kernel32.spec index e392228c10a..7f99c60f980 100644 --- a/relay32/kernel32.spec +++ b/relay32/kernel32.spec @@ -103,7 +103,7 @@ init MAIN_KernelInit 88 varargs SSCall() SSCall 89 register FT_PrologPrime() FT_PrologPrime 90 register QT_ThunkPrime() QT_ThunkPrime - 91 stub PK16FNF + 91 stdcall PK16FNF(ptr) PK16FNF 92 stdcall GetPK16SysVar() GetPK16SysVar 93 stdcall GetpWin16Lock(ptr) GetpWin16Lock32 94 stdcall _CheckNotSysLevel(ptr) _CheckNotSysLevel diff --git a/win32/kernel32.c b/win32/kernel32.c index 3335dce978d..7f4b59a035e 100644 --- a/win32/kernel32.c +++ b/win32/kernel32.c @@ -1362,5 +1362,22 @@ BOOL32 WINAPI GetBinaryType32W (LPCWSTR lpApplicationName, LPDWORD lpBinaryType) return ret; } +/********************************************************************* + * PK16FNF [KERNEL32.91] + * + * This routine fills in the supplied 13-byte (8.3 plus terminator) + * string buffer with the 8.3 filename of a recently loaded 16-bit + * module. It is unknown exactly what modules trigger this + * mechanism or what purpose this serves. Win98 Explorer (and + * probably also Win95 with IE 4 shell integration) calls this + * several times during initialization. + * + * FIXME: find out what this really does and make it work. + */ +void WINAPI PK16FNF(LPSTR strPtr) +{ + FIXME(win32, "(%p): stub\n", strPtr); - + /* fill in a fake filename that'll be easy to recognize */ + lstrcpy32A(strPtr, "WINESTUB.FIX"); +} -- 2.11.4.GIT