home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
c't freeware shareware 1997
/
CT_SW_97.ISO
/
pc
/
software
/
entwickl
/
win95
/
pw32i306.exe
/
lib
/
nt.ph
< prev
next >
Wrap
Text File
|
1997-02-20
|
4KB
|
120 lines
# (c) 1995 Microsoft Corporation. All rights reserved
# Developed by ActiveWare Internet Corp., http://www.ActiveWare.com
# WYT 1995-05-18 Wei-Yuen Tan
# reg.ph - macro definitions for NT Registry Extensions
# auto-extracted from windows.h, winreg.h, winnt.h
# EDIT AT YOUR OWN RISK!
eval '
# miscellaneous
sub NULL { (0);}
sub WIN31_CLASS { &NULL;}
# eventlog read flags
sub EVENTLOG_SEQUENTIAL_READ {0x0001;}
sub EVENTLOG_SEEK_READ {0x0002;}
sub EVENTLOG_FORWARDS_READ {0x0004;}
sub EVENTLOG_BACKWARDS_READ {0x0008;}
# event types
sub EVENTLOG_SUCCESS {0x0000;}
sub EVENTLOG_ERROR_TYPE {0x0001;}
sub EVENTLOG_WARNING_TYPE {0x0002;}
sub EVENTLOG_INFORMATION_TYPE {0x0004;}
sub EVENTLOG_AUDIT_SUCCESS {0x0008;}
sub EVENTLOG_AUDIT_FAILURE {0x0010;}
# write flags for auditing for paired events.
sub EVENTLOG_START_PAIRED_EVENT {0x0001;}
sub EVENTLOG_END_PAIRED_EVENT {0x0002;}
sub EVENTLOG_END_ALL_PAIRED_EVENTS {0x0004;}
sub EVENTLOG_PAIRED_EVENT_ACTIVE {0x0008;}
sub EVENTLOG_PAIRED_EVENT_INACTIVE {0x0010;}
# predefined registry handles.
sub HKEY_CLASSES_ROOT {( 0x80000000 );}
sub HKEY_CURRENT_USER {( 0x80000001 );}
sub HKEY_LOCAL_MACHINE {( 0x80000002 );}
sub HKEY_USERS {( 0x80000003 );}
sub HKEY_PERFORMANCE_DATA {( 0x80000004 );}
sub HKEY_PERFORMANCE_TEXT {( 0x80000050 );}
sub HKEY_PERFORMANCE_NLSTEXT {( 0x80000060 );}
# registry key access modes.
sub DELETE {(0x00010000);}
sub READ_CONTROL {(0x00020000);}
sub WRITE_DAC {(0x00040000);}
sub WRITE_OWNER {(0x00080000);}
sub SYNCHRONIZE {(0x00100000);}
sub STANDARD_RIGHTS_REQUIRED {(0x000F0000);}
sub STANDARD_RIGHTS_READ {( &READ_CONTROL);}
sub STANDARD_RIGHTS_WRITE {( &READ_CONTROL);}
sub STANDARD_RIGHTS_EXECUTE {( &READ_CONTROL);}
sub STANDARD_RIGHTS_ALL {(0x001F0000);}
sub SPECIFIC_RIGHTS_ALL {(0x0000FFFF);}
sub ACCESS_SYSTEM_SECURITY {(0x01000000);}
sub MAXIMUM_ALLOWED {(0x02000000);}
sub GENERIC_READ {(0x80000000);}
sub GENERIC_WRITE {(0x40000000);}
sub GENERIC_EXECUTE {(0x20000000);}
sub GENERIC_ALL {(0x10000000);}
sub KEY_QUERY_VALUE {(0x0001);}
sub KEY_SET_VALUE {(0x0002);}
sub KEY_CREATE_SUB_KEY {(0x0004);}
sub KEY_ENUMERATE_SUB_KEYS {(0x0008);}
sub KEY_NOTIFY {(0x0010);}
sub KEY_CREATE_LINK {(0x0020);}
sub KEY_READ {(( &STANDARD_RIGHTS_READ | &KEY_QUERY_VALUE | &KEY_ENUMERATE_SUB_KEYS | &KEY_NOTIFY) & (~ &SYNCHRONIZE));}
sub KEY_WRITE {(( &STANDARD_RIGHTS_WRITE | &KEY_SET_VALUE | &KEY_CREATE_SUB_KEY) & (~ &SYNCHRONIZE));}
sub KEY_EXECUTE {(( &KEY_READ) & (~ &SYNCHRONIZE));}
sub KEY_ALL_ACCESS {(( &STANDARD_RIGHTS_ALL | &KEY_QUERY_VALUE | &KEY_SET_VALUE | &KEY_CREATE_SUB_KEY | &KEY_ENUMERATE_SUB_KEYS | &KEY_NOTIFY | &KEY_CREATE_LINK) & (~ &SYNCHRONIZE));}
# registry key creation options
sub REG_OPTION_RESERVED {(0x00000000);}
sub REG_OPTION_NON_VOLATILE {(0x00000000);}
sub REG_OPTION_VOLATILE {(0x00000001);}
sub REG_OPTION_CREATE_LINK {(0x00000002);}
sub REG_OPTION_BACKUP_RESTORE {(0x00000004);}
sub REG_LEGAL_OPTION {( ®_OPTION_RESERVED | ®_OPTION_NON_VOLATILE | ®_OPTION_VOLATILE | ®_OPTION_CREATE_LINK | ®_OPTION_BACKUP_RESTORE);}
# miscellaneous registry stuff.
sub REG_CREATED_NEW_KEY {(0x00000001);}
sub REG_OPENED_EXISTING_KEY {(0x00000002);}
sub REG_WHOLE_HIVE_VOLATILE {(0x00000001);}
sub REG_REFRESH_HIVE {(0x00000002);}
# registry data types
sub REG_NONE {( 0 );}
sub REG_SZ {( 1 );}
sub REG_EXPAND_SZ {( 2 );}
sub REG_BINARY {( 3 );}
sub REG_DWORD {( 4 );}
sub REG_DWORD_LITTLE_ENDIAN {( 4 );}
sub REG_DWORD_BIG_ENDIAN {( 5 );}
sub REG_LINK {( 6 );}
sub REG_MULTI_SZ {( 7 );}
sub REG_RESOURCE_LIST {( 8 );}
sub REG_FULL_RESOURCE_DESCRIPTOR {( 9 );}
sub REG_RESOURCE_REQUIREMENTS_LIST {( 10 );}
# security information
sub OWNER_SECURITY_INFORMATION {(0x00000001);}
sub GROUP_SECURITY_INFORMATION {(0x00000002);}
sub DACL_SECURITY_INFORMATION {(0x00000004);}
sub SACL_SECURITY_INFORMATION {(0x00000008);}
1;
';