🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1561

Converting to and from *extended file paths *

#1561
From: Mike Collins
Date: Fri, 13 Jul 2007 15:10
31 lines
2204 bytes
Hi all, got what seems like a simple problem but can't find the right answer 
anywhere.

We have been developing a product suite of unique parental control 
solutions.  The latest instalment provides the facility for a parent to 
decide what can be "done" on the computer.  This has been achieved using a 
mixture of filter-layer drivers and dll injection / api hooking.  The 
control system "talks" back with a service to ask if the *hooked* item or 
api can be allowed to execute.  This is done using a specific IPC system. 
The control mechanism is now completed and i'm approaching the easier task 
of writing the control panel application that configures what can and can't 
be done. - All done in Builder!!!

However, with respect to application execution, i get a path returned from 
the control mechanism in the form of :

\Device\Harddisk\Volume1\Windows\system32\notepad.exe

Now i'm developing a Control Panel applet where the user can specify the 
applications that they want to restrict.  Obviously within this applet, the 
application paths will be in the form of:

C:\Windows\System32\notepad.exe

- what i need to know it, how to i convert to and from the two types of 
paths that i'm being provided with.  Is it possible to convert the "c:\..." 
path to a "\Device\.." style path?

Hope this makes sense,

Many thanks in advance,
Technical Details
Message-ID: <4697853e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7324c995313c3b47,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mike Collins" <its@TheBottomOfThePost>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Converting to and from *extended file paths *
Date: Fri, 13 Jul 2007 15:10:13 -0000
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.3959
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073
NNTP-Posting-Host: 81.155.207.165
Message-ID: <4697853e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1184335166 81.155.207.165 (13 Jul 2007 06:59:26 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail