Jump to content
Excelsior Forums
Sign in to follow this  
ulises31

xds win32 lib info

Recommended Posts

Hello.First of all, doc about XDS  win32 libs is patetic.

I am trying programming win32 using xds win32 libraries,but i can't find doc about it(no examples,no comments,nothing).Any know where can i find doc about it(ref about procedures,examples,etc)?.i.e.:I am trying use GetModuleHandle procedure from windows.def.I write the next code:

MODULE modulo;

<* +M2EXTENSIONS *>

IMPORT SWholeIO,STextIO,Windows,Storage,SYSTEM,Strings;

TYPE name=ARRAY [0..7] OF CHAR;

TYPE pf =POINTER TO name;

     

VAR

     handler:Windows.HMODULE;

       pointer:pf;

BEGIN

Storage.ALLOCATE(pointer,SIZE(name));

pointer^:="xds.exe";

handler:=Windows.GetModuleHandle(pointer);

     

IF handler<>NIL THEN

     STextIO.WriteString( " o.k.");

ELSE

     STextIO.WriteString(" shit");

END;

     

END modulo.

pointer always return NIL.IF i put NIL instead xds.exe,it works fine.I am runing under Windows XP.Under Windows Me same.What am i doing wrong?.I try to use

DlgProc procedure and same.Is posible get an reference guide of win32 xds libraries?Tnx

Share this post


Link to post
Share on other sites

Hello again.Srry about GetModuleHandle procedure.I was wrong.I tried locate a module that was not mapped into the address space of the calling process. and with this procedure is not posible(i think).Is there any way to enumerate all processes that are currently runing in the system? Tnx again

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×