Skip to content

Commit cd615b8

Browse files
author
HackMemory
authored
Add files via upload
1 parent 0993934 commit cd615b8

File tree

41 files changed

+975
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+975
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
project.version = ''
2+
def name = 'dn-dffi-bundle'
3+
4+
repositories {
5+
mavenLocal()
6+
jcenter()
7+
mavenCentral()
8+
}
9+
10+
sourceSets {
11+
main.resources.srcDirs = ['src']
12+
}
13+
14+
dependencies {
15+
compile project(':jphp-dffi-ext')
16+
}
17+
18+
19+
jar {
20+
exclude '.resource'
21+
}
22+
23+
task bundle(type: Zip, dependsOn: ['clean', 'jar']) {
24+
println project.buildDir
25+
26+
from (configurations.runtime.allArtifacts.files) {
27+
into ("bundle/")
28+
}
29+
30+
from (configurations.runtime) {
31+
into ("bundle/")
32+
}
33+
34+
from (".resource") {
35+
into ("")
36+
}
37+
38+
archiveName = "${name}.dnbundle"
39+
destinationDir project.buildDir
40+
}
1.04 MB
Binary file not shown.
Binary file not shown.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>org.develnext</groupId>
6+
<artifactId>develnext-bundles/dn-dffi-bundle</artifactId>
7+
<version></version>
8+
<dependencies>
9+
<dependency>
10+
<groupId>org.develnext</groupId>
11+
<artifactId>jphp-dffi-ext</artifactId>
12+
<version>0.9.0</version>
13+
<scope>compile</scope>
14+
</dependency>
15+
</dependencies>
16+
</project>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace develnext\bundle\windows;
3+
4+
use ide\bundle\AbstractJarBundle;
5+
6+
class DFFIBundle extends AbstractJarBundle
7+
{
8+
function getName()
9+
{
10+
return "DFFIBundle";
11+
}
12+
13+
function getDescription()
14+
{
15+
return "";
16+
}
17+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<ul>
2+
<li>Расширение для вызова методов из посторонних библиотек</i></li>
3+
</ul>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Manifest-Version: 1.0
2+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace develnext\bundle\windows;
3+
4+
use ide\bundle\AbstractJarBundle;
5+
6+
class DFFIBundle extends AbstractJarBundle
7+
{
8+
function getName()
9+
{
10+
return "DFFIBundle";
11+
}
12+
13+
function getDescription()
14+
{
15+
return "";
16+
}
17+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<ul>
2+
<li>Расширение для вызова методов из посторонних библиотек</i></li>
3+
</ul>

examples/GetCursorPos.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
function cursor_pos(){
4+
$point = new DFFIStruct("POINT", ["int", "int"]);
5+
DFFI::callFunction("user32", "int", "GetCursorPos", [$point], ["struct"]);
6+
pre($point->getResponse());
7+
}

0 commit comments

Comments
 (0)