126 lines
1.9 KiB
C
126 lines
1.9 KiB
C
|
/********************************************************************/
|
||
|
/** Copyright(c) 1989 Microsoft Corporation. **/
|
||
|
/********************************************************************/
|
||
|
|
||
|
//***
|
||
|
//
|
||
|
// Filename: afpcomn.h
|
||
|
//
|
||
|
// Description: This file contains definitions common to the client
|
||
|
// and server compoents.
|
||
|
// History:
|
||
|
// June 11,1992. NarenG Created original version.
|
||
|
//
|
||
|
#ifndef _AFPCOMN_
|
||
|
#define _AFPCOMN_
|
||
|
|
||
|
#define AFP_UNREFERENCED( x ) ( x )
|
||
|
|
||
|
#define NT_PIPE_PREFIX TEXT("\\PIPE\\")
|
||
|
|
||
|
// All string functions are multibyte
|
||
|
//
|
||
|
#define STRCPY wcscpy
|
||
|
#define STRLEN wcslen
|
||
|
#define STRCAT wcscat
|
||
|
#define STRCMP wcscmp
|
||
|
#define STRICMP _wcsicmp
|
||
|
#define STRNICMP _wcsnicmp
|
||
|
#define STRUPR _wcsupr
|
||
|
#define STRNCPY wcsncpy
|
||
|
|
||
|
#define AFP_VALIDATE_ALL_FIELDS 0
|
||
|
|
||
|
//
|
||
|
// Prototypes of validation functions.
|
||
|
//
|
||
|
BOOL
|
||
|
IsAfpServerInfoValid(
|
||
|
IN DWORD dwParmNum,
|
||
|
IN PAFP_SERVER_INFO pAfpServerInfo
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpServerNameValid(
|
||
|
IN LPVOID
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpServerOptionsValid(
|
||
|
IN LPVOID
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpMaxSessionsValid(
|
||
|
IN LPVOID
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpMsgValid(
|
||
|
IN LPVOID
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpCodePageValid(
|
||
|
IN LPVOID pCodePagePath
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpTypeCreatorValid(
|
||
|
IN PAFP_TYPE_CREATOR pAfpTypeCreator
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpExtensionValid(
|
||
|
IN PAFP_EXTENSION pAfpExtension
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpMaxPagedMemValid(
|
||
|
IN LPVOID pMaxPagedMem
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpMaxNonPagedMemValid(
|
||
|
IN LPVOID pMaxNonPagedMem
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpNumThreadsValid(
|
||
|
IN LPVOID pNumThreads
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpVolumeInfoValid(
|
||
|
IN DWORD dwParmNum,
|
||
|
IN PAFP_VOLUME_INFO pAfpVolume
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpVolumeNameValid(
|
||
|
IN LPWSTR lpwsVolumeName
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpDirInfoValid(
|
||
|
IN DWORD dwParmNum,
|
||
|
IN PAFP_DIRECTORY_INFO pAfpDirInfo
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpIconValid(
|
||
|
IN PAFP_ICON_INFO pAfpIconInfo
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
IsAfpFinderInfoValid(
|
||
|
IN LPWSTR pType,
|
||
|
IN LPWSTR pCreator,
|
||
|
IN LPWSTR pData,
|
||
|
IN LPWSTR pResource,
|
||
|
IN LPWSTR pPath,
|
||
|
IN DWORD dwParmNum
|
||
|
);
|
||
|
|
||
|
#endif // _AFPCOMN_
|