Jump to content

(Solved) _WinAPI_OpenFileMapping()


Recommended Posts

I'm using above function as means of IPC.

Everything is fine and dandy, until I move the second process outside the folder

which the first resides, at which time the function errors out <non zero>

My question is, is it a condition of the function that both processes need to be in the

same folder, or is there some hoop I can jump through to get it working as I require?

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

I'm using paging file with default values, and communicating with a c++ application.

I will have a go at trying $FILE_MAP_ALL_ACCESS.

EDIT:

Crap, I'm getting a ton of constant errors when including APIConstants.au3.

Going to have to sort that out first.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

I did Yashied, 3.7 exe installer, it was mostlt constants, there were syill a lot of them,

there were others but only ones I recall came from "GuiRichEdit.au3".

___________________________________________________________________

Anyway, I got this solved in the end, after a bit of woe, was trying to open mapping

in C++ with FILE_MAP_ALL_ACCESS which it never liked and errord out with 87.

Made it PAGE_READWRITE in c++ and $FILE_MAP_ALL_ACCESS in autoit3.

Seems to be fine now.

Thank you for suggestion trancexx.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...