Sign in to follow this  
Followers 0
JohnOne

(Solved) _WinAPI_OpenFileMapping()

5 posts in this topic

#1 ·  Posted (edited)

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.

Share this post


Link to post
Share on other sites



Are you using paging file or real file?

Surely you can set desired access in any case.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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.

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0