home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 January
/
Chip_1997-01_cd.bin
/
ms95
/
disk22
/
dir04
/
f012200.re_
/
f012200.re
Wrap
Text File
|
1996-04-02
|
8KB
|
237 lines
/*----------------------------------------------------------------------+
| |
| Copyright (c) 1985-93; Bentley Systems, Inc., All rights reserved. |
| |
| "MicroStation", "MDL", and "MicroCSL" are trademarks of Bentley |
| Systems, Inc. |
| |
| Limited permission is hereby granted to reproduce and modify this |
| copyrighted material provided that the resulting code is used only |
| in conjunction with Bentley Systems products under the terms of the |
| license agreement provided therein, and that this notice is retained |
| in its entirety in any such reproduction or modification. |
| |
+----------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
| |
| $Workfile: msrsrc.fdf $
| $Revision: 6.4 $
| $Date: 27 Jul 1995 10:42:10 $
| |
+----------------------------------------------------------------------*/
#if !defined (__msrsrcFDF__)
#define __msrsrcFDF__
/*----------------------------------------------------------------------+
| |
| Header File Dependencies |
| |
+----------------------------------------------------------------------*/
#if !defined (__dloadlibH__) && !defined (STANDALONE)
#include "dloadlib.h"
#endif
#if !defined (__mdlH__)
#include "mdl.h"
#endif
#ifndef __rscdefsH__
#include "rscdefs.h"
#endif
#if defined (__BSI__) && !defined (__mdlmkn__)
#include <mirsrc.fdf>
#endif
/*======================================================================+
| |
| Function Definitions |
| |
+======================================================================*/
long mdlResource_add
(
RscFileHandle rfHandle, /* => Resource File Handle. */
ULong typeId, /* => Type where new resource is to be added. */
ULong rscId, /* => Desired rscId for new resource. */
void *rsc, /* => Address of new resource to be added. */
ULong rscSize, /* => Size of the new resource. */
char *alias /* => alias name of resource or NULL. */
);
long mdlResource_addByAlias
(
RscFileHandle rfHandle, /* => Resource File Handle. */
ULong typeId, /* => Type where new resource is to be added. */
ULong rscId, /* => Desired rscId for new resource. */
void *rsc, /* => Address of new resource to be added. */
ULong rscSize, /* => Size of the new resource. */
char *alias /* => alias name of resource. */
);
long mdlResource_changeAlias
(
RscFileHandle rfHandle, /* => File handle. */
ULong typeId, /* => Type of resource. */
ULong rscId, /* => Id of resource. */
char *alias /* => New alias name. */
);
void mdlResource_closeFile
(
RscFileHandle rfHandle /* => Resource File handle. */
);
long mdlResource_createFile /* <= status code. */
(
char *filename, /* => File name to create. */
char *ident, /* => optional Ident string. */
ULong version /* => optional version. */
);
long mdlResource_createFileForPlatform /* <= status code. */
(
char *filename, /* => File name to create. */
char *ident, /* => optional Ident string. */
ULong version, /* => optional version. */
ULong platformId /* => format file for this platform */
);
long mdlResource_delete
(
RscFileHandle rfHandle, /* => Resource File Handle. */
ULong typeId, /* => Type of resource to be deleted. */
ULong rscId /* => Desired rscId for new resource. */
);
long mdlResource_deleteByAlias
(
RscFileHandle rfHandle, /* => Resource File Handle. */
ULong typeId, /* => Type of resource to be deleted. */
ULong rscId, /* => Desired rscId for new resource. */
char *alias /* => alias name of rsc to delete */
);
long mdlResource_directAdd
(
RscFileHandle rfHandle, /* => Resource File Handle. */
ULong typeId, /* => Type where new resource is to be added. */
ULong rscId, /* => Desired rscId for new resource. */
char *alias, /* => Optional alias name. */
RscDirectAccess *directP /* <= information needed to access the
resource directly. */
);
long mdlResource_directAddComplete
(
void
);
long mdlResource_directLoad
(
RscFileHandle rfHandle, /* => handle of file. */
ULong typeId, /* => resource type. */
ULong rscId, /* => resource identifier. */
RscDirectAccess *directP /* <= information needed to access the
resource directly. */
);
long mdlResource_free
(
void *resource /* => resource to free. */
);
long mdlResource_getRscIdByAlias
(
ULong *rscId, /* <= where to store the rsc id. */
RscFileHandle rfHandle, /* => File to search. */
ULong typeId, /* => Resource type. */
char *alias /* => Alias name. */
);
void *mdlResource_load
(
RscFileHandle rfHandle, /* => handle of file to load from. */
ULong typeId, /* => resource type. */
ULong rscId /* => resource identifier. */
);
void *mdlResource_loadByAlias
(
RscFileHandle rfHandle, /* => handle of file to load from. */
ULong typeId, /* => resource type. */
ULong rscId, /* => resource id. */
char *alias /* => alias of resource to load. */
);
long mdlResource_loadFromStringList
(
char *pString, /* <= where string is copied to. */
RscFileHandle rfHandle, /* => handle of file to load from. */
ULong listId, /* => string list rsc Id. */
ULong stringNum /* => target string number in string list. */
);
long mdlResource_openFile /* <= status. */
(
RscFileHandle *rfHandleP, /* <= Return resource file handle. */
char *fileName, /* => name of file to open. */
ULong fileAttributes /* => 0=read-only 1=read/write, etc. */
);
long mdlResource_query
(
void *returnValue, /* <= Answer to query. */
void *resource, /* => Resource to query. */
long queryId /* => Type of query. */
);
long mdlResource_queryClass
(
void *returnValue, /* <= Answer to query. */
RscFileHandle rfHandle, /* => resource file handle or NULL for all. */
ULong typeId, /* => Resource Type to query. */
long queryId, /* => Type of query. */
void *arg /* => Additional argument (or NULL). */
);
long mdlResource_queryClassByAlias
(
void *returnValue, /* <= Answer to query. */
RscFileHandle rfHandle, /* => resource file handle or NULL for all. */
ULong typeId, /* => Resource Type to query. */
long queryId, /* => Type of query. */
void *arg, /* => Additional argument (or NULL). */
char *alias /* => only consider rscs with this alias */
);
long mdlResource_queryFile
(
ULong *returnValue, /* <= where to store answer. */
char *filename, /* => File to query. */
long queryId /* => Type of query. */
);
void *mdlResource_resize
(
void *resource, /* => pointer to the existing resource. */
ULong newSize /* => new size of the resource. */
);
long mdlResource_write
(
void *resource /* => resource to write. */
);
long mdlResource_queryFileHandle /* <= SUCCESS or error. */
(
void *returnValue, /* <= Answer to query. */
long retValSize, /* => size of return value buffer. */
RscFileHandle rfHandle, /* => resource file handle. */
long queryId, /* => Type of query. */
void *arg /* => Additional argument (or NULL). */
);
#endif