squidge
November 16th, 2002, 19:08
Got a program here that is using DeviceIOControl as part of it's protection, and can't seem to work out what it's doing with it.
According to MSDN docs, the IO control dword is created like so:
#define CTL_CODE( DeviceType, Function, Method, Access ) ( \
((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \
)
The DWORD IO Control Code I have is 8001201C. However, once I have broken this down into DeviceType, Access, Function and Method, I fail to find anything about the function it's trying to execute - certainly can't find anything in the winioctl.h header file.
The function uses a 16 byte in buffer and a 16 byte output buffer if it helps to try and match the function. Program uses the resulting output buffer to determine registration status.
Any ideas ?
According to MSDN docs, the IO control dword is created like so:
#define CTL_CODE( DeviceType, Function, Method, Access ) ( \
((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \
)
The DWORD IO Control Code I have is 8001201C. However, once I have broken this down into DeviceType, Access, Function and Method, I fail to find anything about the function it's trying to execute - certainly can't find anything in the winioctl.h header file.
The function uses a 16 byte in buffer and a 16 byte output buffer if it helps to try and match the function. Program uses the resulting output buffer to determine registration status.
Any ideas ?