- Running WIN2000 programs from a Blackbox button

From: CFB Software <"CFB>
Date: Tue, 16 Jan 2007 10:11:19 +1030

----boundary-LibPST-iamunique-613477141_-_-
Content-type: text/plain

Hi Brett,

The following is some unfinished *experimental* code which uses the WinAPI
function CreateProcess. It is in a very rough and ready state and was only
ever run on XP but it should be enough to get you started,

Regards,

Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp
 
StdCoder.Decode E7rPXJqQntmPYB4.,0 1Ak...xf....58FTuPE,5TWyqlKrqKKrGrtumdGL
 mGorCquU2hgnRAXDFTvMUn7FTvMf1G2sETfPdPMHfP9fQbf9hOO9vR7ONbvMoedhgrRiioedFW
 UkTeoxhmhgnpZHZijJC7ONbvM0.,.S.eL3U.QklbcjRAktgdjZgZZh2hgnlsDor.kay4.qorGq
 mQiig76FUHZijJCbnWmqmqKWKqtcw7.,.FS0A,0EUb.0E.cUGpmWLuOpoKqvCbHZiYpedhA704
 TeKKw.bHfEWUmL.6..D.JP0E.CcIhgsNHT9N9ntQ8qorG4704D.CbB,708T1U.EuS.T.Nv,2U.
 2.Yx,U00.bnUGLu8ro8quGrmCLWKqtE0E.kHU.EBU.U,U.I3l6w1.0ES9.o.AU0KyB.,UpA.6.
 e,0E.k.0.e0.,6Y1.y.o.AUGU.g.AUD,T.16,6.5.u,g.s.6.Um.3.16H6.5.1c.6.US.D.4.0
 E,k.800k,UbU.g.AUhU.o.AU3.5.1M3E2k.S00k,k.4.I.s66.UMU.I.c76.k.K,.u.0k1k.OD
 I.AU9W.g.AU1.B.y3g.c6c.3gwP.,6..EBE.0.4E.EJ2wAC.6.V2A.AUkE.8k.Up2.0k,k.e..
 q.yzayIWKJaKIECIn8Kc8rrCqmCrtin4qk2aoa0pb8Je0mfaKr0GRqHESpouqU0roin4qk2Cob
 uodGp4ak2uqr8rq4Kq0Jtaqr8roGrw0mS0mfaaiodDJeBBcAxfEJe7xdGBdIBfTRcABcHRevgV
 7AVoJiphgUgbU.deIfOFrN1HM1H6IZuH5OF7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2e3BcIhV7AV7AVV,
 R10GRq1oZLBgdZi4xhmRedphbZhZxdWJhZRgo3ZkJij,ELWKc8rrUg2Yl2akAZvg,ak20Jty4g
 7.A,KJbGpYmIEWmk0bG,s6,tJHfPAc7ZeTZe7hd3xdJZedQ5cQ22.58PTvQ99G1fP7Xc2imxBM
 G..H,.....A7EeWKtKqkGqIqk2a.qU3FECItK4in4qkWuIWcN31ELqE,5TeK45uPR9RZvPN9P9
 fQbf9b8RCIu8LqGomCrl0ks,.ELCoruKu.GomCrl0U1VVlm85Et...ktu0.Y62Um1,.d.,.HE.
 2U..U,Iklb8IepZhZJinpZHFdKLq6F6.XDJ.QiiIepZhZ7F6.Zz.6.,UfW5UXW.2.52.CLLC3b
 8Rn9P99F9vQ0ks,Uikwm46.Zz,0E.2.U6UOF.0E.cU.UiAcoZC.70,E0E...7,,M.,.,.,tcp0
 0kXat.wnjl.k.E.0.3gwPE.6..EBU.U,.J,U.2m,.,.E4WDN.Ntarm3Wj.Jklb6.Qcj,.E6E..
 .F.,.mE.0U.2kLRC4mF3kwL,,AzJE.iJoYpY2H.nf1...
 --- end of encoding ---

