#define CONTINUOUS_NOTES
#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+#include <stdarg.h>
+#include <windef.h>
+#include <winbase.h>
#define NTOS_MODE_USER
-#include <windows.h>
-#include <ndk/ntndk.h>
-#include <stdio.h>
+#include <ndk/iofuncs.h>
+#include <ndk/obfuncs.h>
+#include <ndk/rtlfuncs.h>
#include <ntddbeep.h>
#include <math.h>
-
#include <mmddk.h>
-#include <mmsystem.h>
/*#define DPRINT printf*/
#define DPRINT FakePrintf
caps->vDriverVersion = 0x0100;
memset(caps->szPname, 0, sizeof(caps->szPname));
- memcpy(caps->szPname, L"PC speaker\0", strlen("PC speaker\0") * 2);
+ wcscpy(caps->szPname, L"PC speaker");
caps->wTechnology = MOD_SQSYNTH;
{
/* Start playing the note */
NoteNode* new_node;
- NoteNode* tail_node = NULL;
EnterCriticalSection(&device_lock);
}
#endif
- tail_node = node;
node = node->next;
}