add headers

This commit is contained in:
Glenn Maynard
2003-11-14 17:17:36 +00:00
parent 682789980c
commit b72d42361a
16 changed files with 27 additions and 5 deletions
@@ -1,6 +1,8 @@
#ifndef APP_INSTANCE_H
#define APP_INSTANCE_H
#include "windows.h"
/* Win32 only: get an HINSTANCE; used for starting dialog boxes. */
class AppInstance
{
@@ -3,6 +3,8 @@
#include "RageLog.h"
#include "RageUtil.h"
#include "VideoDriverInfo.h"
#include "windows.h"
#include <mmsystem.h>
void LogVideoDriverInfo( VideoDriverInfo info )
+4 -2
View File
@@ -1,5 +1,7 @@
#include "global.h"
#include "GotoURL.h"
#include "windows.h"
#include "shellapi.h"
LONG GetRegKey(HKEY key, CString subkey, LPTSTR retdata)
{
@@ -37,11 +39,11 @@ bool GotoURL(CString url)
if (GetRegKey(HKEY_CLASSES_ROOT,key,key) != ERROR_SUCCESS)
return false;
char *pos = _tcsstr(key, "\"%1\"");
char *pos = strstr( key, "\"%1\"" );
if (pos == NULL)
{
// No quotes found. Check for %1 without quotes
pos = strstr(key, _T("%1"));
pos = strstr( key, "%1" );
if (pos == NULL)
pos = key+lstrlen(key)-1; // No parameter.
else
@@ -1,5 +1,6 @@
#include "global.h"
#include "RestartProgram.h"
#include "windows.h"
void Win32RestartProgram()
{
-3
View File
@@ -9,10 +9,7 @@
extern "C" {
#include "ddk/setupapi.h"
/* Quiet header warning: */
#pragma warning( push )
#pragma warning (disable : 4201)
#include "ddk/hidsdi.h"
#pragma warning( pop )
}
static CString GetUSBDevicePath (int num)
+1
View File
@@ -2,6 +2,7 @@
#define WIN32_USB_H
#include <vector>
#include "windows.h"
/* The API for Windows device I/O is obscenely horrible, so encapsulate it. */
class WindowsFileIO
@@ -2,6 +2,7 @@
#include "VideoDriverInfo.h"
#include "RageUtil.h"
#include "RageLog.h"
#include "windows.h"
static void GetRegSubKeys( HKEY hKey, vector<CString> &lst )
{