diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2016-12-14 09:40:51 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2017-07-08 08:22:36 +0100 |
commit | cf829d09ef2a5707a6e4e677f50d41beff508aa9 (patch) | |
tree | 3a0060df7fda51f02f2097d6ee93ab762ec84d74 | |
parent | ea9d41586c7f6172a17c34ccd5fd5359aeb1b709 (diff) |
Make some functions static
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
-rw-r--r-- | vdservice/vdservice.cpp | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/vdservice/vdservice.cpp b/vdservice/vdservice.cpp index dc49ec5..e9bf1a2 100644 --- a/vdservice/vdservice.cpp +++ b/vdservice/vdservice.cpp @@ -444,7 +444,7 @@ bool VDService::execute() return true; } -DWORD64 marshall_string(LPCWSTR str, DWORD max_size, LPBYTE* next_buf, DWORD* used_bytes) +static DWORD64 marshall_string(LPCWSTR str, DWORD max_size, LPBYTE* next_buf, DWORD* used_bytes) { DWORD offset = *used_bytes; @@ -486,14 +486,15 @@ typedef struct CreateProcessRet { PROCESS_INFORMATION process_information; } CreateProcessRet; -BOOL create_session_process_as_user(IN DWORD session_id, IN BOOL use_default_token, IN HANDLE token, - IN LPCWSTR application_name, IN LPWSTR command_line, - IN LPSECURITY_ATTRIBUTES process_attributes, - IN LPSECURITY_ATTRIBUTES thread_attributes, - IN BOOL inherit_handles, IN DWORD creation_flags, - IN LPVOID environment, IN LPCWSTR current_directory, - IN LPSTARTUPINFOW startup_info, - OUT LPPROCESS_INFORMATION process_information) +static BOOL +create_session_process_as_user(IN DWORD session_id, IN BOOL use_default_token, IN HANDLE token, + IN LPCWSTR application_name, IN LPWSTR command_line, + IN LPSECURITY_ATTRIBUTES process_attributes, + IN LPSECURITY_ATTRIBUTES thread_attributes, + IN BOOL inherit_handles, IN DWORD creation_flags, + IN LPVOID environment, IN LPCWSTR current_directory, + IN LPSTARTUPINFOW startup_info, + OUT LPPROCESS_INFORMATION process_information) { WCHAR win_sta_path[MAX_PATH]; HINSTANCE win_sta_handle; @@ -624,12 +625,13 @@ BOOL create_session_process_as_user(IN DWORD session_id, IN BOOL use_default_tok return ret; } -BOOL create_process_as_user(IN DWORD session_id, IN LPCWSTR application_name, - IN LPWSTR command_line, IN LPSECURITY_ATTRIBUTES process_attributes, - IN LPSECURITY_ATTRIBUTES thread_attributes, IN BOOL inherit_handles, - IN DWORD creation_flags, IN LPVOID environment, - IN LPCWSTR current_directory, IN LPSTARTUPINFOW startup_info, - OUT LPPROCESS_INFORMATION process_information) +static BOOL +create_process_as_user(IN DWORD session_id, IN LPCWSTR application_name, + IN LPWSTR command_line, IN LPSECURITY_ATTRIBUTES process_attributes, + IN LPSECURITY_ATTRIBUTES thread_attributes, IN BOOL inherit_handles, + IN DWORD creation_flags, IN LPVOID environment, + IN LPCWSTR current_directory, IN LPSTARTUPINFOW startup_info, + OUT LPPROCESS_INFORMATION process_information) { PROCESSENTRY32 proc_entry; DWORD winlogon_pid = 0; |