473,479 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Seeking simple security example

I am trying to create a couple of event and a memory mapped file for
interprocess communication that have security settings such that they can be
used between any two users. I have found some horribly complicated code on
the web and have got totally bogged down in scals and dacls. Can someone
point me at a nice simple example of how to set up security attributes for
unrestricted access?
--
Dave
May 26 '06 #1
3 1891
Take a look at the "NamedPipeNative" class in Ivan Latunov's implementation.

http://www.codeproject.com/csharp/do...pipespart1.asp

He has this covered very nicely.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Dave" wrote:
I am trying to create a couple of event and a memory mapped file for
interprocess communication that have security settings such that they can be
used between any two users. I have found some horribly complicated code on
the web and have got totally bogged down in scals and dacls. Can someone
point me at a nice simple example of how to set up security attributes for
unrestricted access?
--
Dave

May 26 '06 #2
Thanks Peter - As I understand it Ivan uses named pipes rather than events
and a memory mapped file - I hope that doesn't mean I'm going to have to
start again and reimplement using named pipes, but if that's what it takes,
well it's all good experience.

BTW I'm having real problems with the newsgroups site at the moment. For onw
thing the "read and rate the response" link in the notification emails don't
seem to work any more, and secondly, when I doubleclick a post in the thread
list ait brings up all the posts for that thread in a new window (as it
should) but then immediately jumps to the newsgroups root window. I never
used to have these problems and as far as I know I haven't changed anything.
As an MVP could you possibly report it to the relevant person
--
Dave
"Peter Bromberg [C# MVP]" wrote:
Take a look at the "NamedPipeNative" class in Ivan Latunov's implementation.

http://www.codeproject.com/csharp/do...pipespart1.asp

He has this covered very nicely.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Dave" wrote:
I am trying to create a couple of event and a memory mapped file for
interprocess communication that have security settings such that they can be
used between any two users. I have found some horribly complicated code on
the web and have got totally bogged down in scals and dacls. Can someone
point me at a nice simple example of how to set up security attributes for
unrestricted access?
--
Dave

May 26 '06 #3
Thanks Peter. I managed to extract the security code from Ivan's example and
use it on my events/memory mapped file and it worked fine, although it
involved an awful lot of Marshal.AllocHGlobal and Marshal.StructureToPtr
calls and PInvoking to unmanaged functioins like
InitializeSecurityDescriptor. I have never understood why there is so much of
this stuff. Hopefully it will all get built into .NET eventually.
--
Dave
"Peter Bromberg [C# MVP]" wrote:
Take a look at the "NamedPipeNative" class in Ivan Latunov's implementation.

http://www.codeproject.com/csharp/do...pipespart1.asp

He has this covered very nicely.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Dave" wrote:
I am trying to create a couple of event and a memory mapped file for
interprocess communication that have security settings such that they can be
used between any two users. I have found some horribly complicated code on
the web and have got totally bogged down in scals and dacls. Can someone
point me at a nice simple example of how to set up security attributes for
unrestricted access?
--
Dave

May 29 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1961
by: Cynthia | last post by:
I'm looking for javascript code that when I mouse over a menu item will display a picture elsewhere on the page. I know it exists, but the ones I've found so far just swap out the menu item in...
2
1451
by: dogu | last post by:
I've worked the last number of years using an object oriented database tool that comes with a complete IDE, built in wigets for things like forms, buttons, hot spots, propietary client but apps are...
10
1722
by: Susan Baker | last post by:
Hi Guys (and girls), I am in a bit of a bind. I'm looking for a simple "proof of concept" C# app (WinForm OR console) that sends a web request to a simple PHP script and receives BINARY data...
11
2026
by: joelbyrd | last post by:
I have a people-networking type site in which each user has their own profile page, with their user id encoded. So, for example, the web address of their page might look like...
0
900
by: Jeff Rush | last post by:
In working up a response to the survey being conducted by Forrester Research on dynamic languages, there is a section wherein they want to see code samples. The samples must include all code...
3
3812
by: Alexander Vasilevsky | last post by:
Seeking an example of using System.AddIn.Hosting Namespace http://www.alvas.net - Audio tools for C# and VB.Net developers
6
1066
by: jim | last post by:
I'd like to build my own drag and drop web page editor. Are there any components out there that already handle CSS, PHP, XHTML and Javascript validation? And, are there any components that...
13
2514
by: evancater | last post by:
My client wants to make their Access 2007 database available to offices around the country with multi-user permissions set to control access to the tables and forms, etc. The easiest thing would be...
2
4251
by: HumanJHawkins | last post by:
Hi, I've done several database apps with PHP to SQL, or C++ to MS Access, etc. And I went to the VS2005 / SQL 2005 launch event where the presented built a simple DB app in seconds on stage....
0
7033
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6903
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6726
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4468
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2987
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
557
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
170
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.