network/Util.h File Reference
#include <WTypes.h>
#include "../strbasic.h"
#include "../maxnet_types.h"
#include "MaxNetExport.h"
|
MAXNETEXPORT MaxNetManager * | CreateManager () |
|
MAXNETEXPORT void | DestroyManager (MaxNetManager *mgr) |
|
MAXNETEXPORT bool | jobReadMAXProperties (const MCHAR *max_filename, Job *job, CJobText &jobText) |
|
MAXNETEXPORT void | jobSetJobDefaults (Job *job) |
|
MAXNETEXPORT void | NumberedFilename (MCHAR *infile, MCHAR *outfile, int number) |
|
MAXNETEXPORT bool | IsMacNull (BYTE *addr) |
|
MAXNETEXPORT bool | GetMacAddress (BYTE *addr) |
|
MAXNETEXPORT bool | MatchMacAddress (BYTE *addr1, BYTE *addr2) |
|
MAXNETEXPORT void | Mac2String (BYTE *addr, MCHAR *string) |
|
MAXNETEXPORT void | Mac2StringCondensed (BYTE *addr, MCHAR *string) |
|
MAXNETEXPORT void | StringCondensed2Mac (MCHAR *string, BYTE *addr) |
|
MAXNETEXPORT void | InitConfigurationInfo (ConfigurationBlock &cb, MCHAR workdisk=0) |
|
MAXNETEXPORT bool | MatchServers (HSERVER srv1, HSERVER srv2) |
|
MAXNETEXPORT bool | Maz (const MCHAR *archivename, MCHAR *file_list, DWORD *filesize=0) |
|
MAXNETEXPORT bool | UnMaz (const MCHAR *archivename, const MCHAR *output_path) |
|
MAXNETEXPORT MCHAR * | ResString (int id, MCHAR *buffer=0) |
|
MAXNETEXPORT bool | ConvertOldJobFile (const MCHAR *oldFile, const MCHAR *newFile) |
|
MAXNETEXPORT MaxNetManager * | CreateManager (int platform) |
|
MAXNETEXPORT bool | ConvertOldJobFile (const MCHAR *oldFile, const MCHAR *newFile, int platform) |
|
Enumerator |
---|
MAXNET_PLATFORM_NATIVE |
|
MAXNET_PLATFORM_32BIT |
|
MAXNET_PLATFORM_64BIT |
|
- Parameters:
- MaxNetManager* mgr
Points to the MaxNetManager object to destroy.
- Parameters:
- char* filename
The filename of the 3ds Max scene file (*.max).
Job* job
A pointer to an empty job structure which will be initialized by the method. Because the function will initialize the structure any values present prior to calling this method will be reset.
CJobText& jobText
A reference to an empty CJobText class which will be initialized by the function. Just like the job structure, any values present prior to calling this function will be reset.
- Returns
- TRUE if reading the properties was successful, otherwise FALSE.
- Parameters:
- Job *job
The job structure containing the information about the job. See the Job structure description for an explanation.
MAXNETEXPORT bool MatchMacAddress |
( |
BYTE * |
addr1, |
|
|
BYTE * |
addr2 |
|
) |
| |
- Parameters:
- MCHAR* archivename
The full path and filename of the archive you want to create.
MCHAR* file_list
A list of NULL terminated filenames to include in the archive. You should provide a full path and filename. However, only the file names will be saved in the archive and all files are going to be un-archived in the same directory.
An example: file_list[] = {"c:\\path\\file.maz/0c:\\anotherpath\\maps.tga/0/0"};
DWORD* filesize
Optional pointer to a variable to receive the accumulated size of all files included in the archive. This is the "uncompressed" size. You can use this to compute the disk space necessary to uncompress the archive.
- Returns
- TRUE if the archive was successfully created, otherwise FALSE.
- Parameters:
- MCHAR* archivename
The full path and filename of the archive you want to un-archive.
MCHAR* output_path
The path you want the files extracted to.
- Returns
- TRUE if the archive was successfully extracted, otherwise FALSE.