annotate loader/loader.h @ 16113:c81b7c1c14cb

catch failed buffer allocation
author reimar
date Tue, 26 Jul 2005 20:36:34 +0000
parents f5537cc95b02
children 0783dd397f74
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 /********************************************************
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 Win32 binary loader interface
128
28091b3caff9 DLL loader updated from avifile-0.60beta4
arpi_esp
parents: 1
diff changeset
4 Copyright 2000 Eugene Kuznetsov (divx@euro.ru)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 Shamelessly stolen from Wine project
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 *********************************************************/
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8
15166
f5537cc95b02 Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents: 7386
diff changeset
9 /*
f5537cc95b02 Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents: 7386
diff changeset
10 * Modified for use with MPlayer, detailed CVS changelog at
f5537cc95b02 Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents: 7386
diff changeset
11 * http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/
f5537cc95b02 Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents: 7386
diff changeset
12 * $Id$
f5537cc95b02 Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents: 7386
diff changeset
13 */
f5537cc95b02 Mark modified imported files as such to comply with GPL ¡ø2a.
diego
parents: 7386
diff changeset
14
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 #ifndef _LOADER_H
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 #define _LOADER_H
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 1494
diff changeset
17
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 #ifdef __cplusplus
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 extern "C" {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 1494
diff changeset
22 #include "wine/windef.h"
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 1494
diff changeset
23 #include "wine/driver.h"
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 1494
diff changeset
24 #include "wine/mmreg.h"
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 1494
diff changeset
25 #include "wine/vfw.h"
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 1494
diff changeset
26 #include "wine/msacm.h"
1494
d11e510d0c04 SetCodecPath -> win32_codec_name
arpi
parents: 1307
diff changeset
27
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 unsigned int _GetPrivateProfileIntA(const char* appname, const char* keyname, int default_value, const char* filename);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 int _GetPrivateProfileStringA(const char* appname, const char* keyname,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 const char* def_val, char* dest, unsigned int len, const char* filename);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 int _WritePrivateProfileStringA(const char* appname, const char* keyname,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 const char* string, const char* filename);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33
1307
d8c1b0b38edc Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents: 128
diff changeset
34 INT WINAPI LoadStringA( HINSTANCE instance, UINT resource_id,
d8c1b0b38edc Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents: 128
diff changeset
35 LPSTR buffer, INT buflen );
128
28091b3caff9 DLL loader updated from avifile-0.60beta4
arpi_esp
parents: 1
diff changeset
36
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 #ifdef __cplusplus
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 #endif /* __LOADER_H */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41