|
-
Nov 1st, 2001, 09:55 PM
#1
Thread Starter
Lively Member
Locking a memory address / process..
Is there a way to lock a memory address, so that a program can't write to it?
-
Nov 1st, 2001, 10:37 PM
#2
Yes, there is. One way is to use critical sections. These are meant to protect blocks of code or data.
InitializeCriticalSection()
EnterCriticalSection()
LeaveCriticalSection()
DeleteCriticalSection()
I think it's possible in VB, but I've only implemented it in C.
You can read and see examples.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|