Share via


Specific API Issues

File system functions can either use CP_ACP or CP_OEMCP, which can be set via the SetFileApisToOEM and SetFileApisToANSI functions and queried via the AreFileApisANSI function. The Microsoft Layer for Unicode (MSLU) uses the code page that is set. However, because the setting is per-process and MSLU can be used in multiple threads, synchronization problems are possible (but unlikely) between threads that change this setting.

Some functions return pointers to memory that is internally allocated by the operating system rather than being allocated by the caller. For these functions, the MSLU does not return the internal buffer; instead, it uses static buffers to support the function. This technique is used by the following functions: GetClassInfo, GetClassInfoEx, GetClassLong, and GetStartupInfo, SetClassLong. Also, for all of these functions, except GetStartUpInfo, subsequent calls wipe out the results of previous calls.

MSLU does not translate messages that are sent to a callback procedure specified by the WM_CAP_SET_CALLBACK_ERROR or WM_CAP_SET_CALLBACK_STATUS video capture messages.