You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.7 KiB
1 lines
2.7 KiB
// ===========================================================================
// UAMMain.h © 1997 Microsoft Corp. All rights reserved.
// ===========================================================================
#pragma once
#include <CoreFoundation/CoreFoundation.h>
#include <Carbon/Carbon.h>
#include "ClientUAM.h"
#ifdef __cplusplus
extern "C" {
#endif
//
//Our type and creator
//
#define UAM_CREATOR FOUR_CHAR_CODE('NTAM')
#define UAM_TYPE kUAMFileType
#define UAM_TYPE_CODE 139
#define UAMResourceSignatureSize 8
#define AFP_IconSize 128
#define DLOG_Login 12128 //Login dialog
//
//This is needed to tell the Chooser that the user requests
//to cancel the login operation. This is not defined anywhere,
//this is what Leland Wallace ([email protected]) from Apple said to use.
//
#define userCanceledError -128
//
//Our connection method names for the login dialog. Note that these
//items are not to be localized!
//
#define STR_TCPConnection "TCP/IP"
#define STR_AppleTalkConnection "AppleTalk"
//
//Password expiration notices occur when within this # of days
//
#define MINIMUM_DAYS_TILL_EXPIRATION 14
//
//The following are constants for the items in the login dialog.
//
#define DITEM_Connect 1
#define DITEM_Line 5
#define DITEM_GuestRadio 6
#define DITEM_RegRadio 7
#define DITEM_StaticName 8
#define DITEM_UserName 10
#define DITEM_Password 11
#define DITEM_ChangePwd 13
#define DITEM_Keychain 14
#define DITEM_StrongEncryption 15
#define DITEM_FirstHideItem DITEM_StaticName
#define DITEM_LastHideItem DITEM_StrongEncryption
#define UAM_ReplaceKeyQuestion 1500
//
//NT specific error codes we use.
//
enum {
afpNTNewPasswordMismatchErr = -13000,
afpNTChangePasswordFailed = -13001,
afpNTAccountDisabled = -13002,
afpNTInvalidWorkstation = -13003,
afpNTInvalidLogonHours = -13004,
afpNTPasswordExpired = -13005,
afpNTPasswordCantChange = -13006,
afpNTPasswordHistConflict = -13007,
afpNTPasswordTooShort = -13008,
afpNTPasswordTooRecent = -13009,
afpNTPasswordRestriction = -13010,
afpNTAccountRestriction = -13011,
afpNTPasswordProcessFailure = -13012, //Encryption or host mapping error
uamPasswordExpiresInOneDay = 1002
};
typedef unsigned char Str64[64];
//
//Prototypes for the main module live here.
//
EXTERN_API( OSStatus )
UAMMain(UAMArgs *inUAMArgs);
OSStatus
MS_UAMOpen(UAMArgs *inUAMArgs);
void
MS_UAMClose(void);
Boolean
MS_TestTextEntryLength(
DialogPtr inDialog,
EventRecord* inEvent,
short inItem,
short inMaxLengthAllowed
);
pascal Boolean
MS_PwdDialogFilter(DialogRef inDialog, EventRecord *inEvent, short *inItem);
OSStatus
MS_UAMPwdDialog(UAMArgs *inUAMArgs);
OSStatus
MS_UAMLogin(UAMArgs *inUAMArgs);
#ifdef __cplusplus
}
#endif
|