[EDIT] The reason you're receiving this incorrect parameter message is probably because you're using a very old compiler or your compiler is misconfigured. I'm using Visual Studio 2008 and I do NOT...
Type: Posts; User: BobS0327
[EDIT] The reason you're receiving this incorrect parameter message is probably because you're using a very old compiler or your compiler is misconfigured. I'm using Visual Studio 2008 and I do NOT...
This may be a much simpler approach for XP and up...
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
int main(void)
{
typedef BOOL (WINAPI *LPFNIUA)(void);
It means that you are using a incorrect input parameter. That is, TokenElevationType is the incorrect input parameter. After you determine the correct parameter, you'll have to call...
This is all you need for the above code:
typedef enum _TOKEN_ELEVATION_TYPE {
TokenElevationTypeDefault = 1,
TokenElevationTypeFull,
TokenElevationTypeLimited,
}...
They're defined in ntifs.h which is found in the Windows DDK version 6001.18001.