Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Implement an Autoplay Handler

, 18 Sep 2006
Implementing an Autoplay handler in C#.
autoplaydemo_demo.zip
autoplaydemo_src.zip
AutoPlayDemo
Autoplay.ico
AutoPlayDemo.csproj.user
bin
Properties
Settings.settings
Resources
AutoPlayListener
Autoplay.ico
AutoPlayListener.snk
bin
Properties
Resources
Autoplay.ico
RegistryScript
Almdal.RegistryScript.snk
bin
Properties
SharedPipies
Almdal.SharedPipes.snk
bin
Properties
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)

About the Author

Tim Almdal

Canada Canada
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 18 Sep 2006
Article Copyright 2006 by Tim Almdal
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid