Click here to Skip to main content
15,881,882 members
Articles / Programming Languages / C#

MDaemon Controler for .NET

Rate me:
Please Sign up or sign in to vote.
4.65/5 (9 votes)
19 Feb 2010CPOL2 min read 77.1K   1.3K   20  
This .NET class allows to administrate the MDaemon Mail server, like creating domains and user accounts.
#pragma once
#include "MDUserImports.h"
#pragma warning(disable: 4996) // strcpy is secure because the buffer size is ALWAYS checked here!

using namespace System;
using namespace System::Runtime::InteropServices;  // Marshal

// Macro
#define CPY(Buffer, Managed, Field) MDaemon::cHelper::CopyManagedString(Buffer, sizeof(Buffer), Managed, Field)

namespace MDaemon
{
	__gc class cHelper
	{
	public:
		static void LoadMdUserDllOnce();
		static void CopyManagedString(char* s8_Buffer, int s32_Bufsize, String* s_String, String* s_Field);
	};
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) ElmüSoft
Chile Chile
Software Engineer since 40 years.

Comments and Discussions