flat assembler
Message board for the users of flat assembler.

Index > Windows > desktop without create window access right

Author
Thread Post new topic Reply to topic
b1528932



Joined: 21 May 2010
Posts: 287
b1528932 18 Apr 2011, 16:09
I have a question. Is it possible, that when my program is started, it will fail to create window because the desktop doesnt have access right?

I would like to create message only window to use FD_XX socket events, and im wondering, should i care abut a specific situation when my app fail because desktop has insufficient rights. Its basically a choice between select and WSAAsyncSelect, select will work in 100% cases, while async might not if im unable to create a window.

Is i possible, that window creation will fail for some reason, other than a bug in my app or os itself?

thanks.
Post 18 Apr 2011, 16:09
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 18 Apr 2011, 16:19
I don't think Window creation relates to that. Or I don't think you need rights to create a window, do you perhaps ?

If it's creating a process then Yes, but no window, I doubt it
Post 18 Apr 2011, 16:19
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20357
Location: In your JS exploiting you and your system
revolution 18 Apr 2011, 16:28
I am not aware of any security attributes for window creation. I doubt there is such a thing.

But related is a different reason that your app may fail to create a window is lack of enough memory. Always check for success, you never know what might have happened.
Post 18 Apr 2011, 16:28
View user's profile Send private message Visit poster's website Reply with quote
b1528932



Joined: 21 May 2010
Posts: 287
b1528932 18 Apr 2011, 17:20
tell me, is it worth using WSAAsyncSelect? Or should i stick with normal select.
Program must run on windows NT 3.1
Post 18 Apr 2011, 17:20
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 18 Apr 2011, 19:14
What does the documentation say?
Post 18 Apr 2011, 19:14
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.