Boolean TokenLoadMonikerBuffer(
dword tokenChars, /* four characters of token */
ManufacturerID manufacturerID, /* manufacturer ID of token */
DisplayType displayType, /* type of display for token */
VisMonikerSearchFlags searchFlags, /* flags for finding token */
void * buffer, /* pointer to buffer for token */
word bufSize, /* size of passed buffer */
word * bytesReturned); /* number of bytes returned */
This routine loads a specified token's moniker into a provided buffer. The return value will be
false
if the moniker was found,
true
otherwise. The size of the returned moniker will be returned in the word pointed to by the
bytesReturned
parameter.
Pass this routine the following:
tokenChars
manufacturerID
displayType
DisplayType
indicating the size of the display (used to indicate small-screen devices, primarily).
searchFlags
VisMonikerSearchFlags
indicating what type of moniker is being requested.
buffer
bufSize
bytesReturnedInclude: token.h
Boolean TokenLoadMonikerChunk(
dword tokenChars, /* four characters of token */
ManufacturerID manufacturerID, /* manufacturer ID of token */
DisplayType displayType, /* type of display for token */
VisMonikerSearchFlags searchFlags, /* flags for finding token */
MemHandle lmemBlock, /* locked block for new chunk */
word * chunkSize, /* returned new chunk size */
ChunkHandle * chunkHandle); /* returned new chunk handle */
This routine loads a specified token's moniker, allocating a new chunk in a local memory block for the moniker. The returned error flag will be
true
if the moniker was not found,
false
otherwise.
Pass this routine the following:
tokenChars
manufacturerID
displayType
DisplayType
indicating the size of the display (used to indicate small-screen devices, primarily).
searchFlags
VisMonikerSearchFlags
indicating what type of moniker is being requested.
lmemBlock
chunkSize
chunkhandleWarnings: This routine can move chunks in the passed block, thereby invalidating pointers to any chunk in the block.
Include: token.h
Boolean TokenLoadTokenBlock(
dword tokenChars, /* four characters of token */
ManufacturerID manufacturerID, /* manufacturer ID of token */
word * blockSize, /* returned size of new block */
MemHandle * blockHandle); /* returned handle of block */
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
true
; otherwise, it will be
false
.
Pass this routine the following:
tokenChars
manufacturerID
blockSize
blockHandleInclude: token.h
Boolean TokenLoadTokenBuffer(
dword tokenChars, /* four characters of token */
ManufacturerID manufacturerID, /* manufacturer ID of token */
TokenEntry * buffer); /* buffer for returned token */
This routine loads the specified token's
TokenEntry
structure into a passed buffer. The returned error flag will be
true
if the token was not found,
false
otherwise. Pass this routine the following:
tokenChars
manufacturerID
buffer
Include: token.h
GEOS SDK TechDocs
|
|
TokenDefineToken() ...
|
TokenLoadTokenChunk() ...