RE: folder virtualisation
- From: ashnah <ashnah@xxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jun 2007 01:41:02 -0700
Hi jeffrey,
Sorry not to provide details info. here it is.
1. service and application running in same pc
2. application CreateNamedPipe and service can access it.
3. service CereatNamedPipe but application can not access it.
(to access i ame using CreateFile api.)
Now i was reading about session zero isolation and someone sugested
Global\pipename. do you thing this is the case?
people download my appliaction and install it . service and application get
installed with most of the parameter passed as a NULL in api.
service and application both start runing at startup and communicate with
each other. pipe i create in application is succesfully accessed by
application . but the named pipe i create in service can not be accessed.
IT is working perfectly ok in XP.
my aim aim is to capture active window name from the application and then
application will pass that to service via named pipe. and service will save
them in a common file so if another user log in they can see that
information. application will query data from service and display.
so basically application will communicate with service via named pipe opened
by service.
hPipe = CreateNamedPipe(
pipename, // pipe name
PIPE_ACCESS_DUPLEX, // read/write access
PIPE_TYPE_MESSAGE | // message type pipe
PIPE_READMODE_BYTE | // message-read mode
PIPE_WAIT, // blocking mode
PIPE_UNLIMITED_INSTANCES, // max. instances
BUFSIZE, // output buffer size
BUFSIZE, // input buffer size
NMPWAIT_USE_DEFAULT_WAIT, // client time-out
NULL); // default security attribute
--------
hPipe = CreateFile(
pipename, // pipe name
GENERIC_READ | // read and write access
GENERIC_WRITE,
0, // no sharing
NULL, // default security attributes
OPEN_EXISTING, // opens existing pipe
0, // default attributes
NULL); // no template file
..............
Please NOTE: above service is not actually a service it is a command line
application shelleexecuted by a service (work as a auto starter) so it has
same security access as service i believe.
i think it is related to session zero isolation. Global\pipname ??. it is my
guess.
I am waiting for your expert answer.
thanks
--
Ashnah is a innovative software development company
""Jeffrey Tan[MSFT]"" wrote:
Hi ashnah,.
Can you provide more details information regarding this problem?
Are these 2 applications in the same machine or 2 machines? If they are in
2 machines, are machines A and B in the same domain? What account is the
Service application running, Local System account or domain account? What
account is the account of the non-service application? Actually, there may
be several configuration and security checking on the same machine or cross
machines. So we need this information to identify the possible checking
failure point.
If your 2 applications communicate cross machines and your machine is in
Windows Vista - Workgroup Mode, in order to get it work you have to set the
following Policy:
Network access: Named pipes that can be accessed anonymously
-> Add the name pipe to the list of named pipes
Network access: Let Everyone permissions apply to anonymous users
-> Enabled
Additionally, what exact API function do you problem while you access the
named pipe in the Windows Service, CreateFile or ReadFile/WriteFile? What
last win32 error do you get with this API? This information will help us to
search the internal database more efficiently. Thanks.
Finally, newsgroup support is not an ideal place for getting urgent or
high-priority support, this is due to the newsgroup support nature. If you
want urgent and high priority support, I would recommend you to contact
Microsoft PSS. You can contact Microsoft Product Support at 1-(800)936-5800
or by choosing one of the options listed at
http://www.microsoft.com/services/microsoftservices/srv_support.mspx.
Anyway, if you still want to get help from me, please feel free to provide
above details information for me to analysis, I am glad to be any help.
Thanks
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- Follow-Ups:
- RE: folder virtualisation
- From: "Jeffrey Tan[MSFT]"
- RE: folder virtualisation
- References:
- RE: folder virtualisation
- From: "Jeffrey Tan[MSFT]"
- RE: folder virtualisation
- From: ashnah
- RE: folder virtualisation
- From: "Jeffrey Tan[MSFT]"
- RE: folder virtualisation
- From: ashnah
- RE: folder virtualisation
- From: "Jeffrey Tan[MSFT]"
- RE: folder virtualisation
- From: "Jeffrey Tan[MSFT]"
- RE: folder virtualisation
- From: ashnah
- RE: folder virtualisation
- From: "Jeffrey Tan[MSFT]"
- RE: folder virtualisation
- Prev by Date: RE: folder virtualisation
- Next by Date: RE: folder virtualisation
- Previous by thread: RE: folder virtualisation
- Next by thread: RE: folder virtualisation
- Index(es):
Relevant Pages
|