From 3d83ba0f319b641e9392c2bc4668278b276f7291 Mon Sep 17 00:00:00 2001
From: RainerB
This routine loads the specified token's
@@ -210,11 +210,10 @@
This routine loads the specified token's
TokenEntry
- structure into a newly-allocated global memory block. If the token is not found, the returned error flag will be
+ structure into a newly-allocated global memory block. The returned Boolean will be
true
-; otherwise, it will be
+if the token was found; otherwise, it will be
false
.
TokenEntry
- structure into a passed buffer. The returned error flag will be
+ structure into a passed buffer. The returned Boolean will be
true
- if the token was not found,
-false
- otherwise. Pass this routine the following:
+false
. Pass this routine the following:
diff --git a/TechDocs/html/CRef/Routines/R_9d.htm b/TechDocs/html/CRef/Routines/R_9d.htm
index f5b6a477e..98bb1a2be 100644
--- a/TechDocs/html/CRef/Routines/R_9d.htm
+++ b/TechDocs/html/CRef/Routines/R_9d.htm
@@ -1,240 +1,240 @@
-
-
-
-
-
-
-
-
-
-
-
-GEOS C Routines: TokenLoadTokenChunk() ...
-
-
-
-
-
-
-TokenLoadTokenChunk()
-Boolean TokenLoadTokenChunk(
- dword tokenChars, /* four characters of token */
- ManufacturerID manufacturerID, /* manufacturer ID of token */
- MemHandle lmemBlock, /* handle of block for chunk */
- word * chunkSize, /* returned size of new chunk */
- ChunkHandle * chunkHandle); /* returned chunk handle */
-
-This routine loads the specified token's
-TokenEntry
- structure into a newly-allocated chunk. The returned error flag will be
-true
- if the token could not be found,
-false
- otherwise.
-
-Pass this routine the following:
-
--
-
-tokenChars
- - The four token characters that identify the token database entry. Create this dword from the four characters with the macro TOKEN_CHARS.
--
-
-manufacturerID
-
-
-The manufacturer ID number of the manufacturer responsible for the token database entry.
--
-
-lmemBlock
- - The MemHandle of the local memory block in which the new chunk will be allocated. If the block is locked, you must manually dereference this handle after the routine call.
--
-
-chunksize
- - A pointer to a word in which the size of the newly-allocated chunk will be returned.
--
-
-chunkHandle
-
-
-A pointer to a chunk handle in which the handle of the newly-allocated chunk will be returned.
-
-
-Warnings: This routine can move chunks in the passed block, thereby invalidating pointers to any chunk in the block.
-
-Include:
-token.h
-
-
-
-
-
-
-TokenLockTokenMoniker()
-void * TokenLockTokenMoniker(
- TokenMonikerInfo tokenMonikerInfo); /* The DB group and item numbers
- * as returned by TokenLookupMoniker() */
-
-This routine locks a token's moniker so it may be drawn; it returns a pointer to the locked chunk containing the moniker information. Pass it the structure returned by
-TokenLookupMoniker()
-.
-
-Be Sure To: Unlock the moniker with
-TokenUnlockTokenMoniker()
- after you have finished drawing it.
-
-Include:
-token.h
-
-
-
-
-
-
-TokenLookupMoniker()
-Boolean TokenLookupMoniker(
- dword tokenChars, /* four characters of token */
- ManufacturerID manufacturerID, /* manufacturer ID of token */
- DisplayType displayType, /* display type of token */
- VisMonikerSearchFlags searchFlags, /* flags for finding token */
- TokenMonikerInfo * tokenMonikerInfo); /* DB group and item of token */
-
-This routine finds and retrieves a pointer to the specific moniker for the specified token, given also the token's display type and other attributes. Pass the following:
-
--
-
-tokenChars
- - The four token characters that identify this moniker or moniker list in the token database. Create this dword value from the four characters with the macro TOKEN_CHARS.
--
-
-manufacturerID
-
-
-The manufacturer ID number of the manufacturer responsible for the token database entry.
--
-
-displayType
-
-
-A value of
-DisplayType
- indicating the size of the display (used to indicate small-screen devices, primarily).
--
-
-searchFlags
-
-
-A record of
-VisMonikerSearchFlags
- indicating what type of moniker is being requested.
--
-
-tokenDBItem
-
-
-A pointer to an empty
-TokenMonikerInfo
- structure, in which the token's group and item numbers will be returned.
-
-
-The return value is an error flag: it will be
-true
- if the item could not be found in the token database,
-false
- otherwise.
-
-Include:
-token.h
-
-
-
-
-
-
-TokenOpenLocalTokenDB()
-word TokenOpenLocalTokenDB()
-
-This routine opens the local token database. It returns zero on success, and a
-VMStatus
- error code on failure.
-
-Include:
-token.h
-
-
-
-
-
-
-TokenRemoveToken
-Boolean TokenRemoveToken(
- dword tokenChars, /* four characters of token */
- ManufacturerID manufacturerID, /* manufacturer ID of token */
-
-This routine removes the specified token and its moniker list from the token database. It returns an error flag: if the token could not be found, the returned flag is
-true
-; otherwise it is
-false
-. Pass the following:
-
--
-
-tokenChars
- - The four token characters that identify this moniker or moniker list in the token database. Create this dword value from the four characters with the macro TOKEN_CHARS.
--
-
-manufacturerID
-
-
-The manufacturer ID number of the manufacturer responsible for the token database entry.
-
-
-Include:
-token.h
-
-
-
-
-
-
-TokenUnlockTokenMoniker()
-void TokenUnlockTokenMoniker(
- void * moniker);
-
-This routine unlocks a moniker that had been locked with
-TokenLockTokenMoniker()
-. Pass a pointer to the locked moniker, as returned by the locking routine.
-
-Include:
-token.h
-
-
-
-
-
-
-
-
-TypeFromFormatID()
-word TypeFromFormatID(id);
- ClipboardItemFormatID id;
-
-This macro extracts the word-sized format ID (of type
-ClipboardItemFormat
-) from a
-ClipboardFormatID
- argument.
-
-
-
-|
GEOS SDK TechDocs
-|
-
- |
TokenLoadMonikerBuffer() ...
- |
UserAllocObjBlock ...
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+GEOS C Routines: TokenLoadTokenChunk() ...
+
+
+
+
+
+
+TokenLoadTokenChunk()
+Boolean TokenLoadTokenChunk(
+ dword tokenChars, /* four characters of token */
+ ManufacturerID manufacturerID, /* manufacturer ID of token */
+ MemHandle lmemBlock, /* handle of block for chunk */
+ word * chunkSize, /* returned size of new chunk */
+ ChunkHandle * chunkHandle); /* returned chunk handle */
+
+This routine loads the specified token's
+TokenEntry
+ structure into a newly-allocated chunk. The returned Boolean will be
+true
+if the token was found; otherwise, it will be
+false
+.
+
+Pass this routine the following:
+
+-
+
+tokenChars
+ - The four token characters that identify the token database entry. Create this dword from the four characters with the macro TOKEN_CHARS.
+-
+
+manufacturerID
-
+
+The manufacturer ID number of the manufacturer responsible for the token database entry.
+-
+
+lmemBlock
+ - The MemHandle of the local memory block in which the new chunk will be allocated. If the block is locked, you must manually dereference this handle after the routine call.
+-
+
+chunksize
+ - A pointer to a word in which the size of the newly-allocated chunk will be returned.
+-
+
+chunkHandle
-
+
+A pointer to a chunk handle in which the handle of the newly-allocated chunk will be returned.
+
+
+Warnings: This routine can move chunks in the passed block, thereby invalidating pointers to any chunk in the block.
+
+Include:
+token.h
+
+
+
+
+
+
+TokenLockTokenMoniker()
+void * TokenLockTokenMoniker(
+ TokenMonikerInfo tokenMonikerInfo); /* The DB group and item numbers
+ * as returned by TokenLookupMoniker() */
+
+This routine locks a token's moniker so it may be drawn; it returns a pointer to the locked chunk containing the moniker information. Pass it the structure returned by
+TokenLookupMoniker()
+.
+
+Be Sure To: Unlock the moniker with
+TokenUnlockTokenMoniker()
+ after you have finished drawing it.
+
+Include:
+token.h
+
+
+
+
+
+
+TokenLookupMoniker()
+Boolean TokenLookupMoniker(
+ dword tokenChars, /* four characters of token */
+ ManufacturerID manufacturerID, /* manufacturer ID of token */
+ DisplayType displayType, /* display type of token */
+ VisMonikerSearchFlags searchFlags, /* flags for finding token */
+ TokenMonikerInfo * tokenMonikerInfo); /* DB group and item of token */
+
+This routine finds and retrieves a pointer to the specific moniker for the specified token, given also the token's display type and other attributes. Pass the following:
+
+-
+
+tokenChars
+ - The four token characters that identify this moniker or moniker list in the token database. Create this dword value from the four characters with the macro TOKEN_CHARS.
+-
+
+manufacturerID
-
+
+The manufacturer ID number of the manufacturer responsible for the token database entry.
+-
+
+displayType
-
+
+A value of
+DisplayType
+ indicating the size of the display (used to indicate small-screen devices, primarily).
+-
+
+searchFlags
-
+
+A record of
+VisMonikerSearchFlags
+ indicating what type of moniker is being requested.
+-
+
+tokenDBItem
-
+
+A pointer to an empty
+TokenMonikerInfo
+ structure, in which the token's group and item numbers will be returned.
+
+
+The return value is an error flag: it will be
+true
+ if the item could not be found in the token database,
+false
+ otherwise.
+
+Include:
+token.h
+
+
+
+
+
+
+TokenOpenLocalTokenDB()
+word TokenOpenLocalTokenDB()
+
+This routine opens the local token database. It returns zero on success, and a
+VMStatus
+ error code on failure.
+
+Include:
+token.h
+
+
+
+
+
+
+TokenRemoveToken
+Boolean TokenRemoveToken(
+ dword tokenChars, /* four characters of token */
+ ManufacturerID manufacturerID, /* manufacturer ID of token */
+
+This routine removes the specified token and its moniker list from the token database. It returns an error flag: if the token could not be found, the returned flag is
+true
+; otherwise it is
+false
+. Pass the following:
+
+-
+
+tokenChars
+ - The four token characters that identify this moniker or moniker list in the token database. Create this dword value from the four characters with the macro TOKEN_CHARS.
+-
+
+manufacturerID
-
+
+The manufacturer ID number of the manufacturer responsible for the token database entry.
+
+
+Include:
+token.h
+
+
+
+
+
+
+TokenUnlockTokenMoniker()
+void TokenUnlockTokenMoniker(
+ void * moniker);
+
+This routine unlocks a moniker that had been locked with
+TokenLockTokenMoniker()
+. Pass a pointer to the locked moniker, as returned by the locking routine.
+
+Include:
+token.h
+
+
+
+
+
+
+
+
+TypeFromFormatID()
+word TypeFromFormatID(id);
+ ClipboardItemFormatID id;
+
+This macro extracts the word-sized format ID (of type
+ClipboardItemFormat
+) from a
+ClipboardFormatID
+ argument.
+
+
+
+|
GEOS SDK TechDocs
+|
+
+ |
TokenLoadMonikerBuffer() ...
+ |
UserAllocObjBlock ...
+
+
+
+