Click here to Skip to main content
15,891,976 members
Articles / Programming Languages / C#

Implement an Autoplay Handler

Rate me:
Please Sign up or sign in to vote.
5.00/5 (22 votes)
18 Sep 2006CPOL8 min read 118.4K   1.7K   78  
Implementing an Autoplay handler in C#.
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Almdal.AutoPlayListener {
	public class GlobalConstants {
		/// <summary>
		/// This message is sent to the main window, when new files are detected on removable media
		/// </summary>
		public static int START_LOAD = (int)WinApi.RegisterWindowMessage("3B36DF78-BBA4-4d02-B50D-AF0FFB8DEF34");

		/// <summary>
		/// This message is sent from the loader to the loader gui window
		/// </summary>
		public static int PROCESS_FILE = (int)WinApi.RegisterWindowMessage("E2755183-B46A-46c4-8BFF-3D664F82E399");

		/// <summary>
		/// This message is sent from the loader to the loader gui window
		/// </summary>
		public const string SHARED_MEMORY_NAME = "614B5AD3-0DAB-48bf-B63B-709679FCF21B";

	}
}

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
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions