none
Nano missing CreateFileMapping API RRS feed

  • Question

  • I am trying to port an existing adapter management API/App that depends on CreateFileMapping.

    Seems in a VS 2015 nano server project this is not supported?  Is there any other course of action?

    Thanks,


    Rick


    Rick Hicksted


    • Edited by rhicksted Monday, December 21, 2015 12:21 AM
    Monday, December 21, 2015 12:13 AM

Answers

  • Hi Rick,

    For now, ANSI APIs are generally not supported on Nano Server, so please use the Unicode version of the API. I see that you already have IntelliSense for CreateFileMappingW.

    ref@

    • Marked as answer by rhicksted Tuesday, December 22, 2015 7:43 PM
    Tuesday, December 22, 2015 6:10 PM

All replies

  • Hi Rick,

    Which CreateFileMapping API are you trying to use? This page has the set of supported APIs: https://msdn.microsoft.com/en-us/library/mt588480%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 it is a big page so takes time to load.

    It shows the following are supported:

    • CreateFileMappingA
    • CreateFileMappingFromApp
    • CreateFileMappingNumaW
    • CreateFileMappingW

    Hope that helps,

    Andrew

    Monday, December 21, 2015 6:01 PM
  • I believe it is:  CreateFileMappingA.   Can I just include kernel32.lib into the project and use the redirector build of Nano?

    Thanks again,


    Rick


    Rick Hicksted

    Tuesday, December 22, 2015 4:40 PM
  • I see it here...As a developer how do I know the header/lib to include in the NanoServer VS project?

    Sorry as this seems like a basic question.

    I tried kernel32.lib, api-ms-win-core-kernel32-legacy-l1-1-1.lib

    api-ms-win-core-kernel32-legacy-l1-1-1.dll

    Note: in the Vistual Studio I am seeing the IntelliSense for the *.W calls and not the *.A and yes I have Uniciode turned off in the project settings.

    Thanks,

    Rick


    Rick Hicksted





    • Edited by rhicksted Tuesday, December 22, 2015 5:53 PM
    Tuesday, December 22, 2015 4:45 PM
  • Hi Rick,

    For now, ANSI APIs are generally not supported on Nano Server, so please use the Unicode version of the API. I see that you already have IntelliSense for CreateFileMappingW.

    ref@

    • Marked as answer by rhicksted Tuesday, December 22, 2015 7:43 PM
    Tuesday, December 22, 2015 6:10 PM