> -----Original Message-----
> From: blackbox{([at]})nowhere.xy
> Behalf Of brett s hallett
> Sent: Monday, 11 December 2006 8:39 AM
> To: BlackBox Mailing List
> Subject: [BlackBox] - Running WIN2000 programs from a Blackbox button
>
> Hi,
> I'm trying to execute a Win2000 task ( a .exe file, not a Win embedded
> cmd) from a Blackbox program, but cant find any info on the
> subject in the BlackBox 1.5 documentation, nor on Helmut
> Zinn's useful site.
>
> The Win2000 task is GPG.EXE, I wish to encrypt/decypt files
> 'on the fly'
> from my Blackbox GUI interface without resorting to WIN2000
> command line usage. I'm using Win pgp for compatibility with
> Linux Kpgp as I pass files between the two O/s's
>
> Any help appreciated.
>
> --
> Yours,
> Brett
>
> --- BlackBox
> --- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
>

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy


----boundary-LibPST-iamunique-613477141_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpIEJyZXR0LFxwYXINClxwYXINClRoZSBmb2xs
b3dpbmcgaXMgc29tZSB1bmZpbmlzaGVkICpleHBlcmltZW50YWwqIGNvZGUgd2hpY2ggdXNlcyB0
aGUgV2luQVBJXHBhcg0KZnVuY3Rpb24gQ3JlYXRlUHJvY2Vzcy4gSXQgaXMgaW4gYSB2ZXJ5IHJv
dWdoIGFuZCByZWFkeSBzdGF0ZSBhbmQgd2FzIG9ubHlccGFyDQpldmVyIHJ1biBvbiBYUCBidXQg
aXQgc2hvdWxkIGJlIGVub3VnaCB0byBnZXQgeW91IHN0YXJ0ZWQsXHBhcg0KXHBhcg0KUmVnYXJk
cyxccGFyDQpccGFyDQpDaHJpcyBCdXJyb3dzXHBhcg0KQ0ZCIFNvZnR3YXJlXHBhcg0KaHR0cDov
L3d3dy5jZmJzb2Z0d2FyZS5jb20vZ3BjcFxwYXINCiBccGFyDQpTdGRDb2Rlci5EZWNvZGUgRTdy
UFhKcVFudG1QWUI0LiwwIDFBay4uLnhmLi4uLjU4RlR1UEUsNVRXeXFsS3JxS0tyR3J0dW1kR0xc
cGFyDQogbUdvckNxdVUyaGduUkFYREZUdk1VbjdGV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CBub3Igb24gSGVs
bXV0IFxwYXINCj4gWmlubidzIHVzZWZ1bCBzaXRlLlxwYXINCj4gXHBhcg0KPiBUaGUgV2luMjAw
MCB0YXNrIGlzIEdQRy5FWEUsIEkgd2lzaCB0byBlbmNyeXB0L2RlY3lwdCBmaWxlcyBccGFyDQo+
ICdvbiB0aGUgZmx5J1xwYXINCj4gZnJvbSBteSBCbGFja2JveCBHVUkgaW50ZXJmYWNlIHdpdGhv
dXQgcmVzb3J0aW5nIHRvIFdJTjIwMDAgXHBhcg0KPiBjb21tYW5kIGxpbmUgdXNhZ2UuIEknbSB1
c2luZyBXaW4gcGdwIGZvciBjb21wYXRpYmlsaXR5IHdpdGggXHBhcg0KPiBMaW51eCBLcGdwIGFz
IEkgcGFzcyBmaWxlcyAgYmV0d2VlbiB0aGUgdHdvIE8vcydzXHBhcg0KPiBccGFyDQo+IEFueSBo
ZWxwIGFwcHJlY2lhdGVkLlxwYXINCj4gXHBhcg0KPiAtLVxwYXINCj4gWW91cnMsXHBhcg0KPiBC
cmV0dFxwYXINCj4gXHBhcg0KPiAtLS0gQmxhY2tCb3hccGFyDQo+IC0tLSBzZW5kIHN1YmplY3Qg
SEVMUCBvciBVTlNVQlNDUklCRSB0byBibGFja2JveEBvYmVyb24uY2hccGFyDQo+IFxwYXINClxw
YXINCi0tLSBCbGFja0JveFxwYXINCi0tLSBzZW5kIHN1YmplY3QgSEVMUCBvciBVTlNVQlNDUklC
RSB0byBibGFja2JveEBvYmVyb24uY2hccGFyDQpccGFyDQp9


----boundary-LibPST-iamunique-613477141_-_---
Received on Tue Jan 16 2007 - 00:41:19 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:32:02 UTC