Search found 45 matches

by tonnelier
Tue Feb 01, 2005 11:34 pm
Forum: Coding Questions
Topic: missing GUIDs
Replies: 0
Views: 569

missing GUIDs

I've searched for some GUIDs with Oleview and trough the registry : two incertains and two missing:
IID_IWbemRefresher:
;B60EF4F1-A411-462B-B51E-477CBDBB90B4 (not sure)
CLSID_IWbemRefresher:
;DCF33DF4-B510-439F-832A-16B6B514F2A7 (not sure)
IID_IWbemConfigureRefresher:
???
IID_IWbemObjectAccess ...
by tonnelier
Sun Jan 16, 2005 12:35 pm
Forum: Off Topic
Topic: B-li-tz Max is out!
Replies: 82
Views: 26000

Concerning sieve : (from french PB's forum)
Pb and Blitzmax have almost the same rapidity without debugger.
With debugger, Blitz is very slower.

Not the same thing as said previously...
by tonnelier
Sun Jan 09, 2005 3:34 pm
Forum: Tricks 'n' Tips
Topic: Faster memory copy (optimized for AMD)
Replies: 65
Views: 25680

As for me : it crashes for some sizes.
And when it works, it doesn't copy all the datas.

But the code doesn't use AMD specificals instructions or registers...
:?: :?:
by tonnelier
Wed Jan 05, 2005 9:33 pm
Forum: Tricks 'n' Tips
Topic: Faster memory copy (optimized for AMD)
Replies: 65
Views: 25680

I've not examined precisely the code.
But there can't be goods reasons for it works on AMD and not on Pentium :
the only thing that can be different is the speed, because of the caches and prefetching.
But anyway, it must copy correctly the datas for pentium too, if it works on AMD.

Personnaly, I ...
by tonnelier
Wed Jan 05, 2005 8:06 pm
Forum: Tricks 'n' Tips
Topic: Faster memory copy (optimized for AMD)
Replies: 65
Views: 25680

Strange : on my notebook (pentium mobile 1.7GHz), after copymemoryAMD, the destination area is not equal to the source one.
There are just almost the first 10% of the source that have been copied.

Any idea?
Have you test the correctness of the copy?
by tonnelier
Wed Aug 04, 2004 11:51 pm
Forum: Coding Questions
Topic: NEW LIB - FindKillProcess()
Replies: 20
Views: 5277

I've made few time ago a program to (un) authorize / kill/suspend/resume process.
I'll add soon a registry and files tracing.
You can download it (in french. I'll translate it when I'll finish it) at:
http://perso.wanadoo.fr/berliozo

works on Win XP and 2k. Not on W98 and Me
by tonnelier
Wed Aug 04, 2004 5:01 pm
Forum: Coding Questions
Topic: INT64 (or double)
Replies: 6
Views: 1863

eventually, this type of thing work :

a.large_integer
a\lowpart=callfunction(...)

I think PB gives to the DLL the adress of the variable to fill in.

And for a DLL that requires only one variable a, which is a large_integer, it appears that callfunction(0,"function",a\lowpart,a\highpart) works.
by tonnelier
Wed Aug 04, 2004 9:18 am
Forum: Coding Questions
Topic: INT64 (or double)
Replies: 6
Views: 1863

Example : very simple. in a program, i do h=callfunction(0,"OpenTraceA",@log) (the library is advapi32.dll).
No error (doesn't return -1), but h becomes 1, which is an invalid tracehandle.
Register : perhaps. Who knows?
by tonnelier
Tue Aug 03, 2004 11:36 pm
Forum: Coding Questions
Topic: INT64 (or double)
Replies: 6
Views: 1863

INT64 (or double)

Problem : the opentrace API function return a tracehandle which is an INT64 (not its adress). How can I do to get the value returned with PB?

Thanks in advance.
by tonnelier
Fri Jul 23, 2004 2:47 pm
Forum: Coding Questions
Topic: can't find some constants
Replies: 1
Views: 954

can't find some constants

I need the value of IID_IWbemObjectSink and IID_IUnknown, but don't find it in my doc and header files.
Does anybody khnow where to find the IIDs? (the format is the GUID one)
by tonnelier
Mon Jul 19, 2004 3:42 pm
Forum: Coding Questions
Topic: obj\ExecNotificationQueryAsync()
Replies: 0
Views: 1021

obj\ExecNotificationQueryAsync()

Does anybody have a working example using WMI's tool obj\ExecNotificationQueryAsync(), obj being a IWbemServices interface.
I don't know exactly how to define the IWbemObjectSink interface for this method.

Thanks for responses.
by tonnelier
Sun Jul 18, 2004 10:00 pm
Forum: Coding Questions
Topic: convert string to BSTR
Replies: 8
Views: 4471

Problems solved.

for information :

Code: Select all

ProcedureDLL.l ANSI2BSTR(ansi.s)
  size.l=MultiByteToWideChar_(#CP_ACP,0,ansi,-1,0,0)
  Dim unicode.w(size)
  MultiByteToWideChar_(#CP_ACP, 0, ansi, Len(ansi), unicode(), size)
  ProcedureReturn SysAllocString_(@unicode()) 
EndProcedure
by tonnelier
Sun Jul 18, 2004 9:34 pm
Forum: Coding Questions
Topic: convert string to BSTR
Replies: 8
Views: 4471

Finally, it seems that one cans convert a string to BSTR by converting it first to unicode, with MultiByteToWideChar, and then using SysAllocString.
Will try.
by tonnelier
Sun Jul 18, 2004 9:15 pm
Forum: Coding Questions
Topic: convert string to BSTR
Replies: 8
Views: 4471

I've not seen : a word, not a long? That's maybe the source of my problem.
by tonnelier
Sun Jul 18, 2004 9:13 pm
Forum: Coding Questions
Topic: convert string to BSTR
Replies: 8
Views: 4471

that's what I thought, but i'm not sure.
Sure : there is a long first that contains the length of the string.
But is the string after is an usual string, or unicode, or...?