Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
638 B

#include <windows.h>
#include <winioctl.h>
#include <stdio.h>
#include <malloc.h>
#include <Shlwapi.h>
#include <ntddsac.h>
#include <sacapi.h>
int _cdecl wmain(int argc, WCHAR **argv)
{
HANDLE SacHandle;
BOOL Status;
//
// Open the SAC
//
// SECURITY:
//
// this handle cannot be inherited
//
SacHandle = CreateFile(
L"\\\\.\\SAC\\",
0x1F01FF,
0,
NULL,
OPEN_EXISTING,
0,
NULL
);
if (SacHandle == INVALID_HANDLE_VALUE) {
Status = FALSE;
}
return 0;
}