This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int APIENTRY _tWinMain(HINSTANCE hInstance, | |
HINSTANCE hPrevInstance, | |
LPTSTR lpCmdLine, | |
int nCmdShow) | |
{ | |
UNREFERENCED_PARAMETER(hPrevInstance); | |
UNREFERENCED_PARAMETER(lpCmdLine); | |
return DialogBox(hInstance, MAKEINTRESOURCE(IDD_DLGMAIN), NULL, DlgProc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SHORT_ALLOC_H | |
#define SHORT_ALLOC_H | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2015 Howard Hinnant | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <exception> | |
#include <type_traits> | |
#include <utility> | |
namespace folly { | |
namespace detail { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool SetProcessSEPrivilege(HANDLE process, PrivilegeOption option) | |
{ | |
DWORD flags = TOKEN_ADJUST_PRIVILEGES; | |
base::win::ScopedHandle token; | |
if (!OpenProcessToken(process, flags, token.Receive())) | |
{ | |
return false; | |
} | |
LUID uid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# 0xCCCCCCCC | |
import argparse | |
import os | |
import shlex | |
import shutil | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <algorithm> | |
#include <Windows.h> | |
class MT_Queue { | |
public: | |
MT_Queue(int maxElements); | |
~MT_Queue(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python3 | |
# -*- coding: utf-8 -*- | |
# 0xCCCCCCCC | |
import re | |
import shlex | |
import subprocess | |
import sys | |
FIRST_REV = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
# This file is part of Adblock Plus <http://adblockplus.org/>, | |
# Copyright (C) 2006-2013 Eyeo GmbH | |
# | |
# Adblock Plus is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License version 3 as | |
# published by the Free Software Foundation. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MT_Queue { | |
public: | |
struct ELEMENT { | |
int thread_num; | |
int request_num; | |
}; | |
typedef ELEMENT* PELEMENT; | |
MT_Queue(int max_elements); | |
~MT_Queue(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************ | |
** Edition: Demo | |
** Author: Kingsley Chen | |
** Date: 2013/11/19 | |
** Purpose: I/O issuer | |
************************************/ | |
#include "stdafx.h" | |
#include <conio.h> | |
#include <string> |
NewerOlder