Results 1 to 2 of 2

Thread: Locking a memory address / process..

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    109

    Locking a memory address / process..

    Is there a way to lock a memory address, so that a program can't write to it?

  2. #2
    jim mcnamara
    Guest
    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
  •  



Click Here to Expand Forum to Full Width