Показаны сообщения с ярлыком w8 consumer preview. Показать все сообщения
Показаны сообщения с ярлыком w8 consumer preview. Показать все сообщения

вторник, 26 июня 2012 г.

CoRegisterChannelHook in w8 consumer preview

Declared in ole32.dll as forwarded export to COMBASE.CoRegisterChannelHook
But combase.dll does not have such exported name, he-he
So wincheck cannot find some COM-related structures on w8 consumer preview. On w8 dev preview all work fine

пятница, 18 мая 2012 г.

воскресенье, 15 апреля 2012 г.

Installed windows 8 server build 8250

You can get it here
Good news:
  • It can be installed on Virtual Box with 1Gb RAM & 32Gb of disk
  • It has less crazy GUI (not metro useless panes)
  • wincheck works on it sometimes
  • you can still install windbg from wdk7 on it
Bad news:
  • no "start" button anyway
  • IE10 cons preview with paranoid "server" settings
  • I am unable to open its install.wim image

среда, 28 марта 2012 г.

EtwEventRegister on w8 consumer preview

I described already organization of internal data structures for this function on vista/windows 7
Unfortunately on windows 8 consumer preview all was changed.
Now all registered items storing in red-black tree whose root placed in EtwpRegistrationTable

Some excerpts from ntdll.pdb:
struct _RTL_RB_TREE {
  struct _RTL_BALANCED_NODE* Root;
  struct _RTL_BALANCED_NODE* Min;
};
 

Node of this tree looks like
struct _RTL_BALANCED_NODE {
  struct _RTL_BALANCED_NODE* Left;
  struct _RTL_BALANCED_NODE* Right;
  unsigned long ParentValue;
};

As usually we can partially recover event registrations structure from function EtwpAllocateRegistration.I intentionally omitted unimportant details:
struct EtwRegEntry_w8cons
{
/* Win32 Win64 - offsets */
/*   0x0   0x0 */ struct _RTL_BALANCED_NODE Node;

/* Etw reg entry  */
/*   0xC  0x20 */ GUID  ProviderId;
/*  0x28  0x48 */ PVOID InternalCallback;
/*  0x2C  0x50 */ PVOID CallbackContext;
/*  0x34  0x5C */ WORD  Index;
/*  0x36  0x5E */ WORD  Type;
};

As before Type eq 3 if this item was allocated from function EtwEventRegister and 2 if from EtwRegisterTraceGuids[AW]
All operations on EtwpRegistrationTable must be synchronized with SRW lock EtwpProvLock
Sample of output on w8 64bit (deep-first traversing of tree was used):

воскресенье, 18 марта 2012 г.

new DEVICE_TYPEs in WDK 8 Consumer Preview

from Include\shared\devioctl.h:

...
#define FILE_DEVICE_EHSTOR              0x00000046
#define FILE_DEVICE_DEVAPI              0x00000047
#define FILE_DEVICE_GPIO                0x00000048
#define FILE_DEVICE_USBEX               0x00000049
#define FILE_DEVICE_CONSOLE             0x00000050
#define FILE_DEVICE_NFP                 0x00000051
#define FILE_DEVICE_SYSENV              0x00000052

hresult.idc for WDK 8 Consumer Preview

Fresh HRESULT enums values generated in hresult.idc

oids.idc for WDK 8 Consumer Preview

Fresh NDIS OID enums values generated in oids.idc

ntstatus.idc for WDK 8 Consumer Preview

Fresh NTSTATUS enums values generated in ntstatus.idc

среда, 14 марта 2012 г.

New SYSTEMINFOCLASSes on w8 consumer preview

Names I got here
  • 7D - SystemSessionBigPoolInformation. Length >= 0xC
  • 7E - SystemBootGraphicsInformation. Length == 0x20
  • 7F - SystemScrubPhysicalMemoryInformation
  • 80 - SystemBadPageInformation. Variable length, can be zero
  • 81 - SystemProcessorProfileControlArea
  • 82 - SystemCombinePhysicalMemoryInformation
  • 83 - SystemEntropyInterruptTimingCallback
  • 84 - SystemConsoleInformation
  • 85 - SystemPlatformBinaryInformation. Checks SeTcbPrivilege
  • 86 - SystemThrottleNotificationInformation
  • 87 - SystemHypervisorProcessorCountInformation. Length >=8
  • 88 - SystemDeviceDataInformation. Length == 0x1C
  • 89 - SystemDeviceDataEnumerationInformation. Length == 0x1C
  • 8A - SystemMemoryTopologyInformation. Variable length, can be zero
  • 8B - SystemMemoryChannelInformation. Variable length, can be zero
  • 8C - SystemBootLogoInformation. Length >=8
  • 8D - SystemProcessorPerformanceInformationEx
  • 8E - SystemTimeZoneCurrentSetting. Length >0x20. Copy ExpTimeZoneCurrentSetting to usermode buffer
  • 8F - SystemSecureBootPolicyInformation. Checks SeTcbPrivilege, length >= 0x14
  • 90 - SystemPageFileInformationEx
  • 91 - SystemSecureBootInformation. Checks SeTcbPrivilege, length == 2, copy some bits from SecureBootPolicyBlobHeader to usermode buffer 
  • 92 - SystemEntropyInterruptTimingRawInformation
  • 93 - SystemPortableWorkspaceEfiLauncherInformation. Call ExpQueryPortableWorkspaceEfiLauncherInformation, variable length

пятница, 9 марта 2012 г.

понедельник, 5 марта 2012 г.

w8 consumer preview KiServiceTable

KiServiceLimit eq 0x1AE
New functions added since dev preview:
  • NtSetIRTimer
  • NtSetCachedSigningLevel
  • NtGetCachedSigningLevel
  • NtFilterBootOption
  • NtCreateIRTimer