Home

API call AllocConsole no longer works in Access 2016 on Windows 10

Highlighted
Rob Boardley
Occasional Visitor

API call AllocConsole no longer works in Access 2016 on Windows 10

The windows API call AllocConsole no longer seems to work in VBA Access 2016 on Windows 10.

 

It functions correctly on Windows 7 with Access 2016 and I've been googling for the past few days tring to find an answer. The code is a follows...

 

Private Declare Function AllocConsole Lib "kernel32" () As Long

 

Function main_loop()

    AllocConsole

    Do

         DoEvents

         'do other stuff

   Loop While True

End Function

 

AllocConsole always return 0 on windows 10.

 

Running Access as an Administrator and enabing macros and adding trust centre setting etc have no effect.

 

Is there a work around to get a console window to open?

 

Thanks

Rob

    

 

 

Related Conversations
spfx React > REST API > Map search results
Mike Jansen in SharePoint Developer on
34 Replies
Planner API
Bill Hand in Planner on
5 Replies
Changing Delve Feature Settings
Dean Gross in Microsoft Graph on
13 Replies
Customizing Delve profile
Ernst Decsey in Delve on
4 Replies