locked
API not supported in kernel.32 RRS feed

  • Question

  • when i tried to build the package for my store app in which i have used sqlite database, i got the following errors.please tell me how can i solved without modifying the code.is there any way?

    • API AreFileApisANSI in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API CreateFileA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API CreateFileMappingA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API CreateFileMappingW in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API CreateFileW in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API CreateMutexW in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API DeleteFileA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API FormatMessageA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetDiskFreeSpaceA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetDiskFreeSpaceW in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetFileAttributesA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetFileAttributesW in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetFileSize in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetFullPathNameA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetFullPathNameW in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetModuleHandleA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetSystemInfo in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetTempPathA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetTempPathW in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetTickCount in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API GetVersionExA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API HeapCreate in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API HeapDestroy in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API HeapValidate in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API InitializeCriticalSection in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API LoadLibraryA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API LoadLibraryW in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API LocalFree in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API LockFile in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API MapViewOfFile in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API OutputDebugStringA in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API SetFilePointer in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API Sleep in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API TlsGetValue in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API UnlockFile in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API VirtualProtect in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API WaitForSingleObject in kernel32.dll is not supported for this application type. sqlite3.dll calls this API.
    • API __dllonexit in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API _errno in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API _iob in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API _winmajor in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API abort in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API calloc in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API fflush in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API free in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API fwrite in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API localtime in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API malloc in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API memcmp in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API memmove in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API memset in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API qsort in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API realloc in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API strcmp in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API strncmp in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.
    • API vfprintf in msvcrt.dll is not supported for this application type. sqlite3.dll calls this API.

    Thursday, October 24, 2013 1:36 PM

Answers

  • Make sure you're using the version of SQLite that targets Windows Store apps. Those API are correctly being rejected. see Win32 and COM for Windows Store apps

    If you need help with how to compile SQLite check the SQLite forums. 

    --Rob

    Thursday, October 24, 2013 2:41 PM
    Moderator

All replies

  • Make sure you're using the version of SQLite that targets Windows Store apps. Those API are correctly being rejected. see Win32 and COM for Windows Store apps

    If you need help with how to compile SQLite check the SQLite forums. 

    --Rob

    Thursday, October 24, 2013 2:41 PM
    Moderator
  • i have removed the sqlite3.dll file from the folder and added two reference sqlite for windows runtime and microsoft visual c++ .These errors are not coming now but i am getting a performance error that my app failed to launch.should i upload the package ???
    Saturday, October 26, 2013 9:14 AM
  • HI H and J Developer,

    Is the performance error related to the SQLite? I would like to mark Rob's reply, he gave a correct direction for your original question.

    I suggest you could open a new question about the performance issue and more experts will help you. BTW, I don't think to upload the package with a performance issue is a good option, the user might not be satisfied with your app. Or some publish related question can be raised here: Publishing Windows Store apps.

    Best Regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, November 8, 2013 3:11 AM
    Moderator
  • Hi,

    Even I have similar issue while creating package for store. But with Security.Cryptography.dll

    • API LoadLibraryW in kernel32.dll is not supported for this application type. Security.Cryptography.dll calls this API.
    • API LocalFree in kernel32.dll is not supported for this application type. Security.Cryptography.dll calls this API.
    • API CertCreateSelfSignCertificate in crypt32.dll is not supported for this application type. Security.Cryptography.dll calls this API.

    Please help me in fixing this ...

    Tuesday, December 2, 2014 10:49 AM