home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / Notificati214300262009.psc / modNotifyAreaBehave.bas < prev   
BASIC Source File  |  2009-02-06  |  3KB  |  33 lines

  1. Attribute VB_Name = "modNotifyAreaBehave"
  2. Option Explicit
  3.  
  4. '-------------------------------------------------------------------------------------------------------------
  5. 'Registry Functions ------------------------------------------------------------------------------------------
  6. '-------------------------------------------------------------------------------------------------------------
  7. 'Enumeration - Registry Keys
  8. Public Enum RegistryKeys
  9.    HKEY_CLASSES_ROOT = &H80000000
  10.    HKEY_CURRENT_CONFIG = &H80000005
  11.    HKEY_CURRENT_USER = &H80000001
  12.    HKEY_LOCAL_MACHINE = &H80000002
  13.    HKEY_USERS = &H80000003
  14.    HKEY_DYN_DATA = &H80000006         'Windows 95/98
  15.    HKEY_PERFORMANCE_DATA = &H80000004 'Windows NT/2000
  16. End Enum
  17.  
  18. 'Constants - RegSetValueEx(dwType)
  19. Private Const REG_NONE = 0                 'No defined value type.
  20. Private Const REG_SZ = 1                   'A null-terminated string. It will be a Unicode or ANSI string, depending on whether you use the Unicode or ANSI functions.
  21. Private Const REG_EXPAND_SZ = 2            'A null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions. To expand the environment variable references, use the ExpandEnvironmentStrings function.
  22. Private Const REG_BINARY = 3               'Binary data in any form.
  23. Private Const REG_DWORD = 4                'A 32-bit number.
  24. Private Const REG_DWORD_LITTLE_ENDIAN = 4  'A 32-bit number in little-endian format. This is equivalent to REG_DWORD. In little-endian format, a multi-byte value is stored in memory from the lowest byte (the "little end") to the highest byte. For example, the value 0x12345678 is stored as (0x78 0x56 0x34 0x12) in little-endian format. Windows NT/Windows 2000, Windows 95, and Windows 98 are designed to run on little-endian computer architectures. A user may connect to computers that have big-endian architectures, such as some UNIX systems.
  25. Private Const REG_DWORD_BIG_ENDIAN = 5     'A 32-bit number in big-endian format. In big-endian format, a multi-byte value is stored in memory from the highest byte (the "big end") to the lowest byte. For example, the value 0x12345678 is stored as (0x12 0x34 0x56 0x78) in big-endian format.
  26. Private Const REG_LINK = 6                 'A Unicode symbolic link. Used internally; applications should not use this type.
  27. Private Const REG_MULTI_SZ = 7             'An array of null-terminated strings, terminated by two null characters.
  28. Private Const REG_RESOURCE_LIST = 8        'A device-driver resource list.
  29. Private Const REG_FULL_RESOURCE_DESCRIPTOR = 9 'Resource list in the hardware description
  30. Private Const REG_RESOURCE_REQUIREMENTS_LIST = 10
  31.  
  32. 'Constants - RegCreateKeyEx(dwOptions)
  33. Private Const REG_OPTION_NON_VOLATILE = 0   'This key is not volatile; this is the default. The information is stored in a file and is preservendsG_RE