code
stringlengths
1
2.06M
language
stringclasses
1 value
#include <iostream> using namespace std; int main() { int height; float eyesight; height = 175; eyesight = 0.8f; bool ok; ok = height >= 160 && height <=180 && eyesight >= 1.0f && eyesight <= 2.0f; cout << boolalpha; cout << ok << endl; return 0; }
C++
int main() { int a = 100; int b = 200; int c = 300; return 0; }
C++
#include<iostream> using namespace std; void main() { int a[10], i; for(i=0; i<10; i++) a[i]=i+1; for(i=0; i<10; i++) cout << a[i] << " "; cout <<"\n"; }
C++
/* * Copyright 2011, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
C++
/* * Copyright 2011, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
C++
/* * Copyright 2011, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
C++
/* * Copyright 2011, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
C++
/* * Copyright 2011, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
C++
/* * Copyright 2011, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
C++
/* * Copyright 2011, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
C++
/* * Copyright 2011, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
C++
#ifndef __NONAME_GETPROC_H__ #define __NONAME_GETPROC_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" #include "nm_undoc.h" class kgetproc { public: kgetproc(PDRIVER_OBJECT DriverObj) {m_LoadedModuleList = (PLIST_ENTRY)DriverObj->DriverSection;} PVOID GetSystemRoutineAddress(PUNI...
C++
#ifndef __NM_EXCEPTION_H__ #define __NM_EXCEPTION_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" class KException { public: static void Install(); NTSTATUS Status() const; PVOID const At() const; protected: KException(EXCEPTION_POINTERS const &info); static void __cdecl ...
C++
#include "nm_hashtable.h"
C++
#include "nm_mem.h" klookaside::klookaside( ULONG Size, ULONG Tag /*= NM_LOOKASIDE_TAG*/, POOL_TYPE PoolType /*= PagedPool*/ ) : m_PagedLookasideList(NULL), m_NPagedLookasideList(NULL), m_PoolType(PoolType); { if (PoolType == NonPagedPool) { m_NPagedLookasideList = new(NonPagedPool, Tag) NPAGED_LOOKASIDE...
C++
#include "nm_workthread.h" kworkthread::kworkthread() : m_Stop(FALSE), m_Lookaside(sizeof(WORK_ITEM)) { RtlZeroMemory(&m_ClientId, sizeof(CLIENT_ID)); InitializeListHead(&m_ListHeader); KeInitializeEvent(&m_InsertEvent, SynchronizationEvent, FALSE); KeInitializeSpinLock(&m_Lock); PsCreateSystemThread(&m_T...
C++
#ifndef __NONAME_CRICULARQUEUE_H__ #define __NONAME_CRICULARQUEUE_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" #define DEFAULT_MAX_CQ_SIZE 64 template <class T> class cirbuf { public: cirbuf( ULONG Size = DEFAULT_MAX_CQ_SIZE ) : m_Tail(0), m_Head(0), m_ItemCount(0) { m_Buffe...
C++
#include "nm_list.h"
C++
#include "nm_exception.h" extern "C" { typedef void (__cdecl *_se_translator_function)(ULONG ExceptionCode, EXCEPTION_POINTERS* pExceptionPointers); _se_translator_function __cdecl set_se_translator(_se_translator_function); } KException::KException(EXCEPTION_POINTERS const &info) { EXCEPTION_RECORD...
C++
/* --------------------------------------------------------------------------- Copyright (c) 2003, Dominik Reichl <dominik.reichl@t-online.de>, Germany. All rights reserved. Distributed under the terms of the GNU General Public License v2. This software is provided 'as is' with no explicit or implied warr...
C++
#include "nm_stack.h"
C++
#ifndef __NONAME_LIST_H__ #define __NONAME_LIST_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" typedef BOOLEAN (__stdcall *COMPAREPROC)(PVOID Dst, PVOID Src); template <class T> struct _klist_entry { struct _klist_entry<T> *FLink, *BLink; T Value; public: _klist_entry() {FLink = N...
C++
#include "nm_event.h" NTSTATUS kevent::Create( EVENT_TYPE Type /*= NotificationEvent*/, BOOLEAN InitialState /*= FALSE*/ ) { NTSTATUS ns; OBJECT_ATTRIBUTES oa; m_Event = 0; InitializeObjectAttributes(&oa, NULL, OBJ_KERNEL_HANDLE, 0, NULL); ns = ZwCreateEvent(&m_Event, EVENT_ALL_ACCE...
C++
#include "nm_vector.h"
C++
#ifndef __NONAME_STACK_H__ #define __NONAME_STACK_H__ #define NONAME_LIB_USE #include <ntifs.h> #define DEFAULT_STACK_SIZE 64 template <class T> class kstack { public: kstack(); kstack(ULONG Size); void Release(); ULONG Push(const T &Val); ULONG pop(T &Val); ULONG GetStackPointer() {return ...
C++
#ifndef __NONAME_STRING_H__ #define __NONAME_STRING_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" #include <ntstrsafe.h> class kstringw { public: kstringw(); kstringw(PWCHAR String); kstringw(PUNICODE_STRING UniString); void Release(); PWCHAR Allocate(ULONG size, BOOLEAN S...
C++
#include "nm_cppcrt.h" #pragma section(".CRT$XCA",long,read) KCRT_FUNCTION xc_a[] = { 0 }; #pragma section(".CRT$XCZ",long,read) KCRT_FUNCTION xc_z[] = { 0 }; #pragma data_seg() #pragma comment(linker, "/merge:.CRT=.data") AtExitCall* AtExitCall::m_ExitList = 0; #ifdef __cplusplus extern "C" { #en...
C++
#include "nm_inlinehook.h" VOID __stdcall kinlinehook::DpcLock(struct _KDPC *Dpc, PVOID DeferredContext, PVOID SystemArgument1, PVOID SystemArgument2) { __asm cli; InterlockedIncrement(&((PDPCLOCK_CONTEXT)DeferredContext)->Locks); do { __asm pause; } while (!((PDPCLOCK_CONTEXT)DeferredContext)->Relea...
C++
#include "nm_file.h" kfile::kfile() { m_filehandle = 0; m_fileobj = NULL; } void kfile::Release() { Close(); } VOID kfile::Close() { if (m_fileobj != NULL) { ObDereferenceObject(m_fileobj); m_fileobj = NULL; } if (m_filehandle != NULL) { ZwClose(m_filehandle); m_filehandle = ...
C++
#include "nm_crique.h"
C++
#ifndef __NONAME_CPPCRT_H__ #define __NONAME_CPPCRT_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" extern "C" NTSTATUS __cdecl NM_DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegPath); typedef void(__cdecl* KCRT_FUNCTION)(); class AtExitCall { public: AtExitCall(KCRT_F...
C++
#ifndef __NONAME_EVENT_H__ #define __NONAME_EVENT_H__ #define NONAME_LIB_USE #include <ntifs.h> class kevent { public: kevent() : m_Event(0) {} NTSTATUS Create(EVENT_TYPE Type = NotificationEvent, BOOLEAN InitialState = FALSE); NTSTATUS Create(PWCHAR Name, EVENT_TYPE Type = NotificationEvent, BOOLEAN I...
C++
#ifndef __NONAME_WORKTHREAD_H__ #define __NONAME_WORKTHREAD_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" typedef VOID (__stdcall *WORKITEMPROC)(PVOID Context); class kworkthread { public: kworkthread(); void Release(); VOID InsertItem(WORKITEMPROC Address, PVOID Context, PRK...
C++
#ifndef __NONAME_MEMORY_H__ #define __NONAME_MEMORY_H__ #include <ntifs.h> #include "nm_undoc.h" #ifndef NONAME_MEM_TAG #define NONAME_MEM_TAG 'nonm' #endif #ifndef NONAME_MEM_TYPE #define NONAME_MEM_TYPE PagedPool #endif #ifdef NONAME_LIB_USE #define NONAME_INTER_MEM_TYPE NONAME_MEM_TYPE #else ...
C++
#include "nm_getproc.h" PVOID kgetproc::FindExportedRoutineByName(PVOID DllBase, PANSI_STRING AnsiImageRoutineName ) { USHORT OrdinalNumber; PULONG NameTableBase; PUSHORT NameOrdinalTableBase; PULONG Addr; LONG High; LONG Low; LONG Middle; LONG Result; ULONG ExportSize; PVOID FunctionAddress; ...
C++
#ifndef __NONAME_HASHTABLE_H__ #define __NONAME_HASHTABLE_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" #include "algo/crc32.h" #define HASH_DEFAULT_CAP 128 template< class VAL > class khashtable { public: BOOLEAN Init( ULONG Size = HASH_DEFAULT_CAP ); BOOLEAN Resize( ULONG Si...
C++
#ifndef __NONAME_FILE_H__ #define __NONAME_FILE_H__ #define NONAME_LIB_USE #include <Ntifs.h> #include "nm_mem.h" #include "nm_string.h" #define FILE_BEGIN 0 #define FILE_CURRENT 1 #define FILE_END 2 class kfile { public: kfile(); void Release(); VOID Close(); NTSTATUS Create( kstring...
C++
#include "nm_dir.h" kdirectory::kdirectory() { m_filehandle = 0; m_fileobj = NULL; } void kdirectory::Release() { Close(); } VOID kdirectory::Close() { if (m_fileobj != NULL) { ObDereferenceObject(m_fileobj); m_fileobj = NULL; } if (m_filehandle != NULL) { ZwClose(m_filehandle);...
C++
#ifndef __NONAME_INLINE_HOOK_H__ #define __NONAME_INLINE_HOOK_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" #include "disasm/LDasm.h" typedef BOOLEAN (__stdcall *HOOKPROC)(PVOID Context); typedef struct _DPCLOCK_CONTEXT { PKDPC Dpcs; LONG Locks; BOOLEAN Release; _DPCLOCK_C...
C++
#ifndef __NONAME_VECTOR_H__ #define __NONAME_VECTOR_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" #define DEFAULT_INIT_VECTOR 32 template <class T> class kvector { public: kvector(); kvector(ULONG Size, ULONG Step); void Release(); ULONG Size() { return m_ItemCount; } T& ...
C++
#include "nm_string.h" kstringw::kstringw() { m_stringw = NULL; m_len = 0; } kstringw::kstringw( PWCHAR String ) { ULONG Size; Size = wcslen(String); m_stringw = Allocate(Size, FALSE); RtlStringCchCopyW(m_stringw, Size, String); m_len = Size; } kstringw::kstringw( PUNICODE_STRING UniStrin...
C++
#ifndef __NONAME_DIR_H__ #define __NONAME_DIR_H__ #define NONAME_LIB_USE #include <ntifs.h> #include "nm_mem.h" #include "nm_string.h" class kdirectory { public: kdirectory(); void Release(); VOID Close(); NTSTATUS Create( kstringw& FileName, ULONG CreateDisposition = FILE_OPEN, ACCE...
C++
#include "Skin.h" Skin::Skin(QString name, QString extension, QString path) { this->name = name; this->extension = extension; this->path = path; } /** * Create a skin instance from a path (must have at least a valid info.ini file) */ Skin* Skin::fromPath(QString path) { // Checking the ini file...
C++
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private: Ui::MainWindow *ui; }; #endif // MAINWINDOW_H
C++
#include "MainWindow.h" #include "ui_MainWindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; }
C++
#ifndef SKIN_H #define SKIN_H #include "includes.h" /** * Proxy class to handle card skins. Allows to: * - Skins listing with proper names * - Skins "loading" (only loads name, properties and path) * - Proxying each card file path: skin path if it exists, default path else */ class Skin : public QOb...
C++
#ifndef PROPERTIES_H #define PROPERTIES_H #include <QString> class Properties { public: // Application static const QString ORGANIZATION; static const QString APPLICATION; static const QString SETTINGS; // Networking static const quint16 DEFAULT_LISTENPORT; // Cards informations ...
C++
#ifndef CARDINFO_H #define CARDINFO_H #include "includes.h" class CardInfo : public QObject { Q_OBJECT public: /* Function of the card: Distance, hazard, remedy or safety */ enum FunctionType { Function_NoFunction, // NoCard Function_Distance, Function_Hazard, Function_Remedy, Functi...
C++
#include "Tableau.h" Tableau::Tableau(Team* owningTeam) { this->owningTeam = owningTeam; this->winDistance = 1000; // Let's say default value. Can be set/"extended" during gameplay } Tableau::~Tableau() { this->owningTeam = NULL; } /** * The number of 200km already played. */ int Tableau::nu...
C++
#ifndef DISCARDPILE_H #define DISCARDPILE_H #include "includes.h" #include "Card.h" class DiscardPile : public QList<CardID> { public: explicit DiscardPile(); }; #endif // DISCARDPILE_H
C++
#include "RaceInfo.h" RaceInfo::RaceInfo() { this->numberOfCards = 0; this->extension = false; this->extensionAllowed = false; this->normalDistance = 1000; this->extensionDistance = 1000; } RaceInfo::RaceInfo(int numberOfCard, bool extension, bool extensionAllowed, int normalDistance, int extensionDist...
C++
#include "DiscardPile.h" DiscardPile::DiscardPile() {}
C++
#include "Card.h" QHash<CardID,CardInfo*>* Card::infoHash = NULL; Card::Card() {} CardInfo* Card::getInfo(CardID id) { // Ensures a singleton hash AND that the hash is filled before reading it. if (infoHash == NULL) createInfoHash(); return infoHash->value(id); } CardID Card::cardForPropert...
C++
#ifndef PLAYER_H #define PLAYER_H #include "includes.h" #include "Hand.h" class Player { public: explicit Player(QString name); QString getName() const; Hand getHand() const; private: QString name; Hand hand; }; #endif // PLAYER_H
C++
#include "DrawPile.h" DrawPile::DrawPile() {}
C++
#ifndef CARD_H #define CARD_H #include "includes.h" #include "CardInfo.h" class Card : public QObject { Q_OBJECT public: /* Card unique IDs */ enum ID { CardID_NoCard, CardID_Distance_25, CardID_Distance_50, CardID_Distance_75, CardID_Distance_100, CardID_Distance_200, ...
C++
#include "CardInfo.h" CardInfo::CardInfo(QString name, QString filename, CardFunction function, CardNature nature, int distance) { this->name = name; this->filename = filename; this->function = function; this->nature = nature; this->distance = distance; } QString CardInfo::getName() const { return ...
C++
#ifndef RACEINFO_H #define RACEINFO_H #include "includes.h" class RaceInfo : public QObject { Q_OBJECT public: RaceInfo(); RaceInfo(int numberOfCard, bool extension, bool extensionAllowed, int normalDistance, int extensionDistance); public: int numberOfCards; bool extension; bool extensionAll...
C++
#ifndef TEAM_H #define TEAM_H #include "includes.h" #include "Player.h" #include "Tableau.h" class Tableau; class Player; class Team : public QList<Player*> { public: Team(); ~Team(); Tableau* getTableau(); void addPlayer(Player* player); private: Tableau* tableau; }; #end...
C++
#include "Hand.h" Hand::Hand() {}
C++
#ifndef TABLEAU_H #define TABLEAU_H #include "includes.h" #include "Team.h" #include "Player.h" #include "Card.h" #include "CardInfo.h" class Team; /*$this->pileVitesse = array(); $this->pileCombat = array(); $this->pile200 = array(); $this->pile100 = array(); $this->pile75 = array(); $...
C++
#ifndef HAND_H #define HAND_H #include "includes.h" #include "Card.h" class Hand : public QList<CardID> { public: explicit Hand(); private: }; #endif // HAND_H
C++
#include "Player.h" Player::Player(QString name) { this->name = name; } QString Player::getName() const { return name; } Hand Player::getHand() const { return hand; }
C++
#include "Team.h" Team::Team() { tableau = new Tableau(this); } Team::~Team() { // Deleting players and tableau qDebug() << "~Team()"; for (int i=0; i<size(); i++) { delete this->at(i); } //foreach(Player* player, this) { // delete player; //} delete tableau; } Tableau* Team...
C++
#ifndef DRAWPILE_H #define DRAWPILE_H #include "includes.h" #include "Card.h" class DrawPile : public QList<CardID> { public: explicit DrawPile(); }; #endif // DRAWPILE_H
C++
#include <QtGui/QApplication> #include "includes.h" #include "Tableau.h" #include "CardInfo.h" #include "Skin.h" #include "MainWindow.h" #include "RaceInfo.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); /* RaceInfo info; qDebug() << inf...
C++
#include "Properties.h" // Application const QString Properties::ORGANIZATION = "SGC"; const QString Properties::APPLICATION = "1000 Bornes"; const QString Properties::SETTINGS = "settings.ini"; // Networking const quint16 Properties::DEFAULT_LISTENPORT = 1313; // Cards informations const QString Pr...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
// stdafx.cpp : source file that includes just the standard includes // npactivex.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "npactivex.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
C++
#include "ScriptFunc.h" NPClass ScriptFunc::npClass = { /* version */ NP_CLASS_STRUCT_VERSION, /* allocate */ ScriptFunc::_Allocate, /* deallocate */ ScriptFunc::_Deallocate, /* invalidate */ NULL, /* hasMethod */ NULL, //Scriptable::_HasMethod, /* invoke */ NULL, //Scriptable::_Invoke, /* invokeDe...
C++
// Copyright qiuc12@gmail.com // This file is generated autmatically by python. DONT MODIFY IT! #pragma once #include <OleAuto.h> class FakeDispatcher; HRESULT DualProcessCommand(int commandId, FakeDispatcher *disp, ...); extern "C" void DualProcessCommandWrap(); class FakeDispatcherBase : public IDispatch { ...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * t...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
C++
#pragma once #include <npapi.h> #include <npruntime.h> #include <OleAuto.h> #include "scriptable.h" #include "npactivex.h" #include <map> using std::map; using std::pair; class ScriptFunc : public NPObject { private: static NPClass npClass; Scriptable *script; MEMBERID dispid; void setControl(Scrip...
C++
// (c) Code By Extreme // Description:Inline Hook Engine // Last update:2010-6-26 #include <Windows.h> #include <stdio.h> #include "Hook.h" #define JMPSIZE 5 #define NOP 0x90 extern DWORD ade_getlength(LPVOID Start, DWORD WantLength); static VOID BuildJmp(PBYTE Buffer,DWORD JmpFrom, DWORD JmpTo) { DWO...
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * t...
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * t...
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * t...
C++