diff -r ebc84c812384 -r 46218c8b8afa Symbian3/PDK/Source/GUID-4C406E49-7726-5620-AAAA-84C33DADAF4B.dita --- a/Symbian3/PDK/Source/GUID-4C406E49-7726-5620-AAAA-84C33DADAF4B.dita Thu Mar 11 15:24:26 2010 +0000 +++ b/Symbian3/PDK/Source/GUID-4C406E49-7726-5620-AAAA-84C33DADAF4B.dita Thu Mar 11 18:02:22 2010 +0000 @@ -1,39 +1,39 @@ - - - - - -Opening -a handle to an existing global Kernel objectThis document describes how to find a global kernel object by using -a handle. -

A handle can be opened on an existing global Kernel object.

-

Global Kernel objects are explicitly named by their creators; the technique -for finding these objects involves using a search pattern to search for objects -with matching full names. The TFindHandleBase provides the -basic behavior.

-

In practice, each specific type has its own class derived from TFindHandleBase, -for example, semaphores have TFindSemaphore, mutexes have TFindMutex and -so on.

-

For example, the following code fragment searches for the first global -semaphore whose full name ends with the characters "day" and opens a thread-relative -handle on that semaphore:

-_LIT(KDay,"*day"); -... -TFindSemaphore finder(KDay); // derived from TFindHandleBase -TFullName theName; -RSemaphore theSem; // derived from RHandleBase -... -if ((finder.Next(thename))==KErrNone) - { - theSem.Open(finder,EOwnerThread); - ... - } -... - + + + + + +Opening +a handle to an existing global Kernel objectThis document describes how to find a global kernel object by using +a handle. +

A handle can be opened on an existing global Kernel object.

+

Global Kernel objects are explicitly named by their creators; the technique +for finding these objects involves using a search pattern to search for objects +with matching full names. The TFindHandleBase provides the +basic behavior.

+

In practice, each specific type has its own class derived from TFindHandleBase, +for example, semaphores have TFindSemaphore, mutexes have TFindMutex and +so on.

+

For example, the following code fragment searches for the first global +semaphore whose full name ends with the characters "day" and opens a thread-relative +handle on that semaphore:

+_LIT(KDay,"*day"); +... +TFindSemaphore finder(KDay); // derived from TFindHandleBase +TFullName theName; +RSemaphore theSem; // derived from RHandleBase +... +if ((finder.Next(thename))==KErrNone) + { + theSem.Open(finder,EOwnerThread); + ... + } +... +
\ No newline at end of file