Sign in to follow this  
Desdemona

CS_NOCLOSE and Console Windows

Recommended Posts

Does anyone know if it is possible to disable the close option from console apps? This returns an access denied error: SetClassLong(GetConsoleWindow(), GCL_style, CS_NOCLOSE | GetClassLong(GetConsoleWindow(), GCL_style))

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