[dba-VB] Unusual VB Request

Michael Maddison michael at ddisolutions.com.au
Fri Feb 18 18:06:36 CST 2011


Hi Guys,

 

Maybe someone can confirm or negate my thoughts on a client request I
have received?

 

Consider this code...

import psdi.util.AXWin32Util;

 

Call to DLL:

 

        if (this.debug) {

          System.out.println("Checking for user at ip " + address + " on
" + host);

        }

        OSUsername = AXWin32Util.getOSUserName(address, host).trim();

 


Username is one value not delimeted list


 

        if ((OSUsername != null) && (OSUsername.length() > 0)) {

          if (this.debug) {

            System.out.println("Found user " + OSUsername + " on " +
host);

          }

          OSUsername = OSUsername.toUpperCase();

 

I think the above is Java?

 

My client wants me to write a dll to replace the
AXWin32Util.getOSUserName(address, host) method call.

 

I don't have access to either the original source (dll) or the source to
the calling app. Just the text above.

If I create a COM dll called psdi.util.AXWin32Util.dll with a
getOSUserName method and register it on the target server what are the
chances it will work?

I suspect the answer is zero.

 

Dotnet is not allowed. No installation is allowed. The server is Win
2003 sp2. 

 

Ideas anyone?

 

Cheers

 

Michael




More information about the dba-VB mailing